package configfile
import "github.com/dotcloud/docker/cliconfig/configfile"
Index ¶
- type ConfigFile
- func (configFile *ConfigFile) ContainsAuth() bool
- func (configFile *ConfigFile) LegacyLoadFromReader(configData io.Reader) error
- func (configFile *ConfigFile) LoadFromReader(configData io.Reader) error
- func (configFile *ConfigFile) Save() error
- func (configFile *ConfigFile) SaveToWriter(writer io.Writer) error
Types ¶
type ConfigFile ¶
type ConfigFile struct { AuthConfigs map[string]types.AuthConfig `json:"auths"` HTTPHeaders map[string]string `json:"HttpHeaders,omitempty"` PsFormat string `json:"psFormat,omitempty"` ImagesFormat string `json:"imagesFormat,omitempty"` DetachKeys string `json:"detachKeys,omitempty"` CredentialsStore string `json:"credsStore,omitempty"` Filename string `json:"-"` // Note: for internal use only }
ConfigFile ~/.docker/config.json file info
func (*ConfigFile) ContainsAuth ¶
func (configFile *ConfigFile) ContainsAuth() bool
ContainsAuth returns whether there is authentication configured in this file or not.
func (*ConfigFile) LegacyLoadFromReader ¶
func (configFile *ConfigFile) LegacyLoadFromReader(configData io.Reader) error
LegacyLoadFromReader reads the non-nested configuration data given and sets up the auth config information with given directory and populates the receiver object
func (*ConfigFile) LoadFromReader ¶
func (configFile *ConfigFile) LoadFromReader(configData io.Reader) error
LoadFromReader reads the configuration data given and sets up the auth config information with given directory and populates the receiver object
func (*ConfigFile) Save ¶
func (configFile *ConfigFile) Save() error
Save encodes and writes out all the authorization information
func (*ConfigFile) SaveToWriter ¶
func (configFile *ConfigFile) SaveToWriter(writer io.Writer) error
SaveToWriter encodes and writes out all the authorization information to the given writer
Source Files ¶
- Version
- v1.12.3-rc1
- Published
- Oct 25, 2016
- Platform
- js/wasm
- Imports
- 9 packages
- Last checked
- 36 minutes ago –
Tools for package owners.