driver

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 28 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package driver enables interaction with experiment resources. It provides drivers for local and Kubernetes experiments.

Index

Constants

View Source
const (
	// DefaultTestName is the default name of the performance test
	DefaultTestName = "default"
)
View Source
const (

	// ManifestFile is the name of the Kubernetes manifest file
	ManifestFile = "manifest.yaml"
)

Variables

This section is empty.

Functions

func ExperimentFromBytes added in v0.11.0

func ExperimentFromBytes(b []byte) (*base.Experiment, error)

ExperimentFromBytes reads experiment from bytes

Types

type KubeDriver

type KubeDriver struct {
	// EnvSettings provides generic Kubernetes and Helm options
	*cli.EnvSettings
	// Clientset enables interaction with a Kubernetes cluster
	Clientset kubernetes.Interface
	// Configuration enables Helm-based interaction with a Kubernetes cluster
	*action.Configuration
	// Test is the test name
	Test string
	// contains filtered or unexported fields
}

KubeDriver embeds Helm and Kube configuration, and enables interaction with a Kubernetes cluster through Kube APIs and Helm APIs

func NewFakeKubeDriver

func NewFakeKubeDriver(s *cli.EnvSettings, objects ...runtime.Object) *KubeDriver

NewFakeKubeDriver creates and returns a new KubeDriver with fake clients

func NewKubeDriver

func NewKubeDriver(s *cli.EnvSettings) *KubeDriver

NewKubeDriver creates and returns a new KubeDriver

func (*KubeDriver) GetRevision added in v0.11.0

func (kd *KubeDriver) GetRevision() int

GetRevision gets the experiment revision

func (*KubeDriver) Init

func (kd *KubeDriver) Init() error

Init initializes the KubeDriver

func (*KubeDriver) InitKube added in v0.10.13

func (kd *KubeDriver) InitKube() error

InitKube initializes the Kubernetes clientset

func (*KubeDriver) Read added in v0.11.0

func (kd *KubeDriver) Read() (*base.Experiment, error)

Read experiment from secret

func (*KubeDriver) Write added in v0.11.0

func (kd *KubeDriver) Write(exp *base.Experiment) error

Write writes a Kubernetes experiment

Jump to

Keyboard shortcuts

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