docker

package
v0.0.0-...-0493478 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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