cluster

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClusters

func GetClusters() ([]string, error)

GetClusters returns a list of test clusters

Types

type Cluster

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

Cluster manages a test cluster

func NewCluster

func NewCluster(namespace string) (*Cluster, error)

NewCluster returns a new test cluster for the given Kubernetes API

func (*Cluster) Create

func (c *Cluster) Create() error

Create creates the cluster

func (*Cluster) Delete

func (c *Cluster) Delete() error

Delete deletes the cluster

type Job

type Job struct {
	ID              string
	Image           string
	ImagePullPolicy corev1.PullPolicy
	ModelChecker    bool
	ModelData       map[string]string
	Args            []string
	Env             map[string]string
	Timeout         time.Duration
	Type            string
}

Job is a job configuration

type Runner

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

Runner manages the test coordinator cluster

func NewRunner

func NewRunner() (*Runner, error)

NewRunner returns a new test job runner

func (*Runner) Run

func (r *Runner) Run(job *Job) error

Run runs the given job in the coordinator namespace

Jump to

Keyboard shortcuts

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