vsphere

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSessionWithRestore

func CheckSessionWithRestore(ctx context.Context, vmcfg *Config, gclient *govmomi.Client) error

func DeleteGovmomiClient

func DeleteGovmomiClient(gclient *govmomi.Client) error

func NewGovmomiClient

func NewGovmomiClient(vmcfg Config) (*govmomi.Client, error)

func NewProvider

func NewProvider(config *Config) (cloud.Provider, error)

Types

type Config

type Config struct {
	VcenterURL   string
	UserName     string
	Password     string
	Thumbprint   string
	Datacenter   string
	Cluster      string
	Datastore    string
	DRS          string
	Deployfolder string
	Template     string
	Host         string
}

func (Config) Redact

func (c Config) Redact() Config

type Manager

type Manager struct{}

func (*Manager) LoadEnv

func (_ *Manager) LoadEnv()

func (*Manager) NewProvider

func (_ *Manager) NewProvider() (cloud.Provider, error)

func (*Manager) ParseCmd

func (_ *Manager) ParseCmd(flags *flag.FlagSet)

type VmConfig

type VmConfig []types.BaseOptionValue

Jump to

Keyboard shortcuts

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