@@ -19,17 +19,17 @@ const DatastoreMetadataKey = "datastore"
1919// to the "head" of the channel from every node.
2020type Channel struct {
2121 // Name is the user-facing identifier for a graph of updates.
22- Name string `json:"name" yaml:"name" `
22+ Name string `json:"name"`
2323
2424 // Metadata contains any additional properties about the channel.
2525 // For example, the applicable datastore is stored as metadata.
26- Metadata map [string ]string `json:"metadata,omitempty" yaml:"metadata,omitempty" `
26+ Metadata map [string ]string `json:"metadata,omitempty"`
2727
2828 // Edges are the transitions between states in the update graph.
29- Edges EdgeSet `json:"edges,omitempty" yaml:"edges,omitempty" `
29+ Edges EdgeSet `json:"edges,omitempty"`
3030
3131 // Nodes are the possible states in an update graph.
32- Nodes []State `json:"nodes,omitempty" yaml:"nodes,omitempty" `
32+ Nodes []State `json:"nodes,omitempty"`
3333}
3434
3535// EqualIdentity determines if two channels represent the same stream of
@@ -80,19 +80,19 @@ func (c Channel) RemoveNodes(nodes []State) Channel {
8080// State is a "node" in the channel graph, indicating how to run at that
8181// release.
8282type State struct {
83- ID string `json:"id" yaml:"id" `
84- Tag string `json:"tag,omitempty" yaml:"tag,omitempty" `
85- Migration string `json:"migration,omitempty" yaml:"migration,omitempty" `
86- Phase string `json:"phase,omitempty" yaml:"phase,omitempty" `
87- Digest string `json:"digest,omitempty" yaml:"digest,omitempty" `
83+ ID string `json:"id"`
84+ Tag string `json:"tag,omitempty"`
85+ Migration string `json:"migration,omitempty"`
86+ Phase string `json:"phase,omitempty"`
87+ Digest string `json:"digest,omitempty"`
8888
8989 // Deprecated releases can be updated from, but not to
90- Deprecated bool `json:"-" yaml:"-" `
90+ Deprecated bool `json:"-"`
9191}
9292
9393// UpdateGraph holds a graph of required update edges
9494type UpdateGraph struct {
95- Channels []Channel `json:"channels,omitempty" yaml:"channels,omitempty" `
95+ Channels []Channel `json:"channels,omitempty"`
9696}
9797
9898// DefaultChannelForDatastore returns the first channel for a specific datastore.
0 commit comments