ecs

package
v4.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	DockerID    string            `json:"DockerId"`
	Name        string            `json:"DockerName"`
	Image       string            `json:"Image"`
	KnownStatus string            `json:"KnownStatus"`
	Type        string            `json:"Type"`
	Labels      map[string]string `json:"Labels"`
	Limits      struct {
		CPU int64 `json:"CPU"`
	}
	Networks []struct {
		NetworkMode string   `json:"NetworkMode"`
		IPAddresses []string `json:"IPv4Addresses"`
	}
}

Container struct represents container structure that is a part of ECS Task Metadata

type TaskMetadata

type TaskMetadata struct {
	ClusterName string      `json:"Cluster"`
	TaskARN     string      `json:"TaskARN"`
	Family      string      `json:"Family"`
	Revision    string      `json:"Revision"`
	KnownStatus string      `json:"KnownStatus"`
	Containers  []Container `json:"Containers"`
}

TaskMetadata contains a set of properties from ECS Task Metadata

func (*TaskMetadata) GetDimensions

func (task *TaskMetadata) GetDimensions() map[string]string

GetDimensions returns a set of dimensions based on the task metadata

Jump to

Keyboard shortcuts

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