Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { GetConfigs(ctx context.Context) (*model.ConfigurationsResponse, error) UpdateConfigs(ctx context.Context, newConfiguration *model.Configurations) error }
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 project related actions.
func NewClient ¶
func NewClient(v2Client *v2client.Harbor, opts *config.Options, authInfo runtime.ClientAuthInfoWriter) *RESTClient
func (*RESTClient) GetConfigs ¶
func (c *RESTClient) GetConfigs(ctx context.Context) (*model.ConfigurationsResponse, error)
GetConfigs returns a system configurations object.
func (*RESTClient) UpdateConfigs ¶
func (c *RESTClient) UpdateConfigs(ctx context.Context, cfg *model.Configurations) error
UpdateConfigs modifying system configurations that only provides for admin users.
Click to show internal directories.
Click to hide internal directories.