Documentation ¶
Index ¶
- func ToUserAndPass(userpass []string) (map[string]Userpass, error)
- type Clientset
- func (c *Clientset) Do(cli *http.Client, r *http.Request) (resp *http.Response, err error)
- func (c *Clientset) DoWithAuth(cli *http.Client, r *http.Request, host string) (*http.Response, error)
- func (c *Clientset) GetClientset(host string, image string) *http.Client
- func (c *Clientset) GetScheme(host string) string
- func (c *Clientset) HostURL(host string) string
- func (c *Clientset) Ping(host string) error
- type Option
- func WithAllowHeadMethod(allowHeadMethod bool) Option
- func WithBaseClient(baseClient *http.Client) Option
- func WithDisableKeepAlives(disableKeepAlives []string) Option
- func WithDomainAlias(domainAlias map[string]string) Option
- func WithLogger(logger *slog.Logger) Option
- func WithMaxClientSizeForEachRegistry(clientSize int) Option
- func WithRetry(retry int, retryInterval time.Duration) Option
- func WithStorageDriver(storageDriver storagedriver.StorageDriver) Option
- func WithUserAndPass(userAndPass map[string]Userpass) Option
- type Userpass
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Clientset ¶
type Clientset struct {
// contains filtered or unexported fields
}
func NewClientset ¶
func (*Clientset) DoWithAuth ¶
func (*Clientset) GetClientset ¶
type Option ¶
type Option func(c *Clientset)
func WithAllowHeadMethod ¶
func WithBaseClient ¶
func WithDisableKeepAlives ¶
func WithDomainAlias ¶
func WithLogger ¶
func WithStorageDriver ¶
func WithStorageDriver(storageDriver storagedriver.StorageDriver) Option
func WithUserAndPass ¶
Click to show internal directories.
Click to hide internal directories.