Documentation ¶
Index ¶
- Constants
- func ExtractServiceIdentities(serviceIdents []string) ([]*api.ACLServiceIdentity, error)
- func GetBindingRuleIDFromPartial(client *api.Client, partialID string) (string, error)
- func GetPolicyIDByName(client *api.Client, name string) (string, error)
- func GetPolicyIDFromPartial(client *api.Client, partialID string) (string, error)
- func GetRoleIDByName(client *api.Client, name string) (string, error)
- func GetRoleIDFromPartial(client *api.Client, partialID string) (string, error)
- func GetRulesFromLegacyToken(client *api.Client, tokenID string, isSecret bool) (string, error)
- func GetTokenIDFromPartial(client *api.Client, partialID string) (string, error)
- func New() *cmd
- func PrintAuthMethod(method *api.ACLAuthMethod, ui cli.Ui, showMeta bool)
- func PrintAuthMethodListEntry(method *api.ACLAuthMethodListEntry, ui cli.Ui, showMeta bool)
- func PrintBindingRule(rule *api.ACLBindingRule, ui cli.Ui, showMeta bool)
- func PrintBindingRuleListEntry(rule *api.ACLBindingRule, ui cli.Ui, showMeta bool)
- func PrintPolicy(policy *api.ACLPolicy, ui cli.Ui, showMeta bool)
- func PrintPolicyListEntry(policy *api.ACLPolicyListEntry, ui cli.Ui, showMeta bool)
- func PrintRole(role *api.ACLRole, ui cli.Ui, showMeta bool)
- func PrintRoleListEntry(role *api.ACLRole, ui cli.Ui, showMeta bool)
- func PrintToken(token *api.ACLToken, ui cli.Ui, showMeta bool)
- func PrintTokenListEntry(token *api.ACLTokenListEntry, ui cli.Ui, showMeta bool)
Constants ¶
View Source
const TestKubernetesJWT_A = "" /* 834-byte string literal not displayed */
TestKubernetesJWT_A is a valid service account jwt extracted from a minikube setup.
{ "iss": "kubernetes/serviceaccount", "kubernetes.io/serviceaccount/namespace": "default", "kubernetes.io/serviceaccount/secret.name": "admin-token-qlz42", "kubernetes.io/serviceaccount/service-account.name": "admin", "kubernetes.io/serviceaccount/service-account.uid": "738bc251-6532-11e9-b67f-48e6c8b8ecb5", "sub": "system:serviceaccount:default:admin" }
View Source
const TestKubernetesJWT_B = "" /* 830-byte string literal not displayed */
TestKubernetesJWT_B is a valid service account jwt extracted from a minikube setup.
{ "iss": "kubernetes/serviceaccount", "kubernetes.io/serviceaccount/namespace": "default", "kubernetes.io/serviceaccount/secret.name": "demo-token-kmb9n", "kubernetes.io/serviceaccount/service-account.name": "demo", "kubernetes.io/serviceaccount/service-account.uid": "76091af4-4b56-11e9-ac4b-708b11801cbe", "sub": "system:serviceaccount:default:demo" }
Variables ¶
This section is empty.
Functions ¶
func ExtractServiceIdentities ¶ added in v1.5.0
func ExtractServiceIdentities(serviceIdents []string) ([]*api.ACLServiceIdentity, error)
func GetBindingRuleIDFromPartial ¶ added in v1.5.0
func GetPolicyIDFromPartial ¶
func GetRoleIDByName ¶ added in v1.5.0
func GetRoleIDFromPartial ¶ added in v1.5.0
func GetRulesFromLegacyToken ¶
func GetTokenIDFromPartial ¶
func PrintAuthMethod ¶ added in v1.5.0
func PrintAuthMethod(method *api.ACLAuthMethod, ui cli.Ui, showMeta bool)
func PrintAuthMethodListEntry ¶ added in v1.5.0
func PrintAuthMethodListEntry(method *api.ACLAuthMethodListEntry, ui cli.Ui, showMeta bool)
func PrintBindingRule ¶ added in v1.5.0
func PrintBindingRule(rule *api.ACLBindingRule, ui cli.Ui, showMeta bool)
func PrintBindingRuleListEntry ¶ added in v1.5.0
func PrintBindingRuleListEntry(rule *api.ACLBindingRule, ui cli.Ui, showMeta bool)
func PrintPolicyListEntry ¶
func PrintPolicyListEntry(policy *api.ACLPolicyListEntry, ui cli.Ui, showMeta bool)
func PrintRoleListEntry ¶ added in v1.5.0
func PrintTokenListEntry ¶
func PrintTokenListEntry(token *api.ACLTokenListEntry, ui cli.Ui, showMeta bool)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.