Documentation ¶
Index ¶
- type Client
- type Option
- func AccessToken(accessToken string) Option
- func AuthHeader(authHeader string) Option
- func CAFile(caFile string) Option
- func CertFile(certFile string) Option
- func ContextPath(contextPath string) Option
- func InsecureSkipVerify(insecureSkipVerify bool) Option
- func KeyFile(keyFile string) Option
- func Password(password string) Option
- func Timeout(timeout int64) Option
- func URL(url string) Option
- func Username(username string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an HTTP client to connect to ChartMuseum
func (*Client) DownloadFile ¶ added in v0.2.0
DownloadFile downloads a file from ChartMuseum
type Option ¶
type Option func(*options)
Option allows specifying various settings
func AccessToken ¶ added in v0.2.0
AccessToken is sent in the authorization header
func AuthHeader ¶ added in v0.3.0
AuthHeader is an alternative header to use for token auth
func ContextPath ¶
ContextPath is the URL prefix for ChartMuseum installation
func InsecureSkipVerify ¶ added in v0.6.0
InsecureSkipVerify to indicate if verify the certificate when connecting
Click to show internal directories.
Click to hide internal directories.