config

package
v0.0.0-...-bc23101 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 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)

Jump to

Keyboard shortcuts

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