Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) CreateRunner ¶
type Option ¶
type Option struct {
// ExecutorPath is the path of the executor binary in the executor image.
ExecutorPath string
// KubeConfig is the kube config used to connect to the kubernetes cluster.
// It's required when UsePortForward is true.
KubeConfig *rest.Config
//// UsePortForward is true, the runner will use port-forward to connect to the executor.
//// It is useful when the runner is running outside the kubernetes cluster.
//UsePortForward bool
// Namespace is the namespace to create the runner pod.
Namespace string
// RuntimeImage is the image of contains the vm runtime binary and qemu binary.
RuntimeImage string
// VMImageRoot is the root directory in host witch contains qcow2 files.
// The VMImageRoot will be mounted to the runner pod.
VMImageRoot string
Volumes []string
}
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func (*Runner) GetExecutor ¶
func (r *Runner) GetExecutor(ctx context.Context) (executorpb.ExecutorClient, error)
Click to show internal directories.
Click to hide internal directories.