dockerutils

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DockerConfigKey string = ".dockerconfigjson"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Auths map[string]DockerAuth `json:"auths"`
}

func NewDockerConfig

func NewDockerConfig(host, user, password string) *Config

func (*Config) JSON

func (c *Config) JSON() (string, error)

type DockerAuth

type DockerAuth struct {
	User     string `json:"username"`
	Password string `json:"password"`
	Auth     string `json:"auth"`
}

Jump to

Keyboard shortcuts

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