docker

package
v0.12.12-rc9 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteConfig

func WriteConfig(path string, config *Config) error

Types

type Auth

type Auth map[string]interface{}

type Config

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

func LoadConfig

func LoadConfig(path string) (*Config, error)

func NewConfig

func NewConfig() *Config

func (*Config) MarshalJSON

func (c *Config) MarshalJSON() ([]byte, error)

this overrides the default json.Marshal function we only marshal config.Auths to match the older 'dockercfg' format see: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/private-auth.html

Jump to

Keyboard shortcuts

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