clientset

package
v0.13.0-alpha.21 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToUserAndPass

func ToUserAndPass(userpass []string) (map[string]Userpass, error)

Types

type Clientset

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

func NewClientset

func NewClientset(opts ...Option) (*Clientset, error)

func (*Clientset) Do

func (c *Clientset) Do(cli *http.Client, r *http.Request) (resp *http.Response, err error)

func (*Clientset) DoWithAuth

func (c *Clientset) DoWithAuth(cli *http.Client, r *http.Request, host string) (*http.Response, error)

func (*Clientset) GetClientset

func (c *Clientset) GetClientset(host string, image string) *http.Client

func (*Clientset) GetScheme

func (c *Clientset) GetScheme(host string) string

func (*Clientset) HostURL

func (c *Clientset) HostURL(host string) string

func (*Clientset) Ping

func (c *Clientset) Ping(host string) error

type Option

type Option func(c *Clientset)

func WithAllowHeadMethod

func WithAllowHeadMethod(allowHeadMethod bool) Option

func WithBaseClient

func WithBaseClient(baseClient *http.Client) Option

func WithDisableKeepAlives

func WithDisableKeepAlives(disableKeepAlives []string) Option

func WithDomainAlias

func WithDomainAlias(domainAlias map[string]string) Option

func WithLogger

func WithLogger(logger *slog.Logger) Option

func WithMaxClientSizeForEachRegistry

func WithMaxClientSizeForEachRegistry(clientSize int) Option

func WithRetry

func WithRetry(retry int, retryInterval time.Duration) Option

func WithStorageDriver

func WithStorageDriver(storageDriver storagedriver.StorageDriver) Option

func WithUserAndPass

func WithUserAndPass(userAndPass map[string]Userpass) Option

type Userpass

type Userpass struct {
	Username string
	Password string
}

Jump to

Keyboard shortcuts

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