github.com/axw/juju@v0.0.0-20161005053422-4bd6544d08d4/payload/api/data.go (about) 1 // Copyright 2015 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package api 5 6 // TODO(ericsnow) Move this file to the top-level "payload" package? 7 8 // EnvListArgs are the arguments for the env-based List endpoint. 9 type EnvListArgs struct { 10 // Patterns is the list of patterns against which to filter. 11 Patterns []string `json:"patterns"` 12 } 13 14 type EnvListResults struct { 15 // Results is the list of payload results. 16 Results []Payload `json:"results"` 17 } 18 19 // Payload contains full information about a payload. 20 type Payload struct { 21 // Class is the name of the payload class. 22 Class string `json:"class"` 23 // Type is the name of the payload type. 24 Type string `json:"type"` 25 26 // ID is a unique string identifying the payload to 27 // the underlying technology. 28 ID string `json:"id"` 29 // Status is the Juju-level status for the payload. 30 Status string `json:"status"` 31 // Labels are labels associated with the payload. 32 Labels []string `json:"labels"` 33 34 // Unit identifies the unit tag associated with the payload. 35 Unit string `json:"unit"` 36 // Machine identifies the machine tag associated with the payload. 37 Machine string `json:"machine"` 38 }