Documentation ¶
Overview ¶
Once In-Use Image data has been gathered, this package reports the data to Nextlinux
Index ¶
Constants ¶
View Source
const ReportAPIPath = "v1/enterprise/ecs-inventory"
Variables ¶
This section is empty.
Functions ¶
func Post ¶
func Post(report Report, nextlinuxDetails connection.NextlinuxInfo) error
This method does the actual Reporting (via HTTP) to Nextlinux
Types ¶
type Report ¶
type Report struct { Timestamp string `json:"timestamp"` // Should be generated using time.Now.UTC() and formatted according to RFC Y-M-DTH:M:SZ ClusterARN string `json:"cluster_arn"` Containers []Container `json:"containers,omitempty"` Tasks []Task `json:"tasks,omitempty"` Services []Service `json:"services,omitempty"` }
Click to show internal directories.
Click to hide internal directories.