Documentation
¶
Index ¶
- func ComposeKubeClientFromFile(kubeconfig string) (*kubernetes.Clientset, *rest.Config, error)
- func ComposeKubeClientInKube() (*kubernetes.Clientset, *rest.Config, error)
- type Engine
- type Option
- type Runner
- func (r *Runner) GetContainerExecutor(ctx context.Context, containerName string) (executorpb.ExecutorClient, error)
- func (r *Runner) GetExecutor(ctx context.Context) (executorpb.ExecutorClient, error)
- func (r *Runner) Start(ctx context.Context) (startErr error)
- func (r *Runner) Stop(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComposeKubeClientFromFile ¶
ComposeKubeClientFromFile creates a kubernetes client from a kubeconfig file.
func ComposeKubeClientInKube ¶
func ComposeKubeClientInKube() (*kubernetes.Clientset, *rest.Config, error)
ComposeKubeClientInKube creates a kubernetes client in a k8s pod.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) CreateRunner ¶
type Option ¶
type Option struct { // ExecutorImage is the image of contains the executor binary. ExecutorImage string // 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 }
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func (*Runner) GetContainerExecutor ¶
func (r *Runner) GetContainerExecutor(ctx context.Context, containerName string) (executorpb.ExecutorClient, error)
func (*Runner) GetExecutor ¶
func (r *Runner) GetExecutor(ctx context.Context) (executorpb.ExecutorClient, error)
Click to show internal directories.
Click to hide internal directories.