dind

package
v1.2.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClusterID

func GetClusterID(id int) string

func GetDockerNetworkName

func GetDockerNetworkName(cluster *DindCluster) string

func NewPlatform

func NewPlatform() platform.Platform

Types

type DindCluster

type DindCluster struct {
	ClusterName string
	ClusterID   int
	MasterAddr  string
	KContext    string
}

func FindCluster

func FindCluster(clusterName string) (*DindCluster, error)

func GetClusters

func GetClusters() ([]DindCluster, error)

func NewClusterFor

func NewClusterFor(clusterName string, id int) DindCluster

type Platform

type Platform struct {
	xind.Xind
}

func (*Platform) ActiveChanged

func (s *Platform) ActiveChanged(ctx context.Context, platformActive bool) error

func (*Platform) ChangeClusterInstDNS

func (s *Platform) ChangeClusterInstDNS(ctx context.Context, clusterInst *edgeproto.ClusterInst, oldFqdn string, updateCallback edgeproto.CacheUpdateCallback) error

func (*Platform) CreateClusterInst

func (s *Platform) CreateClusterInst(ctx context.Context, clusterInst *edgeproto.ClusterInst, updateCallback edgeproto.CacheUpdateCallback, timeout time.Duration) error

func (*Platform) CreateDINDCluster

func (s *Platform) CreateDINDCluster(ctx context.Context, clusterName, kconfName string) error

CreateDINDCluster creates kubernetes cluster on local mac

func (*Platform) DeleteClusterInst

func (s *Platform) DeleteClusterInst(ctx context.Context, clusterInst *edgeproto.ClusterInst, updateCallback edgeproto.CacheUpdateCallback) error

func (*Platform) DeleteDINDCluster

func (s *Platform) DeleteDINDCluster(ctx context.Context, clusterInst *edgeproto.ClusterInst) error

DeleteDINDCluster creates kubernetes cluster on local mac

func (*Platform) GetDockerNetworkName

func (s *Platform) GetDockerNetworkName(ctx context.Context, names *k8smgmt.KubeNames) (string, error)

func (*Platform) GetInitHAConditionalCompatibilityVersion

func (s *Platform) GetInitHAConditionalCompatibilityVersion(ctx context.Context) string

func (*Platform) GetMasterIp

func (s *Platform) GetMasterIp(ctx context.Context, names *k8smgmt.KubeNames) (string, error)

func (*Platform) InitCommon

func (s *Platform) InitCommon(ctx context.Context, platformConfig *platform.PlatformConfig, caches *platform.Caches, haMgr *redundancy.HighAvailabilityManager, updateCallback edgeproto.CacheUpdateCallback) error

func (*Platform) InitHAConditional

func (s *Platform) InitHAConditional(ctx context.Context, updateCallback edgeproto.CacheUpdateCallback) error

func (*Platform) NameSanitize

func (s *Platform) NameSanitize(name string) string

func (*Platform) UpdateClusterInst

func (s *Platform) UpdateClusterInst(ctx context.Context, clusterInst *edgeproto.ClusterInst, updateCallback edgeproto.CacheUpdateCallback) error

Jump to

Keyboard shortcuts

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