Skip to content

Commit

Permalink
Merge pull request #24 from negz/stringy
Browse files Browse the repository at this point in the history
Make Ready enum a string
  • Loading branch information
negz authored Sep 18, 2023
2 parents c6f16a9 + 2b44902 commit b845107
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ type DesiredComposed struct {
}

// Ready indicates whether a composed resource should be considered ready.
type Ready int
type Ready string

// Composed resource readiness.
const (
ReadyUnspecified Ready = iota
ReadyTrue
ReadyFalse
ReadyUnspecified Ready = "Unspecified"
ReadyTrue Ready = "True"
ReadyFalse Ready = "False"
)

// NewDesiredComposedResource returns a new, empty desired composed resource.
Expand Down

0 comments on commit b845107

Please sign in to comment.