package
1.7.0-alpha.1
Repository: https://github.com/aliyuncontainerservice/kubernetes.git
Documentation: pkg.go.dev

# Functions

TODO: remove the duplicate code InternalIsServiceAccountToken returns true if the secret is a valid api token for the service account.
IsServiceAccountToken returns true if the secret is a valid api token for the service account.
JWTTokenAuthenticator authenticates tokens as JWT tokens produced by JWTTokenGenerator Token signatures are verified using each of the given public keys until one works (allowing key rotation) If lookup is true, the service account and secret referenced as claims inside the token are retrieved and verified with the provided ServiceAccountTokenGetter.
JWTTokenGenerator returns a TokenGenerator that generates signed JWT tokens, using the given privateKey.
ReadPrivateKey is a helper function for reading a private key from a PEM-encoded file.
ReadPublicKeys is a helper function for reading an array of rsa.PublicKey or ecdsa.PublicKey from a PEM-encoded file.
ReadPublicKeysFromPEM is a helper function for reading an array of rsa.PublicKey or ecdsa.PublicKey from a PEM-encoded byte array.
UserInfo returns a user.Info interface for the given namespace, service account name and UID.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

ServiceAccountTokenGetter defines functions to retrieve a named service account and secret.
No description provided by the author