github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/core/relation/status.go (about) 1 // Copyright 2017 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package relation 5 6 // Status describes the status of a relation. 7 type Status string 8 9 func (s Status) String() string { 10 return string(s) 11 } 12 13 const ( 14 // Joined is the normal status for a healthy, alive relation. 15 Joined Status = "joined" 16 17 // Broken is the status for when a relation life goes to Dead. 18 Broken Status = "broken" 19 20 // Suspended is used to signify that a relation is temporarily broken pending 21 // action to resume it. 22 Suspended Status = "suspended" 23 24 // Error is used to signify that the relation is in an error state. 25 Error Status = "error" 26 )