Documentation ¶
Index ¶
- type Client
- type KatibClient
- func (k *KatibClient) CreateExperiment(experiment *experimentsv1alpha3.Experiment, namespace ...string) error
- func (k *KatibClient) DeleteExperiment(experiment *experimentsv1alpha3.Experiment, namespace ...string) error
- func (k *KatibClient) GetClient() client.Client
- func (k *KatibClient) GetConfigMap(name string, namespace ...string) (map[string]string, error)
- func (k *KatibClient) GetExperiment(name string, namespace ...string) (*experimentsv1alpha3.Experiment, error)
- func (k *KatibClient) GetExperimentList(namespace ...string) (*experimentsv1alpha3.ExperimentList, error)
- func (k *KatibClient) GetNamespaceList() (*apiv1.NamespaceList, error)
- func (k *KatibClient) GetSuggestion(name string, namespace ...string) (*suggestionsv1alpha3.Suggestion, error)
- func (k *KatibClient) GetTrial(name string, namespace ...string) (*trialsv1alpha3.Trial, error)
- func (k *KatibClient) GetTrialList(name string, namespace ...string) (*trialsv1alpha3.TrialList, error)
- func (k *KatibClient) GetTrialTemplates(namespace ...string) (*apiv1.ConfigMapList, error)
- func (k *KatibClient) InjectClient(c client.Client)
- func (k *KatibClient) UpdateConfigMap(newConfigMap *apiv1.ConfigMap) error
- func (k *KatibClient) UpdateExperiment(experiment *experimentsv1alpha3.Experiment, namespace ...string) error
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 NewWithGivenClient ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.