vsphere

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(ctx context.Context, soapURL, user, password, vsphereserver string, insecure bool) (provider.Provider, error)

NewProvider returns an vSphere Provider

func ResourceTypeStrings

func ResourceTypeStrings() []string

ResourceTypeStrings returns a slice of all String values of the enum

Types

type ResourceType

type ResourceType int

ResourceType is the type used to define all the Resources from the Provider

func ResourceTypeString

func ResourceTypeString(s string) (ResourceType, error)

ResourceTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func ResourceTypeValues

func ResourceTypeValues() []ResourceType

ResourceTypeValues returns all values of the enum

func (ResourceType) IsAResourceType

func (i ResourceType) IsAResourceType() bool

IsAResourceType returns "true" if the value is listed in the enum definition. "false" otherwise

func (ResourceType) String

func (i ResourceType) String() string

Jump to

Keyboard shortcuts

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