docker

package
v1.3.12 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteDockerConfig

func WriteDockerConfig(data []byte, path string) (string error)

Types

type Auth

type Auth struct {
	Auth string `json:"auth"`
}

type Config

type Config struct {
	Auths       map[string]Auth   `json:"auths"`
	CredHelpers map[string]string `json:"credHelpers,omitempty"`
}

func NewConfig

func NewConfig() *Config

func (*Config) CreateDockerConfigJson

func (c *Config) CreateDockerConfigJson(credentials []RegistryCredentials) ([]byte, error)

func (*Config) SetAuth

func (c *Config) SetAuth(registry, username, password string)

func (*Config) SetCredHelper

func (c *Config) SetCredHelper(registry, helper string)

type RegistryCredentials

type RegistryCredentials struct {
	Registry string
	Username string
	Password string
}

Jump to

Keyboard shortcuts

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