Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Destroy ¶
func Destroy(client *govmomi.Client, dc *object.Datacenter, TempalateName string, status *taskstatus.Status) (err error)
func ValidateDestinationPort ¶
func ValidateProtocol ¶
func ValidateSourcePort ¶
Types ¶
type Config ¶
type Config struct { Name string `json:"name,omitempty" yaml:"name,omitempty"` Description string `json:"description,omitempty" yaml:"description"` Path string `json:"path,omitempty" yaml:"path,omitempty"` PortForwards []*PortForward `json:"portforwards" yaml:"portforwards"` Networks *[]template.Network `json:"networks" yaml:"networks"` }
func (*Config) Import ¶
func (c *Config) Import(client *govmomi.Client, dc *object.Datacenter, pool string, status *taskstatus.Status) (err error)
Imports a new demo from the speciefid folder
func (*Config) ValidatePortforwards ¶
func (*Config) WriteToFile ¶
type PortForward ¶
type PortForward struct { SourcePort uint `json:"sourceport" yaml:"sourceport"` DestinationPort uint `json:"destinationport,omitempty" yaml:"destinationport,omitempty"` DestinationIP string `json:"destinationip" yaml:"destinationip"` Protocol string `json:"protocol,omitempty" yaml:"protocol,omitempty"` }
func (*PortForward) ValidateIP ¶
func (p *PortForward) ValidateIP() error
Click to show internal directories.
Click to hide internal directories.