Help us shape the future of Go! Take the 2026 Go Developer Survey

kubernetes

package
v0.38.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 30 Imported by: 4

Documentation

Index

Constants

View Source
const (
	// valid values for driver-opt loadbalance
	LoadbalanceRandom = "random"
	LoadbalanceSticky = "sticky"
)
View Source
const (
	DriverName = "kubernetes"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConfig added in v0.17.0

type ClientConfig interface {
	ClientConfig() (*rest.Config, error)
	Namespace() (string, bool, error)
}

type ClientConfigInCluster added in v0.17.0

type ClientConfigInCluster struct{}

func (ClientConfigInCluster) ClientConfig added in v0.17.0

func (k ClientConfigInCluster) ClientConfig() (*rest.Config, error)

func (ClientConfigInCluster) Namespace added in v0.17.0

func (k ClientConfigInCluster) Namespace() (string, bool, error)

type Driver

type Driver struct {
	driver.InitConfig
	// contains filtered or unexported fields
}

func (*Driver) Bootstrap

func (d *Driver) Bootstrap(ctx context.Context, l progress.Logger) error

func (*Driver) Client

func (d *Driver) Client(ctx context.Context, opts ...client.ClientOpt) (*client.Client, error)

func (*Driver) Config added in v0.5.0

func (d *Driver) Config() driver.InitConfig

func (*Driver) Dial added in v0.13.0

func (d *Driver) Dial(ctx context.Context) (net.Conn, error)

func (*Driver) Factory

func (d *Driver) Factory() driver.Factory

func (*Driver) Features

func (d *Driver) Features(_ context.Context) (map[driver.Feature]bool, error)

func (*Driver) HostGatewayIP added in v0.12.0

func (d *Driver) HostGatewayIP(_ context.Context) (net.IP, error)

func (*Driver) Info

func (d *Driver) Info(ctx context.Context) (_ *driver.Info, err error)

func (*Driver) IsMobyDriver added in v0.5.0

func (d *Driver) IsMobyDriver() bool

func (*Driver) RequiresUncachedClient added in v0.36.0

func (d *Driver) RequiresUncachedClient() bool

func (*Driver) Rm

func (d *Driver) Rm(ctx context.Context, force, rmVolume, rmDaemon bool) error

func (*Driver) Stop

func (d *Driver) Stop(ctx context.Context, force bool) error

func (*Driver) Version added in v0.9.0

func (d *Driver) Version(ctx context.Context) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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