Documentation ¶
Index ¶
- Constants
- func CheckoutTokenByJobId(jobid string) (token string, err error)
- func CheckoutWorkunitRemote() (workunit *core.Workunit, err error)
- func CleanDisk() (err error)
- func ComposeProfile() (profile *core.Client, err error)
- func CreateContainer(create_args []string) (container_id string, err error)
- func DiscardWorkunit(id string) (err error)
- func FetchDataTokenByWorkId(workid string) (token string, err error)
- func FetchPrivateEnvByWorkId(workid string) (envs map[string]string, err error)
- func InitWorkers(client *core.Client) (err error)
- func InspectImage(client *docker.Client, dockerimage_id string) (image *docker.Image, err error)
- func KillContainer(container_id string) (err error)
- func ParseWorkunitArgs(work *core.Workunit) (err error)
- func ReRegisterWithSelf(host string) (client *core.Client, err error)
- func RegisterWithAuth(host string, profile *core.Client) (client *core.Client, err error)
- func RegisterWithProfile(host string, profile *core.Client) (client *core.Client, err error)
- func RemoveContainer(container_id string) (err error)
- func RemoveOldAWEContainers(client *docker.Client, container_name string) (err error)
- func RestartClient() (err error)
- func RunCommand(name string, arg ...string) (stdo []byte, stde []byte, err error)
- func RunContainer(run_args []string) (container_id string, err error)
- func RunWorkunit(work *core.Workunit) (pstats *core.WorkPerf, err error)
- func RunWorkunitDirect(work *core.Workunit) (pstats *core.WorkPerf, err error)
- func RunWorkunitDocker(work *core.Workunit) (pstats *core.WorkPerf, err error)
- func SendHeartBeat()
- func SetEnv(work *core.Workunit) (envkeys []string, err error)
- func StartClientWorkers()
- func StartContainer(container_id string, args string) (err error)
- func StartProxyWorkers()
- func StopClient() (err error)
- func SubmitWorkProxy(work *core.Workunit) (err error)
- func TagImage(client *docker.Client, dockerimage_id string, tag_opts docker.TagImageOptions) (err error)
- func UnSetEnv(envkeys []string)
- func WaitContainer(container_id string) (status int, err error)
- type ClientResponse
- type DockerImageAttributes
- type DockerShockNode
- type DockerShockNodeArray
- type HeartbeatResponse
- type Shock_Dockerimage_attributes
- type TokenResponse
- type WorkResponse
Constants ¶
View Source
const ( ID_HEARTBEATER = 0 ID_WORKSTEALER = 1 ID_DATAMOVER = 2 ID_WORKER = 3 ID_DELIVERER = 4 ID_REDISTRIBUTOR = 5 ID_DISCARDED = 6 )
Variables ¶
This section is empty.
Functions ¶
func CheckoutTokenByJobId ¶
func CheckoutWorkunitRemote ¶
func ComposeProfile ¶
func CreateContainer ¶ added in v0.9.13
func DiscardWorkunit ¶
func FetchDataTokenByWorkId ¶
func FetchPrivateEnvByWorkId ¶ added in v0.9.3
func InitWorkers ¶
func InspectImage ¶ added in v0.9.13
func KillContainer ¶ added in v0.9.13
func ParseWorkunitArgs ¶
parse workunit, fetch input data, compose command arguments
func RegisterWithAuth ¶
func RegisterWithProfile ¶
func RemoveContainer ¶ added in v0.9.13
func RemoveOldAWEContainers ¶ added in v0.9.3
func RestartClient ¶
func RestartClient() (err error)
func RunCommand ¶ added in v0.9.13
execute command, wait, and return stdout and stderr ; do not use for large outputs ! it returns both stdout and stderr
func RunContainer ¶ added in v0.9.13
** not tested **
func RunWorkunitDirect ¶
func RunWorkunitDocker ¶
func SendHeartBeat ¶
func SendHeartBeat()
client sends heartbeat to server to maintain active status and re-register when needed
func StartClientWorkers ¶
func StartClientWorkers()
func StartContainer ¶ added in v0.9.13
func StartProxyWorkers ¶
func StartProxyWorkers()
func StopClient ¶
func StopClient() (err error)
func SubmitWorkProxy ¶
func WaitContainer ¶ added in v0.9.13
Types ¶
type ClientResponse ¶
type DockerImageAttributes ¶ added in v0.9.13
type DockerShockNode ¶ added in v0.9.13
type DockerShockNode struct { shock.ShockNode Version []int Attributes DockerImageAttributes }
type DockerShockNodeArray ¶ added in v0.9.13
type DockerShockNodeArray []DockerShockNode
func (DockerShockNodeArray) Len ¶ added in v0.9.13
func (a DockerShockNodeArray) Len() int
func (DockerShockNodeArray) Less ¶ added in v0.9.13
func (a DockerShockNodeArray) Less(i, j int) bool
func (DockerShockNodeArray) Swap ¶ added in v0.9.13
func (a DockerShockNodeArray) Swap(i, j int)
type HeartbeatResponse ¶
type Shock_Dockerimage_attributes ¶ added in v0.9.4
type Shock_Dockerimage_attributes struct { Id string `bson:"id" json:"id"` // this is docker image id, not Shock id Name string `bson:"name" json:"name"` // docker image name Type string `bson:"type" json:"type"` // should be "dockerimage" BaseImageId string `bson:"base_image_id" json:"base_image_id"` // could used to reference parent image }
type TokenResponse ¶
Click to show internal directories.
Click to hide internal directories.