Documentation
¶
Index ¶
- type Control
- func (c *Control) Apply(ctx context.Context, client *clientv3.Client) error
- func (c *Control) GetDrain() *Drain
- func (c *Control) GetStart() *Start
- func (c *Control) GetUpgrade() *Upgrade
- func (c *Control) SetDrain(drain *Drain)
- func (c *Control) SetStart(start *Start)
- func (c *Control) SetUpgrade(upgrade *Upgrade)
- func (c *Control) Time()
- func (c *Control) ToJSON() ([]byte, error)
- func (c *Control) Validate() (bool, error)
- type Drain
- type Start
- type Upgrade
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Control ¶
type Control struct {
Drain *Drain `validate:"omitempty,dive" json:"drain,omitempty"`
Upgrade *Upgrade `validate:"omitempty,dive" json:"upgrade,omitempty"`
Start *Start `validate:"omitempty,dive" json:"start,omitempty"`
Timestamp time.Time `json:"timestamp,omitempty"`
}
func (*Control) GetUpgrade ¶
func (*Control) SetUpgrade ¶
Click to show internal directories.
Click to hide internal directories.