Versions in this module Expand all Collapse all v1 v1.0.5 Aug 24, 2015 Changes in this version + const AllServiceAccountsGroup + const Issuer + const IssuerClaim + const NamespaceClaim + const NumServiceAccountRemoveReferenceRetries + const SecretNameClaim + const ServiceAccountGroupPrefix + const ServiceAccountNameClaim + const ServiceAccountUIDClaim + const ServiceAccountUsernamePrefix + const ServiceAccountUsernameSeparator + const SubjectClaim + func JWTTokenAuthenticator(keys []*rsa.PublicKey, lookup bool, getter ServiceAccountTokenGetter) authenticator.Token + func MakeGroupNames(namespace, name string) []string + func MakeNamespaceGroupName(namespace string) string + func MakeUsername(namespace, name string) string + func ReadPrivateKey(file string) (*rsa.PrivateKey, error) + func ReadPublicKey(file string) (*rsa.PublicKey, error) + func SplitUsername(username string) (string, string, error) + func UserInfo(namespace, name, uid string) user.Info + type ServiceAccountTokenGetter interface + GetSecret func(namespace, name string) (*api.Secret, error) + GetServiceAccount func(namespace, name string) (*api.ServiceAccount, error) + func NewGetterFromClient(c client.Interface) ServiceAccountTokenGetter + func NewGetterFromRegistries(serviceAccounts serviceaccount.Registry, secrets secret.Registry) ServiceAccountTokenGetter + func NewGetterFromStorageInterface(storage storage.Interface) ServiceAccountTokenGetter + type ServiceAccountsController struct + func NewServiceAccountsController(cl client.Interface, options ServiceAccountsControllerOptions) *ServiceAccountsController + func (e *ServiceAccountsController) Run() + func (e *ServiceAccountsController) Stop() + type ServiceAccountsControllerOptions struct + NamespaceResync time.Duration + ServiceAccountResync time.Duration + ServiceAccounts []api.ServiceAccount + func DefaultServiceAccountsControllerOptions() ServiceAccountsControllerOptions + type TokenGenerator interface + GenerateToken func(serviceAccount api.ServiceAccount, secret api.Secret) (string, error) + func JWTTokenGenerator(key *rsa.PrivateKey) TokenGenerator + type TokensController struct + func NewTokensController(cl client.Interface, options TokensControllerOptions) *TokensController + func (e *TokensController) Run() + func (e *TokensController) Stop() + type TokensControllerOptions struct + RootCA []byte + SecretResync time.Duration + ServiceAccountResync time.Duration + TokenGenerator TokenGenerator