registry

package
v5.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImageKey = "PODMAN_REGISTRY_IMAGE"
	UserKey  = "PODMAN_REGISTRY_USER"
	PassKey  = "PODMAN_REGISTRY_PASS"
	PortKey  = "PODMAN_REGISTRY_PORT"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// PodmanPath - path to podman executable
	PodmanPath string
	// PodmanArgs - array of podman options
	PodmanArgs []string
	// Image - custom registry image.
	Image string
}

Options allows for customizing a registry.

type Registry

type Registry struct {
	// Image - container image of the registry.
	Image string
	// User - the user to authenticate against the registry.
	User string
	// Password - the accompanying password for the user.
	Password string
	// Port - the port the registry is listening to on the host.
	Port string
	// contains filtered or unexported fields
}

Registry is locally running registry.

func StartWithOptions

func StartWithOptions(options *Options) (*Registry, error)

StartWithOptions a new registry and return it along with its image, user, password, and port.

func (*Registry) Stop

func (r *Registry) Stop() error

Stop the registry.

Jump to

Keyboard shortcuts

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