Documentation
¶
Overview ¶
Package config exports functionality for storing/retrieving build step configuration on/from the local disk.
Index ¶
- func Load(r io.Reader, v interface{}) error
- func LoadFromFile(path string, v interface{}) (err error)
- func Save(w io.Writer, v interface{}) error
- func SaveConfigToFile(configFile *os.File, v interface{}) error
- func SaveConfigToPath(configPath string, config interface{}) (err error)
- type Build
- type GPUConfig
- type Image
- type Toolchain
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadFromFile ¶
LoadFromFile loads JSON data from a file into the given struct.
func SaveConfigToFile ¶
SaveConfigToFile clears the target config file and then saves the new config data.
func SaveConfigToPath ¶
SaveConfigToPath does the same thing as SaveConfigToFile, but updates a file system path.
Types ¶
type Build ¶
type Build struct {
GCSBucket string
GCSDir string
Project string
Zone string
MachineType string
ServiceAccount string
DiskType string
DiskSize int
GPUType string
Timeout string
GCSFiles []string
GCEEndpoint string
Network string
Subnet string
Toolchain *Toolchain
GPUConfig *GPUConfig
}
Build stores configuration data associated with the image build session.
Click to show internal directories.
Click to hide internal directories.