Documentation ¶
Index ¶
- Variables
- type AutoOpsRule
- func (a *AutoOpsRule) AddDatetimeClause(dc *proto.DatetimeClause) (*proto.Clause, error)
- func (a *AutoOpsRule) AddOpsEventRateClause(oerc *proto.OpsEventRateClause) (*proto.Clause, error)
- func (a *AutoOpsRule) ChangeDatetimeClause(id string, dc *proto.DatetimeClause) error
- func (a *AutoOpsRule) ChangeOpsEventRateClause(id string, oerc *proto.OpsEventRateClause) error
- func (a *AutoOpsRule) DeleteClause(id string) error
- func (a *AutoOpsRule) ExtractDatetimeClauses() (map[string]*proto.DatetimeClause, error)
- func (a *AutoOpsRule) ExtractOpsEventRateClauses() (map[string]*proto.OpsEventRateClause, error)
- func (a *AutoOpsRule) HasEventRateOps() (bool, error)
- func (a *AutoOpsRule) HasScheduleOps() (bool, error)
- func (a *AutoOpsRule) IsFinished() bool
- func (a *AutoOpsRule) IsStopped() bool
- func (a *AutoOpsRule) SetAutoOpsStatus(status proto.AutoOpsStatus)
- func (a *AutoOpsRule) SetDeleted()
- func (a *AutoOpsRule) SetFinished()
- func (a *AutoOpsRule) SetStopped()
- type ProgressiveRollout
- func (p *ProgressiveRollout) AlreadyTriggered(scheduleID string) (bool, error)
- func (p *ProgressiveRollout) ExtractSchedules() ([]*autoopsproto.ProgressiveRolloutSchedule, error)
- func (p *ProgressiveRollout) IsFinished() bool
- func (p *ProgressiveRollout) IsRunning() bool
- func (p *ProgressiveRollout) IsStopped() bool
- func (p *ProgressiveRollout) IsWaiting() bool
- func (p *ProgressiveRollout) SetTriggeredAt(scheduleID string) error
- func (p *ProgressiveRollout) Stop(stoppedBy autoopsproto.ProgressiveRollout_StoppedBy) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OpsEventRateClause = &proto.OpsEventRateClause{} DatetimeClause = &proto.DatetimeClause{} )
Functions ¶
This section is empty.
Types ¶
type AutoOpsRule ¶
type AutoOpsRule struct {
*proto.AutoOpsRule
}
func NewAutoOpsRule ¶
func NewAutoOpsRule( featureID string, opsType proto.OpsType, opsEventRateClauses []*proto.OpsEventRateClause, datetimeClauses []*proto.DatetimeClause, ) (*AutoOpsRule, error)
func (*AutoOpsRule) AddDatetimeClause ¶
func (a *AutoOpsRule) AddDatetimeClause(dc *proto.DatetimeClause) (*proto.Clause, error)
func (*AutoOpsRule) AddOpsEventRateClause ¶
func (a *AutoOpsRule) AddOpsEventRateClause(oerc *proto.OpsEventRateClause) (*proto.Clause, error)
func (*AutoOpsRule) ChangeDatetimeClause ¶
func (a *AutoOpsRule) ChangeDatetimeClause(id string, dc *proto.DatetimeClause) error
func (*AutoOpsRule) ChangeOpsEventRateClause ¶
func (a *AutoOpsRule) ChangeOpsEventRateClause(id string, oerc *proto.OpsEventRateClause) error
func (*AutoOpsRule) DeleteClause ¶
func (a *AutoOpsRule) DeleteClause(id string) error
func (*AutoOpsRule) ExtractDatetimeClauses ¶
func (a *AutoOpsRule) ExtractDatetimeClauses() (map[string]*proto.DatetimeClause, error)
func (*AutoOpsRule) ExtractOpsEventRateClauses ¶
func (a *AutoOpsRule) ExtractOpsEventRateClauses() (map[string]*proto.OpsEventRateClause, error)
func (*AutoOpsRule) HasEventRateOps ¶ added in v0.4.0
func (a *AutoOpsRule) HasEventRateOps() (bool, error)
func (*AutoOpsRule) HasScheduleOps ¶ added in v0.4.0
func (a *AutoOpsRule) HasScheduleOps() (bool, error)
func (*AutoOpsRule) IsFinished ¶ added in v0.4.6
func (a *AutoOpsRule) IsFinished() bool
func (*AutoOpsRule) IsStopped ¶ added in v0.4.6
func (a *AutoOpsRule) IsStopped() bool
func (*AutoOpsRule) SetAutoOpsStatus ¶ added in v0.4.6
func (a *AutoOpsRule) SetAutoOpsStatus(status proto.AutoOpsStatus)
func (*AutoOpsRule) SetDeleted ¶
func (a *AutoOpsRule) SetDeleted()
func (*AutoOpsRule) SetFinished ¶ added in v0.4.6
func (a *AutoOpsRule) SetFinished()
func (*AutoOpsRule) SetStopped ¶ added in v0.4.6
func (a *AutoOpsRule) SetStopped()
type ProgressiveRollout ¶ added in v0.4.0
type ProgressiveRollout struct {
*autoopsproto.ProgressiveRollout
}
func NewProgressiveRollout ¶ added in v0.4.0
func NewProgressiveRollout( featureID string, manual *autoopsproto.ProgressiveRolloutManualScheduleClause, template *autoopsproto.ProgressiveRolloutTemplateScheduleClause, ) (*ProgressiveRollout, error)
func (*ProgressiveRollout) AlreadyTriggered ¶ added in v0.4.0
func (p *ProgressiveRollout) AlreadyTriggered(scheduleID string) (bool, error)
func (*ProgressiveRollout) ExtractSchedules ¶ added in v0.4.0
func (p *ProgressiveRollout) ExtractSchedules() ([]*autoopsproto.ProgressiveRolloutSchedule, error)
func (*ProgressiveRollout) IsFinished ¶ added in v0.4.0
func (p *ProgressiveRollout) IsFinished() bool
func (*ProgressiveRollout) IsRunning ¶ added in v0.4.0
func (p *ProgressiveRollout) IsRunning() bool
func (*ProgressiveRollout) IsStopped ¶ added in v0.4.0
func (p *ProgressiveRollout) IsStopped() bool
func (*ProgressiveRollout) IsWaiting ¶ added in v0.4.0
func (p *ProgressiveRollout) IsWaiting() bool
func (*ProgressiveRollout) SetTriggeredAt ¶ added in v0.4.0
func (p *ProgressiveRollout) SetTriggeredAt(scheduleID string) error
func (*ProgressiveRollout) Stop ¶ added in v0.4.0
func (p *ProgressiveRollout) Stop(stoppedBy autoopsproto.ProgressiveRollout_StoppedBy) error
Click to show internal directories.
Click to hide internal directories.