harbor

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

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.

type Options

type Options struct {
	// contains filtered or unexported fields
}

Options defines client options.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL