Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RESTClient ¶
type RESTClient struct { Options *config.Options LegacyClient *client.Harbor // 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 registry related actions.
func NewClient ¶
func NewClient(legacyClient *client.Harbor, v2Client *v2client.Harbor, opts *config.Options, authInfo runtime.ClientAuthInfoWriter) *RESTClient
func (*RESTClient) GetReportLog ¶
func (c *RESTClient) GetReportLog(ctx context.Context, projectName, repositoryName, reference, reportID string) (interface{}, error)
func (*RESTClient) ScanArtifact ¶
func (c *RESTClient) ScanArtifact(ctx context.Context, projectName, repositoryName, reference string) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.