Documentation ¶
Index ¶
- func ToV1Env(envs []internaltypes.Env) *[]v1.EnvVar
- type Client
- func (c *Client) CreatePod(ctx context.Context, name string, image string, s internaltypes.Stage, ...) (error, v1.Pod)
- func (c *Client) CreateVolume(ctx context.Context) (string, *v1.PersistentVolumeClaim)
- func (c *Client) DeletePod(ctx context.Context, name string) error
- func (c *Client) GetPodExitCode(ctx context.Context, name string) (int32, error)
- func (c *Client) GetPodStdOut(ctx context.Context, name string) (string, error)
- func (cli *Client) KubeEngine(wg *sync.WaitGroup, sID string, ctx context.Context, w internaltypes.Workflow, ...)
- func (c *Client) RemoveVolume(ctx context.Context, vol string, claim *v1.PersistentVolumeClaim)
- func (cli *Client) RunStageKubernetes(s internaltypes.Stage, ctx context.Context, envs []internaltypes.Env, ...)
- type RequestBody
- type ResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreatePod ¶
func (c *Client) CreatePod(ctx context.Context, name string, image string, s internaltypes.Stage, envs []internaltypes.Env) (error, v1.Pod)
func (c *Client) CreatePod(ctx context.Context, name string, image string, command []string, envs []internaltypes.Env, volume string, claim *v1.PersistentVolumeClaim) (error, v1.Pod) {
func (*Client) CreateVolume ¶
func (*Client) GetPodExitCode ¶
func (*Client) GetPodStdOut ¶
func (*Client) KubeEngine ¶
func (cli *Client) KubeEngine(wg *sync.WaitGroup, sID string, ctx context.Context, w internaltypes.Workflow, allOutputs map[string][]internaltypes.Env, skippedStages *[]string, results chan internaltypes.Result)
func (cli *Client) KubeEngine(wg *sync.WaitGroup, sID string, ctx context.Context, w internaltypes.Workflow, vol string, claim *v1.PersistentVolumeClaim, allOutputs map[string][]internaltypes.Env, skippedStages *[]string, results chan internaltypes.Result) {
func (*Client) RemoveVolume ¶
func (*Client) RunStageKubernetes ¶
func (cli *Client) RunStageKubernetes(s internaltypes.Stage, ctx context.Context, envs []internaltypes.Env, globalImage string, LwWhite *logger.MyLogWriter, result *internaltypes.Result, allOutputs map[string][]internaltypes.Env, LwRed *logger.MyLogWriter)
func (cli *Client) RunStageKubernetes(s internaltypes.Stage, ctx context.Context, envs []internaltypes.Env, globalImage string, volume string, claim *v1.PersistentVolumeClaim, LwWhite *logger.MyLogWriter, result *internaltypes.Result, allOutputs map[string][]internaltypes.Env, LwRed *logger.MyLogWriter) bool {