Versions in this module Expand all Collapse all v0 v0.5.0 Dec 22, 2019 Changes in this version + func GetDeploymentByName(ctx context.Context, apiClient *appmanager.APIClient, namespace string, ...) (appmanager.Deployment, error) + type AuthStore struct + func NewAuthStore(tokenManager TokenManager) *AuthStore + func (s *AuthStore) ContextForNamespace(baseCtx context.Context, namespace string) (context.Context, error) + func (s *AuthStore) RemoveAllCreatedTokens(ctx context.Context) ([]string, error) + type PlatformTokenManager struct + PlatformAPIClient *platformApiClient.APIClient + func (p *PlatformTokenManager) CreateToken(ctx context.Context, name, role, namespace string) (string, error) + func (p *PlatformTokenManager) RemoveToken(ctx context.Context, name, namespace string) (bool, error) + func (p *PlatformTokenManager) TokenExists(ctx context.Context, name, namespace string) (bool, error) + type TokenData struct + Name string + type TokenManager interface + CreateToken func(ctx context.Context, name, role, namespace string) (string, error) + RemoveToken func(ctx context.Context, name, namespace string) (bool, error) + TokenExists func(ctx context.Context, name, namespace string) (bool, error) + type TokenNotFoundError struct + Name string + Namespace string + func (err TokenNotFoundError) Error() string