Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProvisionCommand ¶
NewProvisionCommand is the 'beta provision' commmand
Types ¶
type Config ¶
type Config struct { License struct { FileRef FileRef `yaml:"fileRef"` } `yaml:"license"` Connections map[string]connection `yaml:"connections"` }
Config represents the high level structure of expected file for 'provision' cmd.
type FileRef ¶
type FileRef struct { Inline string `yaml:"inline"` URL string `yaml:"URL"` Filepath string `yaml:"filepath"` }
FileRef is structure that specifies how to retrieve the file to be uploaded
func (*FileRef) UnmarshalYAML ¶ added in v5.1.1
This is pretty cursed. The yaml lib is case-sensitive when it comes to mapping keys to struct fields. Previous versions of the CLI accidentally unknowingly introduced case-insensitivity. Turns out that there are provision.yamls that use filePath instead of filepath. This is a hack to maintain compatibility with those files.
Click to show internal directories.
Click to hide internal directories.