registry

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 21 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 struct {
	Kubernetes kubernetespkg.Interface
	Reposure   reposurepkg.Interface
	Context    contextpkg.Context
	Log        commonlog.Logger

	Namespace    string
	TLSMountPath string
}

func NewClient

func NewClient(kubernetes kubernetespkg.Interface, reposure reposurepkg.Interface, context contextpkg.Context, log commonlog.Logger, namespace string, tlsMountPath string) *Client

func (*Client) DirectClient added in v0.1.1

func (self *Client) DirectClient(registry *resources.Registry) (*directclient.Client, error)

func (*Client) Get

func (self *Client) Get(namespace string, registryName string) (*resources.Registry, error)

func (*Client) GetAuthorization

func (self *Client) GetAuthorization(registry *resources.Registry) (string, string, string, string, error)

func (*Client) GetCertificatePath

func (self *Client) GetCertificatePath(registry *resources.Registry) string

func (*Client) GetHTTPRoundTripper

func (self *Client) GetHTTPRoundTripper(registry *resources.Registry) (string, http.RoundTripper, error)

func (*Client) GetHost

func (self *Client) GetHost(registry *resources.Registry) (string, error)

func (*Client) GetRemoteOptions

func (self *Client) GetRemoteOptions(registry *resources.Registry) ([]remote.Option, error)

func (*Client) GetTLSCertBytes

func (self *Client) GetTLSCertBytes(registry *resources.Registry) ([]byte, error)

func (*Client) GetTLSCertPool

func (self *Client) GetTLSCertPool(registry *resources.Registry) (*x509.CertPool, error)

func (*Client) PushTarball

func (self *Client) PushTarball(context contextpkg.Context, artifactName string, sourceUrl exturl.URL, registry *resources.Registry) (string, error)

TODO: what uses this?

func (*Client) UpdateURLContext

func (self *Client) UpdateURLContext(registry *resources.Registry, urlContext *exturl.Context) error

Jump to

Keyboard shortcuts

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