github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/payload/status/formatted.go (about)

     1  // Copyright 2015 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package status
     5  
     6  // TODO(ericsnow) Change "tags" to "labels"?
     7  
     8  // FormattedPayload holds the formatted representation of a Payload.
     9  type FormattedPayload struct {
    10  	// These fields are exported for the sake of serialization.
    11  	Unit    string   `json:"unit" yaml:"unit"`
    12  	Machine string   `json:"machine" yaml:"machine"`
    13  	ID      string   `json:"id" yaml:"id"`
    14  	Type    string   `json:"type" yaml:"type"`
    15  	Class   string   `json:"payload-class" yaml:"payload-class"`
    16  	Labels  []string `json:"tags,omitempty" yaml:"tags,omitempty"`
    17  	Status  string   `json:"status" yaml:"status"`
    18  }