cloud

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbstractKubeVendor

type AbstractKubeVendor struct {
	*addon.SkyCtx
	// contains filtered or unexported fields
}

AbstractKubeVendor contains the common impl of all KubernetesVendor.

func NewAbstractKubeVendor

func NewAbstractKubeVendor(typeStr string, requiredFields []string, kwargs []starlark.Tuple) (*AbstractKubeVendor, error)

NewAbstractKubeVendor creates a new AbstractKubeVendor.

func (*AbstractKubeVendor) AddonSkyCtx

func (a *AbstractKubeVendor) AddonSkyCtx(more map[string]string) *addon.SkyCtx

AddonSkyCtx is part of the cloud.KubernetesVendor interface.

func (*AbstractKubeVendor) String

func (a *AbstractKubeVendor) String() string

String implements starlark.Value.String.

func (*AbstractKubeVendor) Type

func (a *AbstractKubeVendor) Type() string

Type implements starlark.Value.Type.

type KubernetesVendor

type KubernetesVendor interface {
	// KubeConfig creates a rest config that will be used to connect to the cluster.
	KubeConfig(ctx context.Context) (*rest.Config, error)

	// AddonSkyCtx constructs a Starlark ctx object passed to each addon.
	// If additional context values could be passed to addon using the more input.
	AddonSkyCtx(more map[string]string) *addon.SkyCtx
}

KubernetesVendor is the interface implemented by all Isopod-supported Kubernetes vendors.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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