Documentation ¶
Index ¶
- func CreatePermission(api, kind, verb string) string
- func GetAccessToken(ctx context.Context) (string, bool)
- func GetApiKeyAndSecret(ctx context.Context) (string, string, bool)
- func ParsePermission(p string) (string, string, string, error)
- func WithAccessToken(ctx context.Context, token string) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePermission ¶
CreatePermission creates a permission from given arguments.
func GetAccessToken ¶
GetAccessToken fetches the access token from the given (GRPC) context. If no such token is found, false is returned.
func GetApiKeyAndSecret ¶ added in v0.77.4
GetApiKeyAndSecret fetches the api key & secret from the given (GRPC) context. If key & secret are not found, false is returned.
func ParsePermission ¶
ParsePermission parses a permission into: - api - kind - verb
E.g. `iam.group.get` returns `iam`, `group`, `get`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.