configfile

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigFile

type ConfigFile struct {
	PsFormat             string            `json:"psFormat,omitempty"`
	ImagesFormat         string            `json:"imagesFormat,omitempty"`
	NetworksFormat       string            `json:"networksFormat,omitempty"`
	PluginsFormat        string            `json:"pluginsFormat,omitempty"`
	VolumesFormat        string            `json:"volumesFormat,omitempty"`
	StatsFormat          string            `json:"statsFormat,omitempty"`
	DetachKeys           string            `json:"detachKeys,omitempty"`
	Filename             string            `json:"-"` // Note: for internal use only
	ServiceInspectFormat string            `json:"serviceInspectFormat,omitempty"`
	ServicesFormat       string            `json:"servicesFormat,omitempty"`
	TasksFormat          string            `json:"tasksFormat,omitempty"`
	SecretFormat         string            `json:"secretFormat,omitempty"`
	ConfigFormat         string            `json:"configFormat,omitempty"`
	NodesFormat          string            `json:"nodesFormat,omitempty"`
	CurrentContext       string            `json:"currentContext,omitempty"`
	Aliases              map[string]string `json:"aliases,omitempty"`
	Features             map[string]string `json:"features,omitempty"`
}

ConfigFile ~/.sudocker/config.json 文件信息

func New

func New(fn string) *ConfigFile

给定文件名 'fn',初始化配置文件

func (*ConfigFile) GetFilename

func (configFile *ConfigFile) GetFilename() string

GetFilename 返回配置文件名

func (*ConfigFile) LoadFromReader

func (configFile *ConfigFile) LoadFromReader(configData io.Reader) error

LoadFromReader读取配置文件

Jump to

Keyboard shortcuts

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