action_govc

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 101 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Action_GOVC

func Action_GOVC(w *workflow.Workflow, m *workflow.TemplateData) error

func GetSchema

func GetSchema() workflow.SchemaEndpoint

GetAction returns the action for the target

func PrintSomethingOut

func PrintSomethingOut(out io.Writer)

Types

type GovcSchema

type GovcSchema struct {
}

func (GovcSchema) GetActionSchema

func (s GovcSchema) GetActionSchema() map[string]workflow.ActionSchema

GetActions returns the actions for this schema

func (GovcSchema) GetFunctionMap

func (s GovcSchema) GetFunctionMap() map[string]workflow.FunctionSchema

GetFunctionMap returns the function map for this schema

func (GovcSchema) GetTargetSchema

func (s GovcSchema) GetTargetSchema() map[string]workflow.TargetSchema

GetTargetSchema returns the target schema for this action

type VCenter

type VCenter struct {
	Host         string `json:"host" yaml:"host" flag:"host h" desc:"Url to vcenter"`
	User         string `json:"user" yaml:"user" flag:"user u" desc:"The user name for the vcenter"`
	Password     string `json:"password" yaml:"password" flag:"password p" desc:"The password for the vcenter"`
	IgnoreSSL    bool   `json:"ignore_ssl" yaml:"ignore_ssl" flag:"ignore_ssl i" desc:"Ignore SSL"`
	DataStore    string `json:"data_store" yaml:"data_store" flag:"data_store s" desc:"Data Store"`
	DataCenter   string `json:"data_center" yaml:"data_center" flag:"data_center c" desc:"Data Center"`
	Network      string `json:"network" yaml:"network" flag:"network n" desc:"Network"`
	ResourcePool string `json:"resource_pool" yaml:"resource_pool"  flag:"resource_pool r" desc:"Resource Pool"`
}

Vcenter Target struct

func CreateVCenter

func CreateVCenter(env string, host string, user string, password string, ignore_ssl bool, data_store string, data_center string, network string, resource_pool string) *VCenter

func CreateVCenterOptions

func CreateVCenterOptions(env string, opts ...VCenterOption) *VCenter

func (*VCenter) Run

func (m *VCenter) Run(command string, silent bool) error

Run GOVC commands

func (*VCenter) String

func (m *VCenter) String() string

func (*VCenter) Test

func (m *VCenter) Test() (bool, string, error)

Test the connection

func (*VCenter) Update

func (m *VCenter) Update(opts ...VCenterOption)

type VCenterOption

type VCenterOption func(*VCenter)

Load the config

func OptionVCenterDataCenter

func OptionVCenterDataCenter(data_center string) VCenterOption

func OptionVCenterDataStore

func OptionVCenterDataStore(data_store string) VCenterOption

func OptionVCenterHost

func OptionVCenterHost(host string) VCenterOption

func OptionVCenterIgnoreSSL

func OptionVCenterIgnoreSSL(ignore_ssl bool) VCenterOption

func OptionVCenterNetwork

func OptionVCenterNetwork(network string) VCenterOption

func OptionVCenterPassword

func OptionVCenterPassword(password string) VCenterOption

func OptionVCenterResourcePool

func OptionVCenterResourcePool(resource_pool string) VCenterOption

func OptionVCenterUser

func OptionVCenterUser(user string) VCenterOption

Jump to

Keyboard shortcuts

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