workload

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackupData

func BackupData(backupPath string, pdHost string, host string) (*bytes.Buffer, error)

BackupData uses BR to backup data to S3 storage

func RestoreData

func RestoreData(restorePath string, pdHost string, host string) (*bytes.Buffer, error)

RestoreData uses BR to restore backup data from S3 storage

func RunWorkload

func RunWorkload(
	cr *types.ClusterRequest,
	resources []*types.Resource,
	rris []*types.ResourceRequestItem,
	wr *types.WorkloadRequest,
	artifactUUID string,
	envs map[string]string,
) (dockerExecutor *util.DockerExecutor, containerID string, out *bytes.Buffer, err error)

RunWorkload creates the workload docker container and injects necessary environment variables

Types

This section is empty.

Jump to

Keyboard shortcuts

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