Documentation ¶
Index ¶
- Constants
- type Access
- func (jt Access) AddAccessToken(canWrite, canDelete, canUpdate, canPublish, canRead bool) string
- func (jt Access) GenerateAccessToken(read, write, update, delete, publish bool) (string, Tokens)
- func (jt Access) GenerateSecret(path string) []byte
- func (jt Access) GetAllTokens() Tokens
- func (jt Access) GetInvalidTokens() Tokens
- func (jt Access) GetSecret() ([]byte, error)
- func (jt Access) GetValidTokens() Tokens
- func (jt Access) NewJwt(accessToken string, data map[string]string) (string, error)
- func (jt Access) ValidateJwtAccess(tokenString string, accessType string) error
- type KekAccess
- type KekClaim
- type Tokens
Constants ¶
View Source
const SECRET_PATH = "/.kek/s"
View Source
const SIGNING_METHOD = "HS256"
View Source
const TOKENS_PATH = "/.kek/tokens"
View Source
const TOKEN_LENGTH = 25
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Access ¶
type Access struct { }
func (Access) AddAccessToken ¶
func (Access) GenerateAccessToken ¶
func (Access) GenerateSecret ¶
func (Access) GetAllTokens ¶
func (Access) GetInvalidTokens ¶
func (Access) GetValidTokens ¶
Click to show internal directories.
Click to hide internal directories.