Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerCredential ¶
type DockerTask ¶
type DockerTask struct { Timeout *int `json:"timeout"` Name string `json:"name"` Image string `json:"image"` Cmd *string `json:"cmd"` Detached bool `json:"detached"` Environment map[string]interface{} `json:"environment"` Volumes []string `json:"volumes"` Ports []string `json:"ports"` Restart *string `json:"restart"` SecurityOpt []string `json:"security_opt"` CapAdd []string `json:"cap_add"` }
type EC2Instance ¶
type InputContext ¶
type InputContext struct { Id string `json:"id"` UrlCallback string `json:"url_callback"` CallbackAuthMethod callbackauthmethod.CallbackAuthMethod `json:"callback_auth_method"` CallbackAuthUsername *string `json:"callback_auth_username"` CallbackAuthPassword *string `json:"callback_auth_password"` Timeout int `json:"timeout"` Interval float64 `json:"interval"` Tasks []DockerTask `json:"tasks"` Credentials []DockerCredential `json:"credentials"` }
type Process ¶
type Process struct { Id string `json:"id"` Token string `json:"token"` State processstate.ProcessState `json:"state"` Definition ProcessDefinition `json:"definition"` UpdatedAt time.Time `json:"updated_at"` Logs *map[time.Time]string `json:"logs"` Stack *Stack `json:"stack"` }
type ProcessDefinition ¶
type ProcessDefinition struct { Tasks []TaskDescription `json:"tasks"` Credentials []DockerCredential `json:"credentials"` StackDefinition StackDefinition `json:"stack_definition"` Name *string `json:"name"` Timeout *int `json:"timeout"` }
type ProcessIdentity ¶
type ProcessUpdater ¶
type ProcessUpdater struct { Id string `json:"id"` State processstate.ProcessState `json:"state"` }
type SecurityGroup ¶
type SecurityGroup struct {
Id string `json:"id"`
}
type Stack ¶
type Stack struct { Id string `json:"id"` Instance EC2Instance `json:"instance"` SecurityGroup SecurityGroup `json:"security_group"` KeyPair KeyPair `json:"key_pair"` }
type StackDefinition ¶
type StackIdentity ¶
type StackIdentity struct {
Id string `json:"id"`
}
type TaskDescription ¶
type TaskDescription struct { Image string `json:"image"` Timeout *int `json:"timeout"` Name *string `json:"name"` Cmd *string `json:"cmd"` Detached bool `json:"detached"` Environment map[string]interface{} `json:"environment"` Volumes []string `json:"volumes"` Ports []string `json:"ports"` Restart *string `json:"restart"` SecurityOpt []string `json:"security_opt"` CapAdd []string `json:"cap_add"` }
func (TaskDescription) CompleteDefaults ¶
func (task TaskDescription) CompleteDefaults() TaskDescription
func (TaskDescription) ToDockerTask ¶
func (task TaskDescription) ToDockerTask() DockerTask
Click to show internal directories.
Click to hide internal directories.