local_registry

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCommand

func BuildCommand(configFilePath string, dir string) error

func DestroyLocalRegistry

func DestroyLocalRegistry() error

DestroyLocalRegistry stops and removes the local Docker registry based on the ID stored in the profile

func GetNonNilFields

func GetNonNilFields(logString DockerEngineLogString) (result string)

func InitCommand

func InitCommand(configFilePath string) error

func PrintLog

func PrintLog(rd io.Reader) error

PrintLog Get logs produced by docker engine and print them in fancy formating takes io.Reader as input and returns error if any occur in logs form docker engine

func RotateCommand

func RotateCommand(configFilePath string) error

func RotateCreds

func RotateCreds(
	dockerClient *client.Client,
	ctx context.Context,
	username, password, containerName string,
) error

func StopAndRemoveContainer

func StopAndRemoveContainer(containerID string) error

StopAndRemoveContainer stops and removes a Docker container

Types

type DockerEngineLogString

type DockerEngineLogString struct {
	Stream         string `json:"stream,omitempty"`
	Aux            string `json:"aux,omitempty"`
	Status         string `json:"status,omitempty"`
	ProgressDetail string `json:"progressDetail,omitempty"`
}

type ErrorLine

type ErrorLine struct {
	Error       string `json:"error"`
	ErrorDetail struct {
		Message string `json:"message"`
	} `json:"errorDetail"`
}

Jump to

Keyboard shortcuts

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