kubernetes

package
v0.7.1-beta1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	Namespace             string
	ServiceAccountName    string
	Annotations           map[string]string
	LimitCPU              resource.Quantity
	LimitMemory           resource.Quantity
	Tolerations           []v1.Toleration
	ActiveDeadlineSeconds int64
	BackoffLimit          int32
	SkipCleanup           bool
	// contains filtered or unexported fields
}

Driver runs an invocation image in a Kubernetes cluster.

func New

func New(namespace, serviceAccount string, conf *rest.Config) (*Driver, error)

New initializes a Kubernetes driver.

func (*Driver) Config

func (k *Driver) Config() map[string]string

Config returns the Kubernetes driver configuration options.

func (*Driver) Handles

func (k *Driver) Handles(imagetype string) bool

Handles receives an ImageType* and answers whether this driver supports that type.

func (*Driver) Run

Run executes the operation inside of the invocation image.

func (*Driver) SetConfig

func (k *Driver) SetConfig(settings map[string]string)

SetConfig sets Kubernetes driver configuration.

Jump to

Keyboard shortcuts

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