Documentation ¶
Index ¶
- Constants
- func CreateOrUpdateDpsNetwork(ctx context.Context) (types.NetworkCreateResponse, error)
- func DisconnectNetworkContainers(ctx context.Context, networkId string) []error
- func FindBestIP(ctx context.Context, container types.ContainerJSON) string
- func FindBestIpForNetworks(ctx context.Context, container types.ContainerJSON, ...) string
- func FindDockerNetworkNetworkGatewayIp(ctx context.Context) (string, error)
- func FindDpsContainer(ctx context.Context) (*types.Container, error)
- func FindDpsContainerIP(ctx context.Context) (string, error)
- func FindDpsNetwork(ctx context.Context) (*types.NetworkResource, error)
- func FindDpsNetworkGatewayIp(ctx context.Context) (string, error)
- func FindNetwork(ctx context.Context, args ...string) (*types.NetworkResource, error)
- func FindNetworkByID(ctx context.Context, id string) (*types.NetworkResource, error)
- func FindNetworkByName(ctx context.Context, name string) (*types.NetworkResource, error)
- func FindNetworkGatewayIp(ctx context.Context, name string) (string, error)
- func GetCli() client.APIClient
- func GetGatewayIp(ctx context.Context) (string, error)
- func GetIPFromNetworksMap(networks map[string]*network.EndpointSettings, key string) string
- func GetNetworkGatewayIp(n *types.NetworkResource) string
- func IsDockerConnected() bool
- func ListNetworks(ctx context.Context, args ...string) ([]types.NetworkResource, error)
- func MapValues(endpointsMap map[string]*network.EndpointSettings) []*network.EndpointSettings
- func MustNetworkConnect(ctx context.Context, networkId string, containerId string, ...)
- func MustNetworkDisconnect(ctx context.Context, networkId, containerId string)
- func MustNetworkDisconnectForIp(ctx context.Context, networkName string, containerIP string)
- func MustParseFlags(flags ...string) filters.Args
- func NetworkConnect(ctx context.Context, networkId string, containerId string, ...) error
- func SetCli(cli_ client.APIClient)
- type CompleteNetwork
- type CompleteNetworkByDriver
- type MockApiClient
Constants ¶
View Source
const DpsNetwork = "dps"
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdateDpsNetwork ¶
func CreateOrUpdateDpsNetwork(ctx context.Context) (types.NetworkCreateResponse, error)
func FindBestIP ¶
func FindBestIP(ctx context.Context, container types.ContainerJSON) string
func FindBestIpForNetworks ¶
func FindDpsNetwork ¶
func FindDpsNetwork(ctx context.Context) (*types.NetworkResource, error)
func FindNetwork ¶
func FindNetworkByID ¶
func FindNetworkByName ¶
func FindNetworkGatewayIp ¶
func GetIPFromNetworksMap ¶
func GetIPFromNetworksMap(networks map[string]*network.EndpointSettings, key string) string
func GetNetworkGatewayIp ¶
func GetNetworkGatewayIp(n *types.NetworkResource) string
func IsDockerConnected ¶
func IsDockerConnected() bool
func ListNetworks ¶
func MapValues ¶
func MapValues(endpointsMap map[string]*network.EndpointSettings) []*network.EndpointSettings
func MustNetworkConnect ¶
func MustNetworkDisconnect ¶
func MustParseFlags ¶
func NetworkConnect ¶
Types ¶
type CompleteNetwork ¶
type CompleteNetworkByDriver ¶
type CompleteNetworkByDriver []*CompleteNetwork
func (CompleteNetworkByDriver) Len ¶
func (a CompleteNetworkByDriver) Len() int
func (CompleteNetworkByDriver) Less ¶
func (a CompleteNetworkByDriver) Less(i, j int) bool
func (CompleteNetworkByDriver) Swap ¶
func (a CompleteNetworkByDriver) Swap(i, j int)
type MockApiClient ¶
func (*MockApiClient) CreateMockNetwork ¶
func (*MockApiClient) CreateMockNetwork(ip string, id string) *network.EndpointSettings
func (*MockApiClient) NetworkList ¶
func (m *MockApiClient) NetworkList(ctx context.Context, options types.NetworkListOptions) ([]types.NetworkResource, error)
Click to show internal directories.
Click to hide internal directories.