k3d

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider() support.E2EClusterProvider

func WithArgs

func WithArgs(args ...string) support.ClusterOpts

func WithImage

func WithImage(image string) support.ClusterOpts

Types

type Cluster

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

func NewCluster

func NewCluster(name string) *Cluster

func (*Cluster) AddNode

func (c *Cluster) AddNode(ctx context.Context, node *support.Node, args ...string) error

func (*Cluster) Create

func (c *Cluster) Create(ctx context.Context, args ...string) (string, error)

func (*Cluster) CreateWithConfig

func (c *Cluster) CreateWithConfig(ctx context.Context, configFile string) (string, error)

func (*Cluster) Destroy

func (c *Cluster) Destroy(ctx context.Context) error

func (*Cluster) ExportLogs

func (c *Cluster) ExportLogs(ctx context.Context, dest string) error

func (*Cluster) GetKubeconfig

func (c *Cluster) GetKubeconfig() string

func (*Cluster) GetKubectlContext

func (c *Cluster) GetKubectlContext() string

func (*Cluster) KubernetesRestConfig

func (c *Cluster) KubernetesRestConfig() *rest.Config

func (*Cluster) ListNode

func (c *Cluster) ListNode(ctx context.Context, args ...string) ([]support.Node, error)

func (*Cluster) LoadImage

func (c *Cluster) LoadImage(ctx context.Context, image string, args ...string) error

func (*Cluster) LoadImageArchive

func (c *Cluster) LoadImageArchive(ctx context.Context, imageArchive string, args ...string) error

func (*Cluster) RemoveNode

func (c *Cluster) RemoveNode(ctx context.Context, node *support.Node, args ...string) error

func (*Cluster) SetDefaults

func (c *Cluster) SetDefaults() support.E2EClusterProvider

func (*Cluster) StartNode

func (c *Cluster) StartNode(ctx context.Context, node *support.Node, args ...string) error

func (*Cluster) StopNode

func (c *Cluster) StopNode(ctx context.Context, node *support.Node, args ...string) error

func (*Cluster) WaitForControlPlane

func (c *Cluster) WaitForControlPlane(ctx context.Context, client klient.Client) error

func (*Cluster) WithName

func (c *Cluster) WithName(name string) support.E2EClusterProvider

func (*Cluster) WithOpts

func (c *Cluster) WithOpts(opts ...support.ClusterOpts) support.E2EClusterProvider

func (*Cluster) WithPath

func (c *Cluster) WithPath(path string) support.E2EClusterProvider

func (*Cluster) WithVersion

func (c *Cluster) WithVersion(version string) support.E2EClusterProvider

Jump to

Keyboard shortcuts

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