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) InitKube ¶ added in v0.10.13
func (kd *KubeDriver) InitKube() error
InitKube initializes the Kubernetes clientset
Click to show internal directories.
Click to hide internal directories.