Version: v1.10.4 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2021 License: MPL-2.0 Imports: 6 Imported by: 182




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",
"": "default",
"": "admin-token-qlz42",
"": "admin",
"": "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", "": "default", "": "demo-token-kmb9n", "": "demo", "": "76091af4-4b56-11e9-ac4b-708b11801cbe", "sub": "system:serviceaccount:default:demo" }


This section is empty.


func ExtractNodeIdentities added in v1.8.1

func ExtractNodeIdentities(nodeIdents []string) ([]*api.ACLNodeIdentity, error)

func ExtractServiceIdentities added in v1.5.0

func ExtractServiceIdentities(serviceIdents []string) ([]*api.ACLServiceIdentity, error)

func GetBindingRuleIDFromPartial added in v1.5.0

func GetBindingRuleIDFromPartial(client *api.Client, partialID string) (string, error)

func GetPolicyIDByName

func GetPolicyIDByName(client *api.Client, name string) (string, error)

func GetPolicyIDFromPartial

func GetPolicyIDFromPartial(client *api.Client, partialID string) (string, error)

func GetRoleIDByName added in v1.5.0

func GetRoleIDByName(client *api.Client, name string) (string, error)

func GetRoleIDFromPartial added in v1.5.0

func GetRoleIDFromPartial(client *api.Client, partialID string) (string, error)

func GetRulesFromLegacyToken

func GetRulesFromLegacyToken(client *api.Client, tokenID string, isSecret bool) (string, error)

func GetTokenIDFromPartial

func GetTokenIDFromPartial(client *api.Client, partialID string) (string, error)

func New

func New() *cmd


This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL