Versions in this module Expand all Collapse all v4 v4.0.0 Jul 1, 2021 Changes in this version + const ErrReplicationExecutionNotProvidedMsg + const ErrReplicationExecutionReplicationIDMismatchMsg + const ErrReplicationIDNotExistsMsg + const ErrReplicationIllegalIDFormatMsg + const ErrReplicationInternalErrorsMsg + const ErrReplicationMismatchMsg + const ErrReplicationNameAlreadyExistsMsg + const ErrReplicationNoPermissionMsg + const ErrReplicationNotFoundMsg + const ErrReplicationNotProvidedMsg + const ErrReplicationUnauthorizedMsg + type Client interface + DeleteReplicationPolicy func(ctx context.Context, r *legacymodel.ReplicationPolicy) error + GetReplicationExecutionByID func(ctx context.Context, id int64) (*modelv2.ReplicationExecution, error) + GetReplicationExecutions func(ctx context.Context, r *modelv2.ReplicationExecution) ([]*modelv2.ReplicationExecution, error) + GetReplicationPolicy func(ctx context.Context, name string) (*legacymodel.ReplicationPolicy, error) + GetReplicationPolicyByID func(ctx context.Context, id int64) (*legacymodel.ReplicationPolicy, error) + NewReplicationPolicy func(ctx context.Context, destRegistry, srcRegistry *legacymodel.Registry, ...) (*legacymodel.ReplicationPolicy, error) + TriggerReplicationExecution func(ctx context.Context, r *modelv2.StartReplicationExecution) error + UpdateReplicationPolicy func(ctx context.Context, r *legacymodel.ReplicationPolicy) error + type ErrReplicationExecutionNotProvided struct + func (e *ErrReplicationExecutionNotProvided) Error() string + type ErrReplicationExecutionReplicationIDMismatch struct + func (e *ErrReplicationExecutionReplicationIDMismatch) Error() string + type ErrReplicationIDNotExists struct + func (e *ErrReplicationIDNotExists) Error() string + type ErrReplicationIllegalIDFormat struct + func (e *ErrReplicationIllegalIDFormat) Error() string + type ErrReplicationInternalErrors struct + func (e *ErrReplicationInternalErrors) Error() string + type ErrReplicationMismatch struct + func (e *ErrReplicationMismatch) Error() string + type ErrReplicationNameAlreadyExists struct + func (e *ErrReplicationNameAlreadyExists) Error() string + type ErrReplicationNoPermission struct + func (e *ErrReplicationNoPermission) Error() string + type ErrReplicationNotFound struct + func (e *ErrReplicationNotFound) Error() string + type ErrReplicationNotProvided struct + func (e *ErrReplicationNotProvided) Error() string + type ErrReplicationUnauthorized struct + func (e *ErrReplicationUnauthorized) Error() string + type RESTClient struct + AuthInfo runtime.ClientAuthInfoWriter + LegacyClient *client.Harbor + V2Client *v2client.Harbor + func NewClient(legacyClient *client.Harbor, v2Client *v2client.Harbor, ...) *RESTClient + func (c *RESTClient) DeleteReplicationPolicy(ctx context.Context, r *legacymodel.ReplicationPolicy) error + func (c *RESTClient) GetReplicationExecutionByID(ctx context.Context, id int64) (*modelv2.ReplicationExecution, error) + func (c *RESTClient) GetReplicationExecutions(ctx context.Context, r *modelv2.ReplicationExecution) ([]*modelv2.ReplicationExecution, error) + func (c *RESTClient) GetReplicationPolicy(ctx context.Context, name string) (*legacymodel.ReplicationPolicy, error) + func (c *RESTClient) GetReplicationPolicyByID(ctx context.Context, id int64) (*legacymodel.ReplicationPolicy, error) + func (c *RESTClient) NewReplicationPolicy(ctx context.Context, destRegistry, srcRegistry *legacymodel.Registry, ...) (*legacymodel.ReplicationPolicy, error) + func (c *RESTClient) TriggerReplicationExecution(ctx context.Context, r *modelv2.StartReplicationExecution) error + func (c *RESTClient) UpdateReplicationPolicy(ctx context.Context, r *legacymodel.ReplicationPolicy) error Other modules containing this package github.com/mittwald/goharbor-client/v2 github.com/mittwald/goharbor-client/v3