artifactory

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: Apache-2.0 Imports: 11 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 {
	UploadChartPackage(chartName, chartPackagePath string) (*http.Response, error)
	ReindexArtifactoryRepo() (*http.Response, error)
}

func NewClient

func NewClient(opts ...Option) (Client, error)

NewClient creates a new client.

type Option

type Option func(*options)

Option allows specifying various settings

func AccessToken

func AccessToken(accessToken string) Option

AccessToken is sent in the authorization header

func ApiKey

func ApiKey(apiKey string) Option

ApiKey is sent in artifactory header

func CAFile

func CAFile(caFile string) Option

CAFile specifies the path of CA bundle

func CertFile

func CertFile(certFile string) Option

CertFile specifies the path of SSL certificate file

func InsecureSkipVerify

func InsecureSkipVerify(insecureSkipVerify bool) Option

InsecureSkipVerify to indicate if verify the certificate when connecting

func KeyFile

func KeyFile(keyFile string) Option

KeyFile specifies the path of SSL key file

func Password

func Password(password string) Option

Password is HTTP basic auth password

func Path

func Path(path string) Option

Path specifies the path in the repo

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