Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterService ¶
type ClusterService interface { // GetClusterUID returns the unique ID of a cluster. GetClusterUID(ctx context.Context, clusterID uint) (string, error) }
ClusterService provides access to clusters.
func NewClusterService ¶
func NewClusterService(getter CommonClusterGetter) ClusterService
NewClusterService returns a new ClusterService instance.
type CommonClusterGetter ¶
type CommonClusterGetter interface {
GetClusterByIDOnly(ctx context.Context, clusterID uint) (cluster.CommonCluster, error)
}
CommonClusterGetter defines cluster getter methods that return a CommonCluster
type UserNameGenerator ¶
type UserNameGenerator struct {
// contains filtered or unexported fields
}
UserNameGenerator generates an Anchore username for a cluster.
func NewUserNameGenerator ¶
func NewUserNameGenerator(clusterService ClusterService) UserNameGenerator
NewUserNameGenerator returns a new UserNameGenerator.
func (UserNameGenerator) GenerateUsername ¶
GenerateUsername generates a unique username using the cluster's UUID
type UserSecretStore ¶
type UserSecretStore struct {
// contains filtered or unexported fields
}
UserSecretStore stores Anchore user secrets.
func NewUserSecretStore ¶
func NewUserSecretStore(secretStore services.SecretStore) UserSecretStore
NewUserSecretStore returns a new UserSecretStore.
func (UserSecretStore) GetPasswordForUser ¶
Click to show internal directories.
Click to hide internal directories.