github.com/mwhudson/juju@v0.0.0-20160512215208-90ff01f3497f/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 12 } 13 14 type EnvListResults struct { 15 // Results is the list of payload results. 16 Results []Payload 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 23 // Type is the name of the payload type. 24 Type string 25 26 // ID is a unique string identifying the payload to 27 // the underlying technology. 28 ID string 29 // Status is the Juju-level status for the payload. 30 Status string 31 // Labels are labels associated with the payload. 32 Labels []string 33 34 // Unit identifies the unit tag associated with the payload. 35 Unit string 36 // Machine identifies the machine tag associated with the payload. 37 Machine string 38 }