Documentation
¶
Index ¶
- func FormatTime(str v1.Time) string
- func GenRSAPubAndPri(bits int, filepath string) error
- func GenerateToken(userId int64, privateKey []byte, expireTime time.Time) (string, error)
- func MD5(str string) string
- func ParseToken(token string, publicKey []byte) (*jwt.Token, error)
- type CoreV1Deployments
- type CoreV1Pods
- type MapItem
- type MapItems
- type UserClaim
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatTime ¶
func GenRSAPubAndPri ¶
func GenerateToken ¶
Types ¶
type CoreV1Deployments ¶
type CoreV1Deployments []*v1.Deployment
func (CoreV1Deployments) Len ¶
func (this CoreV1Deployments) Len() int
func (CoreV1Deployments) Less ¶
func (this CoreV1Deployments) Less(i, j int) bool
func (CoreV1Deployments) Swap ¶
func (this CoreV1Deployments) Swap(i, j int)
type CoreV1Pods ¶
func (CoreV1Pods) Len ¶
func (this CoreV1Pods) Len() int
func (CoreV1Pods) Less ¶
func (this CoreV1Pods) Less(i, j int) bool
func (CoreV1Pods) Swap ¶
func (this CoreV1Pods) Swap(i, j int)
type UserClaim ¶
type UserClaim struct {
UserId int64 `json:"user_id"`
jwt.StandardClaims
}
Click to show internal directories.
Click to hide internal directories.