katibclient

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	InjectClient(c client.Client)
	GetClient() client.Client
	GetExperimentList(namespace ...string) (*experimentsv1alpha3.ExperimentList, error)
	CreateExperiment(experiment *experimentsv1alpha3.Experiment, namespace ...string) error
	UpdateExperiment(experiment *experimentsv1alpha3.Experiment, namespace ...string) error
	DeleteExperiment(experiment *experimentsv1alpha3.Experiment, namespace ...string) error
	GetExperiment(name string, namespace ...string) (*experimentsv1alpha3.Experiment, error)
	GetConfigMap(name string, namespace ...string) (map[string]string, error)
	GetTrial(name string, namespace ...string) (*trialsv1alpha3.Trial, error)
	GetTrialList(name string, namespace ...string) (*trialsv1alpha3.TrialList, error)
	GetTrialTemplates(namespace ...string) (*apiv1.ConfigMapList, error)
	GetSuggestion(name string, namespace ...string) (*suggestionsv1alpha3.Suggestion, error)
	UpdateConfigMap(newConfigMap *apiv1.ConfigMap) error
	GetNamespaceList() (*apiv1.NamespaceList, error)
}

func NewClient

func NewClient(options client.Options) (Client, error)

func NewWithGivenClient

func NewWithGivenClient(c client.Client) Client

type KatibClient

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

func (*KatibClient) CreateExperiment

func (k *KatibClient) CreateExperiment(experiment *experimentsv1alpha3.Experiment, namespace ...string) error

func (*KatibClient) DeleteExperiment

func (k *KatibClient) DeleteExperiment(experiment *experimentsv1alpha3.Experiment, namespace ...string) error

func (*KatibClient) GetClient

func (k *KatibClient) GetClient() client.Client

func (*KatibClient) GetConfigMap

func (k *KatibClient) GetConfigMap(name string, namespace ...string) (map[string]string, error)

GetConfigMap returns the configmap for the given name and namespace.

func (*KatibClient) GetExperiment

func (k *KatibClient) GetExperiment(name string, namespace ...string) (*experimentsv1alpha3.Experiment, error)

func (*KatibClient) GetExperimentList

func (k *KatibClient) GetExperimentList(namespace ...string) (*experimentsv1alpha3.ExperimentList, error)

func (*KatibClient) GetNamespaceList

func (k *KatibClient) GetNamespaceList() (*apiv1.NamespaceList, error)

func (*KatibClient) GetSuggestion

func (k *KatibClient) GetSuggestion(name string, namespace ...string) (
	*suggestionsv1alpha3.Suggestion, error)

GetSuggestion returns the Suggestion CR for the given name and namespace

func (*KatibClient) GetTrial

func (k *KatibClient) GetTrial(name string, namespace ...string) (*trialsv1alpha3.Trial, error)

GetTrial returns the Trial for the given name and namespace

func (*KatibClient) GetTrialList

func (k *KatibClient) GetTrialList(name string, namespace ...string) (*trialsv1alpha3.TrialList, error)

func (*KatibClient) GetTrialTemplates

func (k *KatibClient) GetTrialTemplates(namespace ...string) (*apiv1.ConfigMapList, error)

GetTrialTemplates returns all trial templates from the given namespace

func (*KatibClient) InjectClient

func (k *KatibClient) InjectClient(c client.Client)

func (*KatibClient) UpdateConfigMap

func (k *KatibClient) UpdateConfigMap(newConfigMap *apiv1.ConfigMap) error

func (*KatibClient) UpdateExperiment

func (k *KatibClient) UpdateExperiment(experiment *experimentsv1alpha3.Experiment, namespace ...string) error

Jump to

Keyboard shortcuts

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