types

package
v0.0.0-...-abfb793 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	Name  *string `json:"name`
	Value *string `json: "value"`
}

type Container

type Container struct {
	ContainerARN    *string           `json:"containerArn"`
	ExitCode        int64             `json:"exitCode,omitempty"`
	LastStatus      *string           `json:"lastStatus"`
	Name            *string           `json:"name"`
	NetworkBindings []*NetworkBinding `json:"networkBindings,omitempty"`
	Reason          string            `json: "reason,omitempty"`
}

type ContainerInstance

type ContainerInstance struct {
	ID        *string         `json:"id"`
	Account   *string         `json:"account"`
	Time      *string         `json:"time"`
	Region    *string         `json:"region"`
	Resources []string        `json:"resources"`
	Detail    *InstanceDetail `json: "detail"`
}

ContainerInstance defines the structure of the container instance json received from the event stream

func (ContainerInstance) GetVersion

func (instance ContainerInstance) GetVersion(instanceJSON string) (int64, error)

GetVersion retrieces the version of the the container instance represented by the instanceJSON string

type ContainerOverrides

type ContainerOverrides struct {
	Command     []string       `json:"command,omitempty"`
	Environment []*Environment `json: "environment,omitempty"`
	Name        *string        `json: "name"`
}

type Environment

type Environment struct {
	Name  *string `json: "name"`
	Value *string `json: "value"`
}

type InstanceDetail

type InstanceDetail struct {
	AgentConnected       *bool        `json:"agentConnected"`
	AgentUpdateStatus    string       `json:"agentUpdateStatus,omitempty"`
	Attributes           []*Attribute `json:"attributes,omitempty"`
	ClusterARN           *string      `json:"clusterArn"`
	ContainerInstanceARN *string      `json:"containerInstanceArn"`
	EC2InstanceID        string       `json:"ec2InstanceId,omitempty"`
	RegisteredResources  []*Resource  `json:"registeredResources"`
	RemainingResources   []*Resource  `json:"remainingResources"`
	Status               *string      `json:"status"`
	Version              *int64       `json:"version"`
	VersionInfo          *VersionInfo `json:"versionInfo"`
	UpdatedAt            *string      `json:"updatedAt"`
}

func (*InstanceDetail) String

func (instanceDetail *InstanceDetail) String() string

type NetworkBinding

type NetworkBinding struct {
	BindIP        *string `json:"bindIP"`
	ContainerPort *int64  `json: "containerPort"`
	HostPort      *int64  `json: "hostPort"`
	Protocol      string  `json: "protocol,omitempty"`
}

type OutOfRangeEntityVersion

type OutOfRangeEntityVersion struct {
	// contains filtered or unexported fields
}

func NewOutOfRangeEntityVersion

func NewOutOfRangeEntityVersion(err error) OutOfRangeEntityVersion

type Overrides

type Overrides struct {
	ContainerOverrides []*ContainerOverrides `json:"containerOverrides"`
	TaskRoleArn        string                `json:"taskRoleArn,omitempty"`
}

type Record

type Record interface {
	GetVersion(string) (int64, error)
}

type Resource

type Resource struct {
	Name           *string   `json:"name"`
	Type           *string   `json:"type"`
	DoubleValue    *float64  `json:"doubleValue"`
	IntegerValue   *int64    `json:"integerValue"`
	LongValue      *int64    `json:"longValue"`
	StringSetValue []*string `json:"stringSetValue"`
}

type Task

type Task struct {
	ID        *string     `json:"id"`
	Account   *string     `json:"account"`
	Time      *string     `json:"time"`
	Region    *string     `json:"region"`
	Resources []string    `json:"resources"`
	Detail    *TaskDetail `json: "detail"`
}

Task defines the structure of the task json received from the event stream

func (Task) GetVersion

func (task Task) GetVersion(taskJSON string) (int64, error)

GetVersion retrieces the version of the the container instance represented by the instanceJSON string

type TaskDetail

type TaskDetail struct {
	ClusterARN           *string      `json:"clusterArn"`
	ContainerInstanceARN *string      `json:"containerInstanceArn"`
	Containers           []*Container `json:"containers"`
	CreatedAt            *string      `json:"createdAt"`
	DesiredStatus        *string      `json:"desiredStatus"`
	LastStatus           *string      `json:"lastStatus"`
	Overrides            *Overrides   `json:"overrides"`
	StartedAt            string       `json:"startedAt,omitempty"`
	StartedBy            string       `json:"startedBy,omitempty"`
	StoppedAt            string       `json:"stoppedAt,omitempty"`
	StoppedReason        string       `json:"stoppedReason,omitempty"`
	TaskARN              *string      `json:"taskArn"`
	TaskDefinitionARN    *string      `json:"taskDefinitionArn"`
	UpdatedAt            *string      `json:"updatedAt"`
	Version              *int64       `json:"version"`
}

func (*TaskDetail) String

func (taskDetail *TaskDetail) String() string

type UnsupportedFilterCombination

type UnsupportedFilterCombination struct {
	// contains filtered or unexported fields
}

func NewUnsupportedFilterCombination

func NewUnsupportedFilterCombination(err error) UnsupportedFilterCombination

type VersionInfo

type VersionInfo struct {
	AgentHash     string `json:"agentHash,omitempty"`
	AgentVersion  string `json:"agentVersion,omitempty"`
	DockerVersion string `json:"dockerVersion,omitempty"`
}

Jump to

Keyboard shortcuts

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