Documentation
¶
Index ¶
- Variables
- func New() resource.Driver
- type T
- func (t *T) ActionResourceDeps() []actionresdeps.Dep
- func (t *T) DriverID() driver.ID
- func (t *T) Label(_ context.Context) string
- func (t *T) LinkTo() string
- func (t *T) Manifest() *manifest.T
- func (t *T) Provision(ctx context.Context) error
- func (t *T) Provisioned(ctx context.Context) (provisioned.T, error)
- func (t *T) Start(ctx context.Context) error
- func (t *T) Status(ctx context.Context) status.T
- func (t *T) Stop(ctx context.Context) error
- func (t *T) Unprovision(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GroupRouting holds the route the resource adds, and the network // namespace it adds it in. It has the id, name and order of the // routing group of ip.netns. GroupRouting = keywords.Group{ ID: "routing", Name: "Routing", Text: keywords.NewText(fs, "text/group/routing"), Order: 30, } )
Functions ¶
Types ¶
type T ¶
type T struct {
To string `json:"destination"`
Gateway string `json:"gateway"`
NetNS string `json:"netns"`
Dev string `json:"dev"`
resource.T
resource.Restart
}
T ...
func (*T) ActionResourceDeps ¶
func (t *T) ActionResourceDeps() []actionresdeps.Dep
func (*T) Label ¶
Label implements Label from resource.Driver interface, it returns a formatted short description of the Resource
func (*T) Provisioned ¶
Click to show internal directories.
Click to hide internal directories.