Documentation ¶
Index ¶
- Constants
- type Network
- func (n *Network) EndpointCreate(ctx context.Context, key string, manifest *types.EndpointManifest) (*types.EndpointState, error)
- func (n *Network) EndpointDestroy(ctx context.Context, endpoint string, state *types.EndpointState) error
- func (n *Network) EndpointManage(ctx context.Context, key string, manifest *types.EndpointManifest) error
- func (n *Network) EndpointRestore(ctx context.Context) error
- func (n *Network) EndpointUpdate(ctx context.Context, endpoint string, state *types.EndpointState, ...) (*types.EndpointState, error)
- func (n *Network) Endpoints() *state.EndpointState
- func (n *Network) GetExternalDNS() []string
- func (n *Network) GetResolverEndpointKey() string
- func (n *Network) GetResolverIP() string
- func (n *Network) Info(ctx context.Context) *types.NetworkState
- func (n *Network) ResolverManage(ctx context.Context) error
- func (n *Network) Resolvers() *state.ResolverState
- func (n *Network) SubnetDestroy(ctx context.Context, cidr string) error
- func (n *Network) SubnetManage(ctx context.Context, cidr string, sn *types.SubnetManifest) error
- func (n *Network) SubnetRestore(ctx context.Context) error
- func (n *Network) Subnets() *state.SubnetState
Constants ¶
View Source
const DefaultResolverIP = "172.17.0.1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Network ¶
type Network struct {
// contains filtered or unexported fields
}
func (*Network) EndpointCreate ¶
func (n *Network) EndpointCreate(ctx context.Context, key string, manifest *types.EndpointManifest) (*types.EndpointState, error)
func (*Network) EndpointDestroy ¶
func (*Network) EndpointManage ¶
func (*Network) EndpointUpdate ¶
func (n *Network) EndpointUpdate(ctx context.Context, endpoint string, state *types.EndpointState, manifest *types.EndpointManifest) (*types.EndpointState, error)
func (*Network) Endpoints ¶
func (n *Network) Endpoints() *state.EndpointState
func (*Network) GetExternalDNS ¶
func (*Network) GetResolverEndpointKey ¶
func (*Network) GetResolverIP ¶
func (*Network) Resolvers ¶
func (n *Network) Resolvers() *state.ResolverState
func (*Network) SubnetDestroy ¶
func (*Network) SubnetManage ¶
func (*Network) Subnets ¶
func (n *Network) Subnets() *state.SubnetState
Click to show internal directories.
Click to hide internal directories.