Documentation ¶
Index ¶
- type Addition
- type Client
- type CopyReference
- type RESTClient
- func (c *RESTClient) AddArtifactLabel(ctx context.Context, projectName, repositoryName, reference string, ...) error
- func (c *RESTClient) CopyArtifact(ctx context.Context, from *CopyReference, projectName, repositoryName string) error
- func (c *RESTClient) CreateTag(ctx context.Context, projectName, repositoryName, reference string, ...) error
- func (c *RESTClient) DeleteArtifact(ctx context.Context, projectName, repositoryName, reference string) error
- func (c *RESTClient) DeleteTag(ctx context.Context, projectName, repositoryName, reference, tagName string) error
- func (c *RESTClient) GetArtifact(ctx context.Context, projectName, repositoryName, reference string) (*model.Artifact, error)
- func (c *RESTClient) ListArtifacts(ctx context.Context, projectName, repositoryName string) ([]*model.Artifact, error)
- func (c *RESTClient) ListTags(ctx context.Context, projectName, repositoryName, reference string) ([]*model.Tag, error)
- func (c *RESTClient) RemoveLabel(ctx context.Context, projectName, repositoryName, reference string, id int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { AddArtifactLabel(ctx context.Context, projectName, repositoryName, reference string, label *model.Label) error CopyArtifact(ctx context.Context, from *CopyReference, projectName, repositoryName string) error CreateTag(ctx context.Context, projectName, repositoryName, reference string, tag *model.Tag) error DeleteTag(ctx context.Context, projectName, repositoryName, reference, tagName string) error GetArtifact(ctx context.Context, projectName, repositoryName, reference string) (*model.Artifact, error) DeleteArtifact(ctx context.Context, projectName, repositoryName, reference string) error ListArtifacts(ctx context.Context, projectName, repositoryName string) ([]*model.Artifact, error) ListTags(ctx context.Context, projectName, repositoryName, reference string) ([]*model.Tag, error) RemoveLabel(ctx context.Context, projectName, repositoryName, reference string, id int64) error }
type CopyReference ¶
CopyReference defines the parameters needed for an artifact copy.
type RESTClient ¶
type RESTClient struct { // Options contains optional configuration when making API calls. Options *config.Options // The new client of the harbor v2 API V2Client *v2client.Harbor // AuthInfo contains the auth information that is provided on API calls. AuthInfo runtime.ClientAuthInfoWriter }
RESTClient is a subclient for handling artifact related actions.
func NewClient ¶
func NewClient(v2Client *v2client.Harbor, opts *config.Options, authInfo runtime.ClientAuthInfoWriter) *RESTClient
func (*RESTClient) AddArtifactLabel ¶
func (*RESTClient) CopyArtifact ¶
func (c *RESTClient) CopyArtifact(ctx context.Context, from *CopyReference, projectName, repositoryName string) error
func (*RESTClient) DeleteArtifact ¶
func (c *RESTClient) DeleteArtifact(ctx context.Context, projectName, repositoryName, reference string) error
func (*RESTClient) DeleteTag ¶
func (c *RESTClient) DeleteTag(ctx context.Context, projectName, repositoryName, reference, tagName string) error
func (*RESTClient) GetArtifact ¶
func (*RESTClient) ListArtifacts ¶
func (*RESTClient) RemoveLabel ¶
Click to show internal directories.
Click to hide internal directories.