ecsw

package
v0.0.0-...-39615a4 Latest Latest
Warning

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

Go to latest
Published: May 19, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ECSMetaDataRetriever

type ECSMetaDataRetriever struct {
	Testmode bool
}

ECSMetaDataRetriever retrieves ECS meta data

func NewECSMetaDataRetriever

func NewECSMetaDataRetriever() ECSMetaDataRetriever

NewECSMetaDataRetriever creates a new instance

func (ECSMetaDataRetriever) GetDockerID

func (e ECSMetaDataRetriever) GetDockerID() (string, error)

GetDockerID retrieves docker id

func (ECSMetaDataRetriever) GetECSHost

func (e ECSMetaDataRetriever) GetECSHost() (string, error)

GetECSHost hits http://172.17.0.1:51678/v1/tasks?dockerid=

func (ECSMetaDataRetriever) GetTask

func (e ECSMetaDataRetriever) GetTask(dockerid string) ([]byte, error)

GetTask hits http://172.17.0.1:51678/v1/tasks?dockerid=

type TaskJSON

type TaskJSON struct {
	Arn           string `json:"Arn"`
	DesiredStatus string `json:"DesiredStatus"`
	KnownStatus   string `json:"KnownStatus"`
	Family        string `json:"Family"`
	Version       string `json:"Version"`
	Containers    []struct {
		DockerID   string `json:"DockerId"`
		DockerName string `json:"DockerName"`
		Name       string `json:"Name"`
		Ports      []struct {
			ContainerPort int    `json:"ContainerPort"`
			Protocol      string `json:"Protocol"`
			HostPort      int    `json:"HostPort"`
		} `json:"Ports"`
	} `json:"Containers"`
}

Jump to

Keyboard shortcuts

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