kind

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AnnotationAssignedSubnet = v1alpha1.GroupVersion.Group + "/assigned-subnet"
)

Functions

func GetDockerV4Network

func GetDockerV4Network(ctx context.Context) (net.IPNet, error)

func NextAvailableLBNetwork

func NextAvailableLBNetwork(ctx context.Context, c client.Client) (net.IPNet, error)

func SubnetFromCluster

func SubnetFromCluster(c *v1alpha1.Cluster) (*net.IPNet, error)

Types

type ConfigFrom

type ConfigFrom struct {
	Network string `json:"Network"`
}

ConfigFrom represents the source network for configuration data.

type Container

type Container struct {
	Name        string `json:"Name"`
	EndpointID  string `json:"EndpointID"`
	MacAddress  string `json:"MacAddress"`
	IPv4Address string `json:"IPv4Address"`
	IPv6Address string `json:"IPv6Address"`
}

Container represents a container within the network.

type IPAM

type IPAM struct {
	Driver  string            `json:"Driver"`
	Options map[string]string `json:"Options"`
	Config  []IPAMConfig      `json:"Config"`
}

IPAM represents IP address management configuration.

type IPAMConfig

type IPAMConfig struct {
	Subnet  string `json:"Subnet"`
	Gateway string `json:"Gateway"`
}

IPAMConfig represents individual configurations within the IPAMConfig array.

type Network

type Network struct {
	Name       string               `json:"Name"`
	Id         string               `json:"Id"`
	Created    string               `json:"Created"`
	Scope      string               `json:"Scope"`
	Driver     string               `json:"Driver"`
	EnableIPv6 bool                 `json:"EnableIPv6"`
	IPAM       IPAM                 `json:"IPAM"`
	Internal   bool                 `json:"Internal"`
	Attachable bool                 `json:"Attachable"`
	Ingress    bool                 `json:"Ingress"`
	ConfigFrom ConfigFrom           `json:"ConfigFrom"`
	ConfigOnly bool                 `json:"ConfigOnly"`
	Containers map[string]Container `json:"Containers"`
	Options    map[string]string    `json:"Options"`
	Labels     map[string]string    `json:"Labels"`
}

Network represents the network configuration struct.

type Provider

type Provider interface {
	CreateCluster(name string) error
	DeleteCluster(name string) error
	ClusterExists(name string) (bool, error)
	KubeConfig(name string) (string, error)
}

func NewDockerProvider

func NewDockerProvider() Provider

Jump to

Keyboard shortcuts

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