config

package
v0.0.0-...-2854e50 Latest Latest
Warning

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

Go to latest
Published: May 15, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidOS

func IsValidOS(os string) bool

func IsValidStemcellVersion

func IsValidStemcellVersion(version string) bool

func ValidateOrCreateOutputDir

func ValidateOrCreateOutputDir(outputDir string) error

Types

type OutputConfig

type OutputConfig struct {
	Os              string
	StemcellVersion string
	OutputDir       string
}

func (OutputConfig) ValidateConfig

func (c OutputConfig) ValidateConfig() error

type Source

type Source int
const (
	VMDK Source = iota
	VCENTER
	NIL
)

type SourceConfig

type SourceConfig struct {
	Vmdk            string
	URL             string
	Username        string
	Password        string
	VmInventoryPath string
	CaCertFile      string
}

func (SourceConfig) GetSource

func (c SourceConfig) GetSource() (Source, error)

type VmdkOptions

type VmdkOptions struct {
	OSVersion string `yaml:"os_version"`
	OutputDir string `yaml:"output_dir"`
	Version   string `yaml:"version"`
	VMDKFile  string `yaml:"vmdk_file"`
}

Jump to

Keyboard shortcuts

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