Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // ApplyConfiguration applies configuration to harbor instance. ApplyConfiguration(ctx context.Context, config []byte) error }
Client defines common harbor client interface.
func NewClient ¶
func NewClient(url string, opts ...ClientOption) Client
NewClient constructs harbor client.
type ClientOption ¶
type ClientOption func(*Options)
ClientOption wraps client options.
func WithCredential ¶
func WithCredential(username, password string) ClientOption
WithCredential injects credential.
func WithHTTPClient ¶
func WithHTTPClient(ct *http.Client) ClientOption
WithHTTPClient injects http client.
Click to show internal directories.
Click to hide internal directories.