provision

package
v5.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvisionCommand

func NewProvisionCommand() *cobra.Command

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

func (f *FileRef) UnmarshalYAML(value *yaml.Node) error

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.

Jump to

Keyboard shortcuts

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