Documentation
¶
Index ¶
- func New() resource.Driver
- type Addrs
- type T
- func (t *T) Abort(ctx context.Context) bool
- func (t *T) Label(_ context.Context) string
- func (t *T) Manifest() *manifest.T
- func (t *T) Provision(ctx context.Context) error
- func (t *T) Provisioned() (provisioned.T, error)
- func (t *T) Start(ctx context.Context) error
- func (t *T) Status(ctx context.Context) status.T
- func (t *T) StatusInfo(_ context.Context) map[string]interface{}
- func (t *T) Stop(ctx context.Context) error
- func (t *T) Unprovision(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type T ¶
type T struct { resource.T Path naming.Path ObjectFQDN string DNS []string // config Name string `json:"name"` Dev string `json:"dev"` Netmask string `json:"netmask"` Network string `json:"network"` Gateway string `json:"gateway"` Provisioner string `json:"provisioner"` CheckCarrier bool `json:"check_carrier"` Alias bool `json:"alias"` Expose []string `json:"expose"` WaitDNS *time.Duration `json:"wait_dns"` // contains filtered or unexported fields }
func (*T) Label ¶
Label implements Label from resource.Driver interface, it returns a formatted short description of the Resource
func (*T) Provisioned ¶
func (t *T) Provisioned() (provisioned.T, error)
func (*T) StatusInfo ¶
StatusInfo implements resource.StatusInfoer
Click to show internal directories.
Click to hide internal directories.