Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsEcrRegistry ¶
Types ¶
type AnchoreClient ¶
type AnchoreClient interface { UserManagementClient PolicyClient RegistryClient }
AnchoreClient "facade" for supported Anchore operations, decouples anchore specifics from the application
func NewAnchoreClient ¶
type AnchoreUserService ¶
type AnchoreUserService interface { EnsureUser(ctx context.Context, orgID uint, clusterID uint) (string, error) RemoveUser(ctx context.Context, orgID uint, clusterID uint) error }
AnchoreUserService service interface for Anchore related operations
func MakeAnchoreUserService ¶
func MakeAnchoreUserService( configProvider anchore.ConfigProvider, userNameService UserNameService, secretStore common.SecretStore, logger common.Logger, ) AnchoreUserService
type PolicyClient ¶
type RegistryClient ¶
type RegistryClient interface { AddRegistry(ctx context.Context, registry Registry) error GetRegistry(ctx context.Context, registryName string) ([]anchore.RegistryConfiguration, error) UpdateRegistry(ctx context.Context, registry Registry) error DeleteRegistry(ctx context.Context, registry Registry) error }
type ScanlogService ¶
type SecurityResourceService ¶
type SecurityResourceService interface { WhitelistService ScanlogService }
SecurityResourceService gathers operations for managing security (anchore) related resources
func NewSecurityResourceService ¶
func NewSecurityResourceService(logger common.Logger) SecurityResourceService
type UserManagementClient ¶
type UserManagementClient interface { CreateAccount(ctx context.Context, accountName string, email string) error DeleteAccount(ctx context.Context, accountName string) error GetAccount(ctx context.Context, accountName string) (string, error) CreateUser(ctx context.Context, accountName string, userName string, password string) error DeleteUser(ctx context.Context, accountName string, userName string) error GetUser(ctx context.Context, userName string) (interface{}, error) GetUserCredentials(ctx context.Context, userName string) (string, error) }
type UserNameService ¶
type UserNameService interface {
GenerateUsername(ctx context.Context, clusterID uint) (string, error)
}
UserNameService defines operations for generating unique names using cluster data
type WhitelistService ¶
type WhitelistService interface { GetWhitelists(ctx context.Context, cluster Cluster) ([]securityV1Alpha.WhiteListItem, error) CreateWhitelist(ctx context.Context, cluster Cluster, whitelistItem security.ReleaseWhiteListItem) (interface{}, error) DeleteWhitelist(ctx context.Context, cluster Cluster, whitelistItemName string) error }
WhitelistService whitelist management operations
Click to show internal directories.
Click to hide internal directories.