network

package
v0.5.45 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const TypeNetwork string = "network"

TypeNetwork is the string resource type for Network resources

Variables

This section is empty.

Functions

This section is empty.

Types

type Network

type Network struct {
	// embedded type holding name, etc
	types.ResourceMetadata `hcl:",remain"`

	Subnet string `hcl:"subnet" json:"subnet"`
}

Network defines a Docker network

func (*Network) Parse

func (c *Network) Parse(conf types.Findable) error

func (*Network) Process

func (c *Network) Process() error

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Network is a provider for creating docker networks

func (*Provider) Changed

func (p *Provider) Changed() (bool, error)

func (*Provider) Create

func (p *Provider) Create() error

Create implements the provider interface method for creating new networks

func (*Provider) Destroy

func (p *Provider) Destroy() error

Destroy implements the provider interface method for destroying networks

func (*Provider) Init

func (p *Provider) Init(cfg htypes.Resource, l logger.Logger) error

func (*Provider) Lookup

func (p *Provider) Lookup() ([]string, error)

Lookup the ID for a network

func (*Provider) Refresh

func (p *Provider) Refresh() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL