Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrRuntimeAlreadyExist = errors.New("runtime: A runtime with the same name already registered")
)
well known errors
Functions ¶
func GetXenvPoolDeployment ¶
func GetXenvPoolDeployment(lister listerappsv1.DeploymentLister, xenv *rfv1beta3.Xenv) (*appsv1.Deployment, error)
GetXenvPoolDeployment returns runner template deployment for given refunc
Types ¶
type Interface ¶
type Interface interface { Name() string // IsPodReady checks if the given pod is runnable IsPodReady(pod *corev1.Pod) bool // GetDeploymentTemplate returns a deployment of the runner GetDeploymentTemplate(tpl *rfv1beta3.Xenv) *appsv1.Deployment // InitPod initialize given pod // Note: one should not assume that the workDir still persist after InitPod being called InitPod(pod *corev1.Pod, funcinst *rfv1beta3.Funcinst, refunc *rfv1beta3.Funcdef, tpl *rfv1beta3.Xenv, workDir string) error }
A Interface interface
Click to show internal directories.
Click to hide internal directories.