structures

package
v0.0.0-...-3e288c8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerCredential

type DockerCredential struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Registry string `json:"registry"`
}

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 EC2Instance struct {
	Id        string  `json:"id"`
	VpcId     string  `json:"vpc_id"`
	PublicIp  string  `json:"public_ip"`
	PublicDns *string `json:"public_dns"`
	Username  string  `json:"username"`
}

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 KeyPair

type KeyPair struct {
	Id         string  `json:"id"`
	Name       string  `json:"name"`
	PrivateKey string  `json:"private_key"`
	FilePath   *string `json:"filepath"`
}

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 ProcessIdentity struct {
	Id    string `json:"id"`
	Token string `json:"token"`
}

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 StackDefinition struct {
	InstanceType   string `json:"instance_type"`
	AmiId          string `json:"ami_id"`
	ResourcePrefix string `json:"resource_prefix"`
	Expiration     int    `json:"expiration"`
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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