container

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RegistryPassword = "REGISTRY_USER_PASSWORD"
	RegistryUserName = "REGISTRY_USERNAME"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	ListTags(
		src string,
	) ([]string, error)
}

type Container

type Container struct {
	Auth authn.Basic
	// contains filtered or unexported fields
}

Container is a wrapper around Container related functionality

func New

func New() *Container

New creates a new default container client. Tokens set via the $REGISTRY_USER_PASSWORD and $REGISTRY_USERNAME environment variable will result in an authenticated client.

func (*Container) Client

func (c *Container) Client() Client

Client can be used to retrieve the Client type

func (*Container) ListTags

func (c *Container) ListTags(
	src string,
) ([]string, error)

ListTags list all tag for a specific repository

func (*Container) SetClient

func (c *Container) SetClient(client Client)

SetClient can be used to manually set the internal Container client

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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