knative

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKnativeSvc

func GetKnativeSvc(nn *types.NamespacedName) (*servingv1.Service, error)

GetKnativeSvc fetches the Knative service given its name and namespace.

func GetNamespacedNameForKsvc

func GetNamespacedNameForKsvc(e *experiment.Experiment) (*types.NamespacedName, error)

GetNamespacedNameForKsvc parses the target of the experiment and returns name and namespace of the ksvc.

func MakeInitExperiment

func MakeInitExperiment(t *v2alpha1.TaskSpec) (base.Task, error)

MakeInitExperiment converts an InitExperiment task spec into an InitExperimentTask.

func MakeTask

func MakeTask(t *v2alpha1.TaskSpec) (base.Task, error)

MakeTask constructs a Task from a TaskMeta or returns an error if any.

Types

type InitExperimentTask

type InitExperimentTask struct {
	Library string `json:"library" yaml:"library"`
	Task    string `json:"task" yaml:"task"`
}

InitExperimentTask enables initialization of knative experiments.

func (*InitExperimentTask) Run

Run executes an InitExperimentTask

Jump to

Keyboard shortcuts

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