Documentation ¶
Index ¶
- func Action_GOVC(w *workflow.Workflow, m *workflow.TemplateData) error
- func GetSchema() workflow.SchemaEndpoint
- func PrintSomethingOut(out io.Writer)
- type GovcSchema
- type VCenter
- type VCenterOption
- func OptionVCenterDataCenter(data_center string) VCenterOption
- func OptionVCenterDataStore(data_store string) VCenterOption
- func OptionVCenterHost(host string) VCenterOption
- func OptionVCenterIgnoreSSL(ignore_ssl bool) VCenterOption
- func OptionVCenterNetwork(network string) VCenterOption
- func OptionVCenterPassword(password string) VCenterOption
- func OptionVCenterResourcePool(resource_pool string) VCenterOption
- func OptionVCenterUser(user string) VCenterOption
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 ¶
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 CreateVCenterOptions ¶
func CreateVCenterOptions(env string, opts ...VCenterOption) *VCenter
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
Click to show internal directories.
Click to hide internal directories.