Versions in this module Expand all Collapse all v5 v5.3.3 Aug 10, 2023 v5.3.2 Aug 8, 2023 Changes in this version + const AlgorithmOr + const ErrRetentionDoesNotExistMsg + const ErrRetentionInternalErrorsMsg + const ErrRetentionNoPermissionMsg + const ErrRetentionNotProvidedMsg + const ErrRetentionUnauthorizedMsg + const PolicyTemplateDaysSinceLastPull + const PolicyTemplateDaysSinceLastPush + const PolicyTemplateLatestPulledArtifacts + const PolicyTemplateLatestPushedArtifacts + const PolicyTemplateRetainAlways + const ScopeSelectorRepoExcludes + const ScopeSelectorRepoMatches + const SelectorTypeDefault + const TagSelectorExcludes + const TagSelectorMatches + func ToTagSelectorExtras(untagged bool) string + type Client interface + DeleteRetentionPolicyByID func(ctx context.Context, id int64) error + GetRetentionPolicyByID func(ctx context.Context, id int64) (*modelv2.RetentionPolicy, error) + GetRetentionPolicyByProject func(ctx context.Context, projectNameOrID string) (*modelv2.RetentionPolicy, error) + NewRetentionPolicy func(ctx context.Context, ret *modelv2.RetentionPolicy) error + UpdateRetentionPolicy func(ctx context.Context, ret *modelv2.RetentionPolicy) error + type ErrRetentionDoesNotExist struct + func (e *ErrRetentionDoesNotExist) Error() string + type ErrRetentionInternalErrors struct + func (e *ErrRetentionInternalErrors) Error() string + type ErrRetentionNoPermission struct + func (e *ErrRetentionNoPermission) Error() string + type ErrRetentionNotProvided struct + func (e *ErrRetentionNotProvided) Error() string + type ErrRetentionUnauthorized struct + func (e *ErrRetentionUnauthorized) Error() string + type PolicyTemplate string + func (p PolicyTemplate) String() string + type RESTClient struct + AuthInfo runtime.ClientAuthInfoWriter + Options *config.Options + V2Client *v2client.Harbor + func NewClient(v2Client *v2client.Harbor, opts *config.Options, ...) *RESTClient + func (c *RESTClient) DeleteRetentionPolicyByID(ctx context.Context, id int64) error + func (c *RESTClient) GetRetentionPolicyByID(ctx context.Context, id int64) (*modelv2.RetentionPolicy, error) + func (c *RESTClient) GetRetentionPolicyByProject(ctx context.Context, projectNameOrID string) (*modelv2.RetentionPolicy, error) + func (c *RESTClient) NewRetentionPolicy(ctx context.Context, ret *modelv2.RetentionPolicy) error + func (c *RESTClient) UpdateRetentionPolicy(ctx context.Context, ret *modelv2.RetentionPolicy) error + type ScopeSelector string + func (r ScopeSelector) String() string + type TagSelector string + func (t TagSelector) String() string