client

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package client GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthorizer

func NewAuthorizer(ctx context.Context, c AuthChallenger, name reference.Named, actions []string) transport.RequestModifier

Types

type AuthChallenger

type AuthChallenger interface {
	TryEstablishChallenges(context.Context) error
	ChallengeManager() challenge.Manager
	CredentialStore() auth.CredentialStore
}

func NewAuthChallenger

func NewAuthChallenger(remoteURL *url.URL, username, password string) (AuthChallenger, error)

type Client

type Client struct {
	Registry       RemoteRegistry
	KeepOriginHost bool
	// contains filtered or unexported fields
}

func (*Client) AuthChallenger

func (c *Client) AuthChallenger() AuthChallenger

func (*Client) FixedNamed

func (c *Client) FixedNamed(named reference.Named) reference.Named

func (*Client) Host

func (c *Client) Host() string

func (*Client) Repository

func (c *Client) Repository(ctx context.Context, name reference.Named) (distribution.Repository, error)

func (Client) RuntimeDoc

func (v Client) RuntimeDoc(names ...string) ([]string, bool)

func (*Client) URL

func (c *Client) URL() *url.URL

func (*Client) UpdateImages

func (c *Client) UpdateImages(kubepkgs []*v1alpha1.KubePkg) []*v1alpha1.KubePkg

type RemoteRegistry

type RemoteRegistry struct {
	// Remote container registry endpoint
	Endpoint string `flag:",omitempty"`
	// Remote container registry username
	Username string `flag:",omitempty"`
	// Remote container registry password
	Password string `flag:",omitempty,secret"`
}

func (RemoteRegistry) RuntimeDoc

func (v RemoteRegistry) RuntimeDoc(names ...string) ([]string, bool)

Jump to

Keyboard shortcuts

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