resources

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EphemeralCluster

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

EphemeralCluster is a wrapper around a Kind kubernetes cluster

func NewEphemeralCluster

func NewEphemeralCluster() *EphemeralCluster

func (*EphemeralCluster) Client

func (ec *EphemeralCluster) Client() *kubernetes.Clientset

func (*EphemeralCluster) KubeConfigFilePath

func (ec *EphemeralCluster) KubeConfigFilePath() string

func (*EphemeralCluster) Start

func (ec *EphemeralCluster) Start() error

func (*EphemeralCluster) Stop

func (ec *EphemeralCluster) Stop() error

type GenericCluster

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

GenericCluster is a wrapper around a kubernetes clientset and a kubeconfig file.

func NewExistingCluster

func NewExistingCluster(kubeconfig string) (*GenericCluster, error)

NewExistingCluster creates a new GenericCluster from an existing kubeconfig file.

Example:

c, err := resources.NewExistingCluster("/Users/billy.bob/path/to/kubeconfig")
require.NoError(t, err)

func (*GenericCluster) Client

func (gc *GenericCluster) Client() *kubernetes.Clientset

func (*GenericCluster) KubeConfigFilePath

func (gc *GenericCluster) KubeConfigFilePath() string

Jump to

Keyboard shortcuts

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