nexus

package
v0.0.0-...-de13735 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: Apache-2.0 Imports: 9 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 struct {
	*http.Client
	// contains filtered or unexported fields
}

Client is an HTTP client to connect to ChartMuseum

func NewClient

func NewClient(opts ...Option) *Client

NewClient creates a new client.

func (*Client) Option

func (client *Client) Option(opts ...Option) *Client

Option configures the client with the provided options.

func (*Client) UploadChartPackage

func (client *Client) UploadChartPackage(chartPackagePath string, force bool) (*http.Response, error)

UploadChartPackage uploads a chart package to nexus (POST /service/rest/v1/components?repository=repo-name)

type Option

type Option func(*options)

Option allows specifying various settings

func Password

func Password(password string) Option

Password is HTTP basic auth password

func Timeout

func Timeout(timeout int64) Option

Timeout specifies the duration (in seconds) before timing out request

func URL

func URL(url string) Option

URL specifies the chart repo URL

func Username

func Username(username string) Option

Username is HTTP basic auth username

Jump to

Keyboard shortcuts

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