Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
 - type Create
 - func (c *Create) Flags() []cli.Flag
 - func (c *Create) ProcessBridgeNetwork() error
 - func (c *Create) ProcessNetwork(op trace.Operation, network *data.NetworkConfig, ...) error
 - func (c *Create) ProcessParams(op trace.Operation) error
 - func (c *Create) ProcessSyslog() error
 - func (c *Create) Run(clic *cli.Context) (err error)
 - func (c *Create) SetFields() map[string]struct{}
 
Constants ¶
      View Source
      
  
const ( // Max permitted length of Virtual Machine name MaxVirtualMachineNameLen = 80 // Max permitted length of Virtual Switch name MaxDisplayNameLen = 31 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Create ¶
type Create struct {
	common.Networks
	*data.Data
	Certs common.CertFactory
	Registries common.Registries
	Nameservers common.DNS
	BridgeIPRange string
	Proxies common.Proxies
	SyslogAddr string
	// contains filtered or unexported fields
}
    Create has all input parameters for vic-machine create command
func (*Create) ProcessNetwork ¶
func (c *Create) ProcessNetwork(op trace.Operation, network *data.NetworkConfig, netName, pgName, staticIP, gateway string) error
ProcessNetwork parses network args if present
func (*Create) SetFields ¶
SetFields iterates through the fields in the Create struct, searching for fields tagged with the `arg` key. If the value of that tag matches the supplied `flag` string, a nil check is performed. If the field is not nil, then the user supplied this flag on the command line and we need to persist it. This is a workaround for cli.Context.IsSet() returning false when the short option for a cli.StringSlice is supplied instead of the long option. See https://github.com/urfave/cli/issues/314
      
      Source Files
      ¶
    
- create.go
 
 Click to show internal directories. 
   Click to hide internal directories.