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"` }
Click to show internal directories.
Click to hide internal directories.