Documentation
¶
Index ¶
- Variables
- func BuildClient(ctx context.Context, client client.Client, harbor *registriesv1alpha1.Instance) (*h.Client, error)
- func CheckAndGetReplicationTriggerType(providedType registriesv1alpha1.TriggerType) (h.TriggerType, error)
- func CheckFilterType(filterType h.FilterType) error
- func GetRegistry(harborClient *h.Client, registry *registriesv1alpha1.Registry) (h.Registry, error)
- func GetReplication(harborClient *h.Client, replication *registriesv1alpha1.Replication) (h.ReplicationPolicy, error)
- func GetRoleInt(RoleString string) int
- func GetUser(user *registriesv1alpha1.User, harborClient *h.Client) (h.User, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRegistryNotFound = errors.New("registry not found")
View Source
var ErrReplicationNotFound = errors.New("replication not found")
View Source
var ErrUserNotFound = errors.New("user not found")
Functions ¶
func BuildClient ¶
func BuildClient(ctx context.Context, client client.Client, harbor *registriesv1alpha1.Instance) (*h.Client, error)
buildClient builds a harbor client to interact with the API using the default (admin) credentials of an existing harbor instance
func CheckAndGetReplicationTriggerType ¶
func CheckAndGetReplicationTriggerType(providedType registriesv1alpha1.TriggerType) (h.TriggerType, error)
func CheckFilterType ¶
func CheckFilterType(filterType h.FilterType) error
func GetRegistry ¶
GetRegistry Wrapper function checking the command issued to the API, returning a custom error
func GetReplication ¶
func GetReplication(harborClient *h.Client, replication *registriesv1alpha1.Replication) (h.ReplicationPolicy, error)
GetReplication
func GetRoleInt ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.