Documentation ¶
Overview ¶
Package cfgpb contains the CQ config schema.
Index ¶
- Variables
- type CombineCLs
- func (*CombineCLs) Descriptor() ([]byte, []int)deprecated
- func (x *CombineCLs) GetStabilizationDelay() *durationpb.Duration
- func (*CombineCLs) ProtoMessage()
- func (x *CombineCLs) ProtoReflect() protoreflect.Message
- func (x *CombineCLs) Reset()
- func (x *CombineCLs) String() string
- func (m *CombineCLs) Validate() error
- func (m *CombineCLs) ValidateAll() error
- type CombineCLsMultiError
- type CombineCLsValidationError
- type CommentLevel
- func (CommentLevel) Descriptor() protoreflect.EnumDescriptor
- func (x CommentLevel) Enum() *CommentLevel
- func (CommentLevel) EnumDescriptor() ([]byte, []int)deprecated
- func (x CommentLevel) Number() protoreflect.EnumNumber
- func (x CommentLevel) String() string
- func (CommentLevel) Type() protoreflect.EnumType
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetConfigGroups() []*ConfigGroup
- func (x *Config) GetCqStatusHost() stringdeprecated
- func (x *Config) GetDrainingStartTime() stringdeprecated
- func (x *Config) GetHonorGerritLinkedAccounts() bool
- func (x *Config) GetProjectScopedAccount() Toggledeprecated
- func (x *Config) GetSubmitOptions() *SubmitOptions
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- func (m *Config) Validate() error
- func (m *Config) ValidateAll() error
- type ConfigGroup
- func (*ConfigGroup) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigGroup) GetAdditionalModes() []*Mode
- func (x *ConfigGroup) GetCombineCls() *CombineCLs
- func (x *ConfigGroup) GetFallback() Toggle
- func (x *ConfigGroup) GetGerrit() []*ConfigGroup_Gerrit
- func (x *ConfigGroup) GetName() string
- func (x *ConfigGroup) GetPostActions() []*ConfigGroup_PostAction
- func (x *ConfigGroup) GetTryjobExperiments() []*ConfigGroup_TryjobExperiment
- func (x *ConfigGroup) GetUserLimitDefault() *UserLimit
- func (x *ConfigGroup) GetUserLimits() []*UserLimit
- func (x *ConfigGroup) GetVerifiers() *Verifiers
- func (*ConfigGroup) ProtoMessage()
- func (x *ConfigGroup) ProtoReflect() protoreflect.Message
- func (x *ConfigGroup) Reset()
- func (x *ConfigGroup) String() string
- func (m *ConfigGroup) Validate() error
- func (m *ConfigGroup) ValidateAll() error
- type ConfigGroupMultiError
- type ConfigGroupValidationError
- func (e ConfigGroupValidationError) Cause() error
- func (e ConfigGroupValidationError) Error() string
- func (e ConfigGroupValidationError) ErrorName() string
- func (e ConfigGroupValidationError) Field() string
- func (e ConfigGroupValidationError) Key() bool
- func (e ConfigGroupValidationError) Reason() string
- type ConfigGroup_Gerrit
- func (*ConfigGroup_Gerrit) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigGroup_Gerrit) GetProjects() []*ConfigGroup_Gerrit_Project
- func (x *ConfigGroup_Gerrit) GetUrl() string
- func (*ConfigGroup_Gerrit) ProtoMessage()
- func (x *ConfigGroup_Gerrit) ProtoReflect() protoreflect.Message
- func (x *ConfigGroup_Gerrit) Reset()
- func (x *ConfigGroup_Gerrit) String() string
- func (m *ConfigGroup_Gerrit) Validate() error
- func (m *ConfigGroup_Gerrit) ValidateAll() error
- type ConfigGroup_GerritMultiError
- type ConfigGroup_GerritValidationError
- func (e ConfigGroup_GerritValidationError) Cause() error
- func (e ConfigGroup_GerritValidationError) Error() string
- func (e ConfigGroup_GerritValidationError) ErrorName() string
- func (e ConfigGroup_GerritValidationError) Field() string
- func (e ConfigGroup_GerritValidationError) Key() bool
- func (e ConfigGroup_GerritValidationError) Reason() string
- type ConfigGroup_Gerrit_Project
- func (*ConfigGroup_Gerrit_Project) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigGroup_Gerrit_Project) GetName() string
- func (x *ConfigGroup_Gerrit_Project) GetRefRegexp() []string
- func (x *ConfigGroup_Gerrit_Project) GetRefRegexpExclude() []string
- func (*ConfigGroup_Gerrit_Project) ProtoMessage()
- func (x *ConfigGroup_Gerrit_Project) ProtoReflect() protoreflect.Message
- func (x *ConfigGroup_Gerrit_Project) Reset()
- func (x *ConfigGroup_Gerrit_Project) String() string
- func (m *ConfigGroup_Gerrit_Project) Validate() error
- func (m *ConfigGroup_Gerrit_Project) ValidateAll() error
- type ConfigGroup_Gerrit_ProjectMultiError
- type ConfigGroup_Gerrit_ProjectValidationError
- func (e ConfigGroup_Gerrit_ProjectValidationError) Cause() error
- func (e ConfigGroup_Gerrit_ProjectValidationError) Error() string
- func (e ConfigGroup_Gerrit_ProjectValidationError) ErrorName() string
- func (e ConfigGroup_Gerrit_ProjectValidationError) Field() string
- func (e ConfigGroup_Gerrit_ProjectValidationError) Key() bool
- func (e ConfigGroup_Gerrit_ProjectValidationError) Reason() string
- type ConfigGroup_PostAction
- func (*ConfigGroup_PostAction) Descriptor() ([]byte, []int)deprecated
- func (m *ConfigGroup_PostAction) GetAction() isConfigGroup_PostAction_Action
- func (x *ConfigGroup_PostAction) GetConditions() []*ConfigGroup_PostAction_TriggeringCondition
- func (x *ConfigGroup_PostAction) GetName() string
- func (x *ConfigGroup_PostAction) GetVoteGerritLabels() *ConfigGroup_PostAction_VoteGerritLabels
- func (*ConfigGroup_PostAction) ProtoMessage()
- func (x *ConfigGroup_PostAction) ProtoReflect() protoreflect.Message
- func (x *ConfigGroup_PostAction) Reset()
- func (x *ConfigGroup_PostAction) String() string
- func (m *ConfigGroup_PostAction) Validate() error
- func (m *ConfigGroup_PostAction) ValidateAll() error
- type ConfigGroup_PostActionMultiError
- type ConfigGroup_PostActionValidationError
- func (e ConfigGroup_PostActionValidationError) Cause() error
- func (e ConfigGroup_PostActionValidationError) Error() string
- func (e ConfigGroup_PostActionValidationError) ErrorName() string
- func (e ConfigGroup_PostActionValidationError) Field() string
- func (e ConfigGroup_PostActionValidationError) Key() bool
- func (e ConfigGroup_PostActionValidationError) Reason() string
- type ConfigGroup_PostAction_TriggeringCondition
- func (*ConfigGroup_PostAction_TriggeringCondition) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigGroup_PostAction_TriggeringCondition) GetMode() string
- func (x *ConfigGroup_PostAction_TriggeringCondition) GetStatuses() []v1.Run_Status
- func (*ConfigGroup_PostAction_TriggeringCondition) ProtoMessage()
- func (x *ConfigGroup_PostAction_TriggeringCondition) ProtoReflect() protoreflect.Message
- func (x *ConfigGroup_PostAction_TriggeringCondition) Reset()
- func (x *ConfigGroup_PostAction_TriggeringCondition) String() string
- func (m *ConfigGroup_PostAction_TriggeringCondition) Validate() error
- func (m *ConfigGroup_PostAction_TriggeringCondition) ValidateAll() error
- type ConfigGroup_PostAction_TriggeringConditionMultiError
- type ConfigGroup_PostAction_TriggeringConditionValidationError
- func (e ConfigGroup_PostAction_TriggeringConditionValidationError) Cause() error
- func (e ConfigGroup_PostAction_TriggeringConditionValidationError) Error() string
- func (e ConfigGroup_PostAction_TriggeringConditionValidationError) ErrorName() string
- func (e ConfigGroup_PostAction_TriggeringConditionValidationError) Field() string
- func (e ConfigGroup_PostAction_TriggeringConditionValidationError) Key() bool
- func (e ConfigGroup_PostAction_TriggeringConditionValidationError) Reason() string
- type ConfigGroup_PostAction_VoteGerritLabels
- func (*ConfigGroup_PostAction_VoteGerritLabels) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigGroup_PostAction_VoteGerritLabels) GetVotes() []*ConfigGroup_PostAction_VoteGerritLabels_Vote
- func (*ConfigGroup_PostAction_VoteGerritLabels) ProtoMessage()
- func (x *ConfigGroup_PostAction_VoteGerritLabels) ProtoReflect() protoreflect.Message
- func (x *ConfigGroup_PostAction_VoteGerritLabels) Reset()
- func (x *ConfigGroup_PostAction_VoteGerritLabels) String() string
- func (m *ConfigGroup_PostAction_VoteGerritLabels) Validate() error
- func (m *ConfigGroup_PostAction_VoteGerritLabels) ValidateAll() error
- type ConfigGroup_PostAction_VoteGerritLabelsMultiError
- type ConfigGroup_PostAction_VoteGerritLabelsValidationError
- func (e ConfigGroup_PostAction_VoteGerritLabelsValidationError) Cause() error
- func (e ConfigGroup_PostAction_VoteGerritLabelsValidationError) Error() string
- func (e ConfigGroup_PostAction_VoteGerritLabelsValidationError) ErrorName() string
- func (e ConfigGroup_PostAction_VoteGerritLabelsValidationError) Field() string
- func (e ConfigGroup_PostAction_VoteGerritLabelsValidationError) Key() bool
- func (e ConfigGroup_PostAction_VoteGerritLabelsValidationError) Reason() string
- type ConfigGroup_PostAction_VoteGerritLabels_
- type ConfigGroup_PostAction_VoteGerritLabels_Vote
- func (*ConfigGroup_PostAction_VoteGerritLabels_Vote) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigGroup_PostAction_VoteGerritLabels_Vote) GetName() string
- func (x *ConfigGroup_PostAction_VoteGerritLabels_Vote) GetValue() int32
- func (*ConfigGroup_PostAction_VoteGerritLabels_Vote) ProtoMessage()
- func (x *ConfigGroup_PostAction_VoteGerritLabels_Vote) ProtoReflect() protoreflect.Message
- func (x *ConfigGroup_PostAction_VoteGerritLabels_Vote) Reset()
- func (x *ConfigGroup_PostAction_VoteGerritLabels_Vote) String() string
- func (m *ConfigGroup_PostAction_VoteGerritLabels_Vote) Validate() error
- func (m *ConfigGroup_PostAction_VoteGerritLabels_Vote) ValidateAll() error
- type ConfigGroup_PostAction_VoteGerritLabels_VoteMultiError
- type ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError
- func (e ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError) Cause() error
- func (e ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError) Error() string
- func (e ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError) ErrorName() string
- func (e ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError) Field() string
- func (e ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError) Key() bool
- func (e ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError) Reason() string
- type ConfigGroup_TryjobExperiment
- func (*ConfigGroup_TryjobExperiment) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigGroup_TryjobExperiment) GetCondition() *ConfigGroup_TryjobExperiment_Condition
- func (x *ConfigGroup_TryjobExperiment) GetName() string
- func (*ConfigGroup_TryjobExperiment) ProtoMessage()
- func (x *ConfigGroup_TryjobExperiment) ProtoReflect() protoreflect.Message
- func (x *ConfigGroup_TryjobExperiment) Reset()
- func (x *ConfigGroup_TryjobExperiment) String() string
- func (m *ConfigGroup_TryjobExperiment) Validate() error
- func (m *ConfigGroup_TryjobExperiment) ValidateAll() error
- type ConfigGroup_TryjobExperimentMultiError
- type ConfigGroup_TryjobExperimentValidationError
- func (e ConfigGroup_TryjobExperimentValidationError) Cause() error
- func (e ConfigGroup_TryjobExperimentValidationError) Error() string
- func (e ConfigGroup_TryjobExperimentValidationError) ErrorName() string
- func (e ConfigGroup_TryjobExperimentValidationError) Field() string
- func (e ConfigGroup_TryjobExperimentValidationError) Key() bool
- func (e ConfigGroup_TryjobExperimentValidationError) Reason() string
- type ConfigGroup_TryjobExperiment_Condition
- func (*ConfigGroup_TryjobExperiment_Condition) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigGroup_TryjobExperiment_Condition) GetOwnerGroupAllowlist() []string
- func (*ConfigGroup_TryjobExperiment_Condition) ProtoMessage()
- func (x *ConfigGroup_TryjobExperiment_Condition) ProtoReflect() protoreflect.Message
- func (x *ConfigGroup_TryjobExperiment_Condition) Reset()
- func (x *ConfigGroup_TryjobExperiment_Condition) String() string
- func (m *ConfigGroup_TryjobExperiment_Condition) Validate() error
- func (m *ConfigGroup_TryjobExperiment_Condition) ValidateAll() error
- type ConfigGroup_TryjobExperiment_ConditionMultiError
- type ConfigGroup_TryjobExperiment_ConditionValidationError
- func (e ConfigGroup_TryjobExperiment_ConditionValidationError) Cause() error
- func (e ConfigGroup_TryjobExperiment_ConditionValidationError) Error() string
- func (e ConfigGroup_TryjobExperiment_ConditionValidationError) ErrorName() string
- func (e ConfigGroup_TryjobExperiment_ConditionValidationError) Field() string
- func (e ConfigGroup_TryjobExperiment_ConditionValidationError) Key() bool
- func (e ConfigGroup_TryjobExperiment_ConditionValidationError) Reason() string
- type ConfigMultiError
- type ConfigValidationError
- type Mode
- func (*Mode) Descriptor() ([]byte, []int)deprecated
- func (x *Mode) GetCqLabelValue() int32
- func (x *Mode) GetName() string
- func (x *Mode) GetTriggeringLabel() string
- func (x *Mode) GetTriggeringValue() int32
- func (*Mode) ProtoMessage()
- func (x *Mode) ProtoReflect() protoreflect.Message
- func (x *Mode) Reset()
- func (x *Mode) String() string
- func (m *Mode) Validate() error
- func (m *Mode) ValidateAll() error
- type ModeMultiError
- type ModeValidationError
- type SubmitOptions
- func (*SubmitOptions) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitOptions) GetBurstDelay() *durationpb.Duration
- func (x *SubmitOptions) GetMaxBurst() int32
- func (*SubmitOptions) ProtoMessage()
- func (x *SubmitOptions) ProtoReflect() protoreflect.Message
- func (x *SubmitOptions) Reset()
- func (x *SubmitOptions) String() string
- func (m *SubmitOptions) Validate() error
- func (m *SubmitOptions) ValidateAll() error
- type SubmitOptionsMultiError
- type SubmitOptionsValidationError
- func (e SubmitOptionsValidationError) Cause() error
- func (e SubmitOptionsValidationError) Error() string
- func (e SubmitOptionsValidationError) ErrorName() string
- func (e SubmitOptionsValidationError) Field() string
- func (e SubmitOptionsValidationError) Key() bool
- func (e SubmitOptionsValidationError) Reason() string
- type Toggle
- type UserLimit
- func (*UserLimit) Descriptor() ([]byte, []int)deprecated
- func (x *UserLimit) GetName() string
- func (x *UserLimit) GetPrincipals() []string
- func (x *UserLimit) GetRun() *UserLimit_Run
- func (x *UserLimit) GetTryjob() *UserLimit_Tryjob
- func (*UserLimit) ProtoMessage()
- func (x *UserLimit) ProtoReflect() protoreflect.Message
- func (x *UserLimit) Reset()
- func (x *UserLimit) String() string
- func (m *UserLimit) Validate() error
- func (m *UserLimit) ValidateAll() error
- type UserLimitMultiError
- type UserLimitValidationError
- type UserLimit_Limit
- func (*UserLimit_Limit) Descriptor() ([]byte, []int)deprecated
- func (m *UserLimit_Limit) GetLimit() isUserLimit_Limit_Limit
- func (x *UserLimit_Limit) GetUnlimited() bool
- func (x *UserLimit_Limit) GetValue() int64
- func (*UserLimit_Limit) ProtoMessage()
- func (x *UserLimit_Limit) ProtoReflect() protoreflect.Message
- func (x *UserLimit_Limit) Reset()
- func (x *UserLimit_Limit) String() string
- func (m *UserLimit_Limit) Validate() error
- func (m *UserLimit_Limit) ValidateAll() error
- type UserLimit_LimitMultiError
- type UserLimit_LimitValidationError
- func (e UserLimit_LimitValidationError) Cause() error
- func (e UserLimit_LimitValidationError) Error() string
- func (e UserLimit_LimitValidationError) ErrorName() string
- func (e UserLimit_LimitValidationError) Field() string
- func (e UserLimit_LimitValidationError) Key() bool
- func (e UserLimit_LimitValidationError) Reason() string
- type UserLimit_Limit_Unlimited
- type UserLimit_Limit_Value
- type UserLimit_Run
- func (*UserLimit_Run) Descriptor() ([]byte, []int)deprecated
- func (x *UserLimit_Run) GetMaxActive() *UserLimit_Limit
- func (x *UserLimit_Run) GetReachLimitMsg() string
- func (*UserLimit_Run) ProtoMessage()
- func (x *UserLimit_Run) ProtoReflect() protoreflect.Message
- func (x *UserLimit_Run) Reset()
- func (x *UserLimit_Run) String() string
- func (m *UserLimit_Run) Validate() error
- func (m *UserLimit_Run) ValidateAll() error
- type UserLimit_RunMultiError
- type UserLimit_RunValidationError
- func (e UserLimit_RunValidationError) Cause() error
- func (e UserLimit_RunValidationError) Error() string
- func (e UserLimit_RunValidationError) ErrorName() string
- func (e UserLimit_RunValidationError) Field() string
- func (e UserLimit_RunValidationError) Key() bool
- func (e UserLimit_RunValidationError) Reason() string
- type UserLimit_Tryjob
- func (*UserLimit_Tryjob) Descriptor() ([]byte, []int)deprecated
- func (x *UserLimit_Tryjob) GetMaxActive() *UserLimit_Limit
- func (*UserLimit_Tryjob) ProtoMessage()
- func (x *UserLimit_Tryjob) ProtoReflect() protoreflect.Message
- func (x *UserLimit_Tryjob) Reset()
- func (x *UserLimit_Tryjob) String() string
- func (m *UserLimit_Tryjob) Validate() error
- func (m *UserLimit_Tryjob) ValidateAll() error
- type UserLimit_TryjobMultiError
- type UserLimit_TryjobValidationError
- func (e UserLimit_TryjobValidationError) Cause() error
- func (e UserLimit_TryjobValidationError) Error() string
- func (e UserLimit_TryjobValidationError) ErrorName() string
- func (e UserLimit_TryjobValidationError) Field() string
- func (e UserLimit_TryjobValidationError) Key() bool
- func (e UserLimit_TryjobValidationError) Reason() string
- type Verifiers
- func (*Verifiers) Descriptor() ([]byte, []int)deprecated
- func (x *Verifiers) GetCqlinter() *Verifiers_CQLinter
- func (x *Verifiers) GetFake() *Verifiers_Fake
- func (x *Verifiers) GetGerritCqAbility() *Verifiers_GerritCQAbility
- func (x *Verifiers) GetTreeStatus() *Verifiers_TreeStatus
- func (x *Verifiers) GetTryjob() *Verifiers_Tryjob
- func (*Verifiers) ProtoMessage()
- func (x *Verifiers) ProtoReflect() protoreflect.Message
- func (x *Verifiers) Reset()
- func (x *Verifiers) String() string
- func (m *Verifiers) Validate() error
- func (m *Verifiers) ValidateAll() error
- type VerifiersMultiError
- type VerifiersValidationError
- type Verifiers_CQLinter
- func (*Verifiers_CQLinter) Descriptor() ([]byte, []int)deprecated
- func (*Verifiers_CQLinter) ProtoMessage()
- func (x *Verifiers_CQLinter) ProtoReflect() protoreflect.Message
- func (x *Verifiers_CQLinter) Reset()
- func (x *Verifiers_CQLinter) String() string
- func (m *Verifiers_CQLinter) Validate() error
- func (m *Verifiers_CQLinter) ValidateAll() error
- type Verifiers_CQLinterMultiError
- type Verifiers_CQLinterValidationError
- func (e Verifiers_CQLinterValidationError) Cause() error
- func (e Verifiers_CQLinterValidationError) Error() string
- func (e Verifiers_CQLinterValidationError) ErrorName() string
- func (e Verifiers_CQLinterValidationError) Field() string
- func (e Verifiers_CQLinterValidationError) Key() bool
- func (e Verifiers_CQLinterValidationError) Reason() string
- type Verifiers_Fake
- func (*Verifiers_Fake) Descriptor() ([]byte, []int)deprecated
- func (x *Verifiers_Fake) GetDelay() int32
- func (x *Verifiers_Fake) GetEventualState() string
- func (x *Verifiers_Fake) GetName() string
- func (*Verifiers_Fake) ProtoMessage()
- func (x *Verifiers_Fake) ProtoReflect() protoreflect.Message
- func (x *Verifiers_Fake) Reset()
- func (x *Verifiers_Fake) String() string
- func (m *Verifiers_Fake) Validate() error
- func (m *Verifiers_Fake) ValidateAll() error
- type Verifiers_FakeMultiError
- type Verifiers_FakeValidationError
- func (e Verifiers_FakeValidationError) Cause() error
- func (e Verifiers_FakeValidationError) Error() string
- func (e Verifiers_FakeValidationError) ErrorName() string
- func (e Verifiers_FakeValidationError) Field() string
- func (e Verifiers_FakeValidationError) Key() bool
- func (e Verifiers_FakeValidationError) Reason() string
- type Verifiers_GerritCQAbility
- func (*Verifiers_GerritCQAbility) Descriptor() ([]byte, []int)deprecated
- func (x *Verifiers_GerritCQAbility) GetAllowNonOwnerDryRunner() bool
- func (x *Verifiers_GerritCQAbility) GetAllowOwnerIfSubmittable() Verifiers_GerritCQAbility_CQAction
- func (x *Verifiers_GerritCQAbility) GetAllowSubmitWithOpenDeps() bool
- func (x *Verifiers_GerritCQAbility) GetCommitterList() []string
- func (x *Verifiers_GerritCQAbility) GetDryRunAccessList() []string
- func (x *Verifiers_GerritCQAbility) GetNewPatchsetRunAccessList() []string
- func (x *Verifiers_GerritCQAbility) GetTrustDryRunnerDeps() bool
- func (*Verifiers_GerritCQAbility) ProtoMessage()
- func (x *Verifiers_GerritCQAbility) ProtoReflect() protoreflect.Message
- func (x *Verifiers_GerritCQAbility) Reset()
- func (x *Verifiers_GerritCQAbility) String() string
- func (m *Verifiers_GerritCQAbility) Validate() error
- func (m *Verifiers_GerritCQAbility) ValidateAll() error
- type Verifiers_GerritCQAbilityMultiError
- type Verifiers_GerritCQAbilityValidationError
- func (e Verifiers_GerritCQAbilityValidationError) Cause() error
- func (e Verifiers_GerritCQAbilityValidationError) Error() string
- func (e Verifiers_GerritCQAbilityValidationError) ErrorName() string
- func (e Verifiers_GerritCQAbilityValidationError) Field() string
- func (e Verifiers_GerritCQAbilityValidationError) Key() bool
- func (e Verifiers_GerritCQAbilityValidationError) Reason() string
- type Verifiers_GerritCQAbility_CQAction
- func (Verifiers_GerritCQAbility_CQAction) Descriptor() protoreflect.EnumDescriptor
- func (x Verifiers_GerritCQAbility_CQAction) Enum() *Verifiers_GerritCQAbility_CQAction
- func (Verifiers_GerritCQAbility_CQAction) EnumDescriptor() ([]byte, []int)deprecated
- func (x Verifiers_GerritCQAbility_CQAction) Number() protoreflect.EnumNumber
- func (x Verifiers_GerritCQAbility_CQAction) String() string
- func (Verifiers_GerritCQAbility_CQAction) Type() protoreflect.EnumType
- type Verifiers_TreeStatus
- func (*Verifiers_TreeStatus) Descriptor() ([]byte, []int)deprecated
- func (x *Verifiers_TreeStatus) GetTreeName() string
- func (x *Verifiers_TreeStatus) GetUrl() stringdeprecated
- func (*Verifiers_TreeStatus) ProtoMessage()
- func (x *Verifiers_TreeStatus) ProtoReflect() protoreflect.Message
- func (x *Verifiers_TreeStatus) Reset()
- func (x *Verifiers_TreeStatus) String() string
- func (m *Verifiers_TreeStatus) Validate() error
- func (m *Verifiers_TreeStatus) ValidateAll() error
- type Verifiers_TreeStatusMultiError
- type Verifiers_TreeStatusValidationError
- func (e Verifiers_TreeStatusValidationError) Cause() error
- func (e Verifiers_TreeStatusValidationError) Error() string
- func (e Verifiers_TreeStatusValidationError) ErrorName() string
- func (e Verifiers_TreeStatusValidationError) Field() string
- func (e Verifiers_TreeStatusValidationError) Key() bool
- func (e Verifiers_TreeStatusValidationError) Reason() string
- type Verifiers_Tryjob
- func (*Verifiers_Tryjob) Descriptor() ([]byte, []int)deprecated
- func (x *Verifiers_Tryjob) GetBuilders() []*Verifiers_Tryjob_Builder
- func (x *Verifiers_Tryjob) GetCancelStaleTryjobs() Toggledeprecated
- func (x *Verifiers_Tryjob) GetRetryConfig() *Verifiers_Tryjob_RetryConfig
- func (*Verifiers_Tryjob) ProtoMessage()
- func (x *Verifiers_Tryjob) ProtoReflect() protoreflect.Message
- func (x *Verifiers_Tryjob) Reset()
- func (x *Verifiers_Tryjob) String() string
- func (m *Verifiers_Tryjob) Validate() error
- func (m *Verifiers_Tryjob) ValidateAll() error
- type Verifiers_TryjobMultiError
- type Verifiers_TryjobValidationError
- func (e Verifiers_TryjobValidationError) Cause() error
- func (e Verifiers_TryjobValidationError) Error() string
- func (e Verifiers_TryjobValidationError) ErrorName() string
- func (e Verifiers_TryjobValidationError) Field() string
- func (e Verifiers_TryjobValidationError) Key() bool
- func (e Verifiers_TryjobValidationError) Reason() string
- type Verifiers_Tryjob_Builder
- func (*Verifiers_Tryjob_Builder) Descriptor() ([]byte, []int)deprecated
- func (x *Verifiers_Tryjob_Builder) GetCancelStale() Toggle
- func (x *Verifiers_Tryjob_Builder) GetDisableReuse() bool
- func (x *Verifiers_Tryjob_Builder) GetEquivalentTo() *Verifiers_Tryjob_EquivalentBuilder
- func (x *Verifiers_Tryjob_Builder) GetExperimentPercentage() float32
- func (x *Verifiers_Tryjob_Builder) GetHost() string
- func (x *Verifiers_Tryjob_Builder) GetIncludableOnly() bool
- func (x *Verifiers_Tryjob_Builder) GetLocationFilters() []*Verifiers_Tryjob_Builder_LocationFilter
- func (x *Verifiers_Tryjob_Builder) GetModeAllowlist() []string
- func (x *Verifiers_Tryjob_Builder) GetName() string
- func (x *Verifiers_Tryjob_Builder) GetOwnerWhitelistGroup() []string
- func (x *Verifiers_Tryjob_Builder) GetResultVisibility() CommentLevel
- func (x *Verifiers_Tryjob_Builder) GetSkipFooters() []*Verifiers_Tryjob_Builder_SkipFooter
- func (*Verifiers_Tryjob_Builder) ProtoMessage()
- func (x *Verifiers_Tryjob_Builder) ProtoReflect() protoreflect.Message
- func (x *Verifiers_Tryjob_Builder) Reset()
- func (x *Verifiers_Tryjob_Builder) String() string
- func (m *Verifiers_Tryjob_Builder) Validate() error
- func (m *Verifiers_Tryjob_Builder) ValidateAll() error
- type Verifiers_Tryjob_BuilderMultiError
- type Verifiers_Tryjob_BuilderValidationError
- func (e Verifiers_Tryjob_BuilderValidationError) Cause() error
- func (e Verifiers_Tryjob_BuilderValidationError) Error() string
- func (e Verifiers_Tryjob_BuilderValidationError) ErrorName() string
- func (e Verifiers_Tryjob_BuilderValidationError) Field() string
- func (e Verifiers_Tryjob_BuilderValidationError) Key() bool
- func (e Verifiers_Tryjob_BuilderValidationError) Reason() string
- type Verifiers_Tryjob_Builder_LocationFilter
- func (*Verifiers_Tryjob_Builder_LocationFilter) Descriptor() ([]byte, []int)deprecated
- func (x *Verifiers_Tryjob_Builder_LocationFilter) GetExclude() bool
- func (x *Verifiers_Tryjob_Builder_LocationFilter) GetGerritHostRegexp() string
- func (x *Verifiers_Tryjob_Builder_LocationFilter) GetGerritProjectRegexp() string
- func (x *Verifiers_Tryjob_Builder_LocationFilter) GetGerritRefRegexp() string
- func (x *Verifiers_Tryjob_Builder_LocationFilter) GetPathRegexp() string
- func (*Verifiers_Tryjob_Builder_LocationFilter) ProtoMessage()
- func (x *Verifiers_Tryjob_Builder_LocationFilter) ProtoReflect() protoreflect.Message
- func (x *Verifiers_Tryjob_Builder_LocationFilter) Reset()
- func (x *Verifiers_Tryjob_Builder_LocationFilter) String() string
- func (m *Verifiers_Tryjob_Builder_LocationFilter) Validate() error
- func (m *Verifiers_Tryjob_Builder_LocationFilter) ValidateAll() error
- type Verifiers_Tryjob_Builder_LocationFilterMultiError
- type Verifiers_Tryjob_Builder_LocationFilterValidationError
- func (e Verifiers_Tryjob_Builder_LocationFilterValidationError) Cause() error
- func (e Verifiers_Tryjob_Builder_LocationFilterValidationError) Error() string
- func (e Verifiers_Tryjob_Builder_LocationFilterValidationError) ErrorName() string
- func (e Verifiers_Tryjob_Builder_LocationFilterValidationError) Field() string
- func (e Verifiers_Tryjob_Builder_LocationFilterValidationError) Key() bool
- func (e Verifiers_Tryjob_Builder_LocationFilterValidationError) Reason() string
- type Verifiers_Tryjob_Builder_SkipFooter
- func (*Verifiers_Tryjob_Builder_SkipFooter) Descriptor() ([]byte, []int)deprecated
- func (x *Verifiers_Tryjob_Builder_SkipFooter) GetKey() string
- func (x *Verifiers_Tryjob_Builder_SkipFooter) GetValueRegexp() string
- func (*Verifiers_Tryjob_Builder_SkipFooter) ProtoMessage()
- func (x *Verifiers_Tryjob_Builder_SkipFooter) ProtoReflect() protoreflect.Message
- func (x *Verifiers_Tryjob_Builder_SkipFooter) Reset()
- func (x *Verifiers_Tryjob_Builder_SkipFooter) String() string
- func (m *Verifiers_Tryjob_Builder_SkipFooter) Validate() error
- func (m *Verifiers_Tryjob_Builder_SkipFooter) ValidateAll() error
- type Verifiers_Tryjob_Builder_SkipFooterMultiError
- type Verifiers_Tryjob_Builder_SkipFooterValidationError
- func (e Verifiers_Tryjob_Builder_SkipFooterValidationError) Cause() error
- func (e Verifiers_Tryjob_Builder_SkipFooterValidationError) Error() string
- func (e Verifiers_Tryjob_Builder_SkipFooterValidationError) ErrorName() string
- func (e Verifiers_Tryjob_Builder_SkipFooterValidationError) Field() string
- func (e Verifiers_Tryjob_Builder_SkipFooterValidationError) Key() bool
- func (e Verifiers_Tryjob_Builder_SkipFooterValidationError) Reason() string
- type Verifiers_Tryjob_EquivalentBuilder
- func (*Verifiers_Tryjob_EquivalentBuilder) Descriptor() ([]byte, []int)deprecated
- func (x *Verifiers_Tryjob_EquivalentBuilder) GetName() string
- func (x *Verifiers_Tryjob_EquivalentBuilder) GetOwnerWhitelistGroup() string
- func (x *Verifiers_Tryjob_EquivalentBuilder) GetPercentage() float32
- func (*Verifiers_Tryjob_EquivalentBuilder) ProtoMessage()
- func (x *Verifiers_Tryjob_EquivalentBuilder) ProtoReflect() protoreflect.Message
- func (x *Verifiers_Tryjob_EquivalentBuilder) Reset()
- func (x *Verifiers_Tryjob_EquivalentBuilder) String() string
- func (m *Verifiers_Tryjob_EquivalentBuilder) Validate() error
- func (m *Verifiers_Tryjob_EquivalentBuilder) ValidateAll() error
- type Verifiers_Tryjob_EquivalentBuilderMultiError
- type Verifiers_Tryjob_EquivalentBuilderValidationError
- func (e Verifiers_Tryjob_EquivalentBuilderValidationError) Cause() error
- func (e Verifiers_Tryjob_EquivalentBuilderValidationError) Error() string
- func (e Verifiers_Tryjob_EquivalentBuilderValidationError) ErrorName() string
- func (e Verifiers_Tryjob_EquivalentBuilderValidationError) Field() string
- func (e Verifiers_Tryjob_EquivalentBuilderValidationError) Key() bool
- func (e Verifiers_Tryjob_EquivalentBuilderValidationError) Reason() string
- type Verifiers_Tryjob_IncludableBuilder
- func (*Verifiers_Tryjob_IncludableBuilder) Descriptor() ([]byte, []int)deprecated
- func (x *Verifiers_Tryjob_IncludableBuilder) GetName() string
- func (*Verifiers_Tryjob_IncludableBuilder) ProtoMessage()
- func (x *Verifiers_Tryjob_IncludableBuilder) ProtoReflect() protoreflect.Message
- func (x *Verifiers_Tryjob_IncludableBuilder) Reset()
- func (x *Verifiers_Tryjob_IncludableBuilder) String() string
- func (m *Verifiers_Tryjob_IncludableBuilder) Validate() error
- func (m *Verifiers_Tryjob_IncludableBuilder) ValidateAll() error
- type Verifiers_Tryjob_IncludableBuilderMultiError
- type Verifiers_Tryjob_IncludableBuilderValidationError
- func (e Verifiers_Tryjob_IncludableBuilderValidationError) Cause() error
- func (e Verifiers_Tryjob_IncludableBuilderValidationError) Error() string
- func (e Verifiers_Tryjob_IncludableBuilderValidationError) ErrorName() string
- func (e Verifiers_Tryjob_IncludableBuilderValidationError) Field() string
- func (e Verifiers_Tryjob_IncludableBuilderValidationError) Key() bool
- func (e Verifiers_Tryjob_IncludableBuilderValidationError) Reason() string
- type Verifiers_Tryjob_RetryConfig
- func (*Verifiers_Tryjob_RetryConfig) Descriptor() ([]byte, []int)deprecated
- func (x *Verifiers_Tryjob_RetryConfig) GetFailureWeight() int32
- func (x *Verifiers_Tryjob_RetryConfig) GetGlobalQuota() int32
- func (x *Verifiers_Tryjob_RetryConfig) GetSingleQuota() int32
- func (x *Verifiers_Tryjob_RetryConfig) GetTimeoutWeight() int32
- func (x *Verifiers_Tryjob_RetryConfig) GetTransientFailureWeight() int32
- func (*Verifiers_Tryjob_RetryConfig) ProtoMessage()
- func (x *Verifiers_Tryjob_RetryConfig) ProtoReflect() protoreflect.Message
- func (x *Verifiers_Tryjob_RetryConfig) Reset()
- func (x *Verifiers_Tryjob_RetryConfig) String() string
- func (m *Verifiers_Tryjob_RetryConfig) Validate() error
- func (m *Verifiers_Tryjob_RetryConfig) ValidateAll() error
- type Verifiers_Tryjob_RetryConfigMultiError
- type Verifiers_Tryjob_RetryConfigValidationError
- func (e Verifiers_Tryjob_RetryConfigValidationError) Cause() error
- func (e Verifiers_Tryjob_RetryConfigValidationError) Error() string
- func (e Verifiers_Tryjob_RetryConfigValidationError) ErrorName() string
- func (e Verifiers_Tryjob_RetryConfigValidationError) Field() string
- func (e Verifiers_Tryjob_RetryConfigValidationError) Key() bool
- func (e Verifiers_Tryjob_RetryConfigValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var ( CommentLevel_name = map[int32]string{ 0: "COMMENT_LEVEL_UNSET", 1: "COMMENT_LEVEL_FULL", 2: "COMMENT_LEVEL_RESTRICTED", } CommentLevel_value = map[string]int32{ "COMMENT_LEVEL_UNSET": 0, "COMMENT_LEVEL_FULL": 1, "COMMENT_LEVEL_RESTRICTED": 2, } )
Enum value maps for CommentLevel.
var ( Toggle_name = map[int32]string{ 0: "UNSET", 1: "YES", 2: "NO", } Toggle_value = map[string]int32{ "UNSET": 0, "YES": 1, "NO": 2, } )
Enum value maps for Toggle.
var ( Verifiers_GerritCQAbility_CQAction_name = map[int32]string{ 0: "UNSET", 1: "DRY_RUN", 2: "COMMIT", } Verifiers_GerritCQAbility_CQAction_value = map[string]int32{ "UNSET": 0, "DRY_RUN": 1, "COMMIT": 2, } )
Enum value maps for Verifiers_GerritCQAbility_CQAction.
var File_go_chromium_org_luci_cv_api_config_v2_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CombineCLs ¶
type CombineCLs struct { // Roughly, how long CQ waits for CQ to be triggered on each of the related // CLs. // // Must be greater than 10s. // 30s is recommended. // // Technically precise definition is time to wait since the latest CL among // related ones receives CQ+1/2 vote before starting actual attempt. // // For example, during this delay, a CQ vote may be added on another CL // which depends on previously CQ-ed CL in this not-yet-started attempt. Then, // CQ would extend the attempt with additional CL and reset the waiting // counter. // // Additional implication is that a standalone CL w/o any other relations to // other CLs will need to wait this much time before CQ would start processing // it (i.e., before it triggers first tryjob). StabilizationDelay *durationpb.Duration `protobuf:"bytes,1,opt,name=stabilization_delay,json=stabilizationDelay,proto3" json:"stabilization_delay,omitempty"` // contains filtered or unexported fields }
CombineCLs defines how CQ works with >1 CL per attempt.
Dependencies between CLs are either implicit via Git child->parent relationship (e.g. stacked CLs in Gerrit) or explicit via "CQ-Depend:" footer in CL description (next to Change-Id:). "CQ-Depend" may span across repositories and even Gerrit hosts. For example, a CL on https://pdfium-review.googlesource.com may declare dependency on https://chromium-review.googlesource.com/1111111 by adding this footer:
CQ-Depend: chromium:1111111
The "chromium" part means that 1111111 is on the chromium-review.googlesource.com host. It can be omitted if dependency is on the same host as the CL depending on it.
CQ-Depend alone or with Git dependencies may form cycles, which is useful to require CQ to test & submit all CLs in a cycle at the same time, never alone.
A user must vote on CQ label on **each CL** individually. Since it can't be instantaneous, `stabilization_delay` controls how long CQ waits for all CQ+1/2 votes before computing maximal expanded set of CLs and starting the attempt.
For any CL with CQ+1/2 vote, each of its dependency must have the same CQ vote and be configured for CQ **in the same config group**, else CQ would abort the attempt with appropriate error message.
Each tryjob CQ triggers via Buildbucket will be associated with each CL of the attempt via `gerrit_changes` parameter of Buildbucket. These changes are then available to a build as it is being executed. If ran via recipes, the `ordered_gerrit_changes` property of https://chromium.googlesource.com/infra/luci/recipes-py/+/HEAD/README.recipes.md#class-cqapi_recipeapi can be used to CLs in the right order.
WARNING: When submitting CLs, CQ can not do so atomically (all submitted or none submitted) because Gerrit doesn't support this even for the same repo.
func (*CombineCLs) Descriptor
deprecated
func (*CombineCLs) Descriptor() ([]byte, []int)
Deprecated: Use CombineCLs.ProtoReflect.Descriptor instead.
func (*CombineCLs) GetStabilizationDelay ¶
func (x *CombineCLs) GetStabilizationDelay() *durationpb.Duration
func (*CombineCLs) ProtoMessage ¶
func (*CombineCLs) ProtoMessage()
func (*CombineCLs) ProtoReflect ¶
func (x *CombineCLs) ProtoReflect() protoreflect.Message
func (*CombineCLs) Reset ¶
func (x *CombineCLs) Reset()
func (*CombineCLs) String ¶
func (x *CombineCLs) String() string
func (*CombineCLs) Validate ¶
func (m *CombineCLs) Validate() error
Validate checks the field values on CombineCLs with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CombineCLs) ValidateAll ¶
func (m *CombineCLs) ValidateAll() error
ValidateAll checks the field values on CombineCLs with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CombineCLsMultiError, or nil if none found.
type CombineCLsMultiError ¶
type CombineCLsMultiError []error
CombineCLsMultiError is an error wrapping multiple validation errors returned by CombineCLs.ValidateAll() if the designated constraints aren't met.
func (CombineCLsMultiError) AllErrors ¶
func (m CombineCLsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CombineCLsMultiError) Error ¶
func (m CombineCLsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CombineCLsValidationError ¶
type CombineCLsValidationError struct {
// contains filtered or unexported fields
}
CombineCLsValidationError is the validation error returned by CombineCLs.Validate if the designated constraints aren't met.
func (CombineCLsValidationError) Cause ¶
func (e CombineCLsValidationError) Cause() error
Cause function returns cause value.
func (CombineCLsValidationError) Error ¶
func (e CombineCLsValidationError) Error() string
Error satisfies the builtin error interface
func (CombineCLsValidationError) ErrorName ¶
func (e CombineCLsValidationError) ErrorName() string
ErrorName returns error name.
func (CombineCLsValidationError) Field ¶
func (e CombineCLsValidationError) Field() string
Field function returns field value.
func (CombineCLsValidationError) Key ¶
func (e CombineCLsValidationError) Key() bool
Key function returns key value.
func (CombineCLsValidationError) Reason ¶
func (e CombineCLsValidationError) Reason() string
Reason function returns reason value.
type CommentLevel ¶
type CommentLevel int32
Determines how visible the results of a build for this builder are in Gerrit comments.
This doesn't affect the buildbucket plugin (green/red chips).
const ( // Currently default to full visibility. CommentLevel_COMMENT_LEVEL_UNSET CommentLevel = 0 // The CQ reports the summary markdown and a link to the buildbucket build id // in Milo with the builder name in the URL in a Gerrit comment. CommentLevel_COMMENT_LEVEL_FULL CommentLevel = 1 // The CQ reports a generic "Build failed: https://ci.chromium.org/b/1234" // with no summary markdown. CommentLevel_COMMENT_LEVEL_RESTRICTED CommentLevel = 2 )
func (CommentLevel) Descriptor ¶
func (CommentLevel) Descriptor() protoreflect.EnumDescriptor
func (CommentLevel) Enum ¶
func (x CommentLevel) Enum() *CommentLevel
func (CommentLevel) EnumDescriptor
deprecated
func (CommentLevel) EnumDescriptor() ([]byte, []int)
Deprecated: Use CommentLevel.Descriptor instead.
func (CommentLevel) Number ¶
func (x CommentLevel) Number() protoreflect.EnumNumber
func (CommentLevel) String ¶
func (x CommentLevel) String() string
func (CommentLevel) Type ¶
func (CommentLevel) Type() protoreflect.EnumType
type Config ¶
type Config struct { // Deprecated. Ignored. Do not use. // See also https://crbug.com/1208569 to implement an alternative. // // Deprecated: Marked as deprecated in go.chromium.org/luci/cv/api/config/v2/config.proto. DrainingStartTime string `protobuf:"bytes,1,opt,name=draining_start_time,json=drainingStartTime,proto3" json:"draining_start_time,omitempty"` // Optional. // // Originally, this was used to specify the URL of the CQ status app where // users have access to their Run details. Currently, with the migration // from CQ to LUCI CV, this field no longer serves as the same meaning, // but is used to decide the visibility of the Run details via LUCI CV UI at // https://luci-change-verifier.appspot.com/ui/recents // // This field accepts the following values: // - "chromium-cq-status.appspot.com": all Runs in this Project are public. // - "internal-cq-status.appspot.com": all Runs in this Project are visible // to Googler only. // // Note that the Run details page contains the name of the builders launched // to verify CL(s). Therefore, if this Project launches internal builders for // public repos and the builder names are confidential, please don't // use public host. // // Deprecated: Marked as deprecated in go.chromium.org/luci/cv/api/config/v2/config.proto. CqStatusHost string `protobuf:"bytes,2,opt,name=cq_status_host,json=cqStatusHost,proto3" json:"cq_status_host,omitempty"` // Optional options for how CLs should be submitted. SubmitOptions *SubmitOptions `protobuf:"bytes,3,opt,name=submit_options,json=submitOptions,proto3" json:"submit_options,omitempty"` // At least 1 ConfigGroup is required. ConfigGroups []*ConfigGroup `protobuf:"bytes,4,rep,name=config_groups,json=configGroups,proto3" json:"config_groups,omitempty"` // Deprecated. Ignored. Do not use. // // Deprecated: Marked as deprecated in go.chromium.org/luci/cv/api/config/v2/config.proto. ProjectScopedAccount Toggle `` /* 146-byte string literal not displayed */ // If true, all linked accounts and the primary accounts will share the same // permission from LUCI CV's PoV. // // For example, if user has primary account as x@chromium.org and links it // to x@google.com in Gerrit, even though only x@google.com is granted // the permission to trigger CQ dry run in the configuration, LUCI CV will // allow x@chromium.org to trigger CQ dryrun. // // If enabled, the project scoped service account MUST have "Modify Account" // capabilities to see the linked Gerrit accounts. HonorGerritLinkedAccounts bool `` /* 141-byte string literal not displayed */ // contains filtered or unexported fields }
This message describes a CQ configuration.
The config file commit-queue.cfg should be stored in the config directory of your project, alongside cr-buildbucket.cfg.
Pro-tip: a command line tool exists to validate a locally generated .cfg file and verify that it matches arbitrary given CLs as expected. See https://chromium.googlesource.com/infra/luci/luci-go/+/refs/heads/main/cv/#luci-cv-command-line-utils
func (*Config) Descriptor
deprecated
func (*Config) GetConfigGroups ¶
func (x *Config) GetConfigGroups() []*ConfigGroup
func (*Config) GetCqStatusHost
deprecated
func (*Config) GetDrainingStartTime
deprecated
func (*Config) GetHonorGerritLinkedAccounts ¶
func (*Config) GetProjectScopedAccount
deprecated
func (*Config) GetSubmitOptions ¶
func (x *Config) GetSubmitOptions() *SubmitOptions
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
func (*Config) Validate ¶
Validate checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Config) ValidateAll ¶
ValidateAll checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigMultiError, or nil if none found.
type ConfigGroup ¶
type ConfigGroup struct { // The human- and machine-readable name (unique within this project) of this // config group. This is used in messages posted to users and in monitoring // data. Must match regex "^[a-zA-Z][a-zA-Z0-9_-]*$". Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` // At least 1 Gerrit instance with repositories to work with is required. Gerrit []*ConfigGroup_Gerrit `protobuf:"bytes,1,rep,name=gerrit,proto3" json:"gerrit,omitempty"` // Optional. If specified, CQ will consider sets of dependent CLs to test and // submit at the same time. // // Typical use-case is testing & submitting changes to multiple repos at the // same time, in which case all such repos must be declared up-front in // `Gerrit` part of this config_group. // // Not allowed to be used together with // submit_options.allow_submit_with_open_deps=true. CombineCls *CombineCLs `protobuf:"bytes,4,opt,name=combine_cls,json=combineCls,proto3" json:"combine_cls,omitempty"` // Defines how to verify a CL before submitting it. Required. Verifiers *Verifiers `protobuf:"bytes,2,opt,name=verifiers,proto3" json:"verifiers,omitempty"` // If set, this ConfigGroup will be used if no other ConfigGroup matches. // // At most 1 config_group can be YES. // // Example use is to define specific config_group for refs/heads/main, // and fallback one for refs/heads/* which will pick up all CLs on // non-main branches. // // TODO(crbug/966115): provide a better solution. Fallback Toggle `protobuf:"varint,5,opt,name=fallback,proto3,enum=cv.config.Toggle" json:"fallback,omitempty"` // Optional. Additional run modes supported besides standard DRY_RUN and // FULL_RUN. // // If specified, the order matters. CQ will create the Run with the first // mode for which triggering conditions are fulfilled. If there is no such // mode, CQ will fallback to standard DRY_RUN or FULL_RUN. // // All the mode names must be unique. AdditionalModes []*Mode `protobuf:"bytes,7,rep,name=additional_modes,json=additionalModes,proto3" json:"additional_modes,omitempty"` // Per-user limits. // // At the time of a Run creation, CV will iterate `user_limits` and apply the // first applicable limit to the Run. If none of the limit(s) are applicable, // CV will apply `user_limits_default` to the run. UserLimits []*UserLimit `protobuf:"bytes,8,rep,name=user_limits,json=userLimits,proto3" json:"user_limits,omitempty"` // Default per-user limit. // // If CV couldn't find an applicable limit from `user_limits`, this limit // will be applied. UserLimitDefault *UserLimit `protobuf:"bytes,9,opt,name=user_limit_default,json=userLimitDefault,proto3" json:"user_limit_default,omitempty"` // PostActions to be performed on a Run completion. // // On a Run completion, all the post actions with matching conditions will // be executed. // // All actions must have a unique name in the list. PostActions []*ConfigGroup_PostAction `protobuf:"bytes,10,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` // TryjobExperiments that will be conditionally enabled for Tryjobs. TryjobExperiments []*ConfigGroup_TryjobExperiment `protobuf:"bytes,11,rep,name=tryjob_experiments,json=tryjobExperiments,proto3" json:"tryjob_experiments,omitempty"` // contains filtered or unexported fields }
ConfigGroup allows one to share single verifiers config across a set of Gerrit repositories, which may be in different Gerrit installations.
func (*ConfigGroup) Descriptor
deprecated
func (*ConfigGroup) Descriptor() ([]byte, []int)
Deprecated: Use ConfigGroup.ProtoReflect.Descriptor instead.
func (*ConfigGroup) GetAdditionalModes ¶
func (x *ConfigGroup) GetAdditionalModes() []*Mode
func (*ConfigGroup) GetCombineCls ¶
func (x *ConfigGroup) GetCombineCls() *CombineCLs
func (*ConfigGroup) GetFallback ¶
func (x *ConfigGroup) GetFallback() Toggle
func (*ConfigGroup) GetGerrit ¶
func (x *ConfigGroup) GetGerrit() []*ConfigGroup_Gerrit
func (*ConfigGroup) GetName ¶
func (x *ConfigGroup) GetName() string
func (*ConfigGroup) GetPostActions ¶
func (x *ConfigGroup) GetPostActions() []*ConfigGroup_PostAction
func (*ConfigGroup) GetTryjobExperiments ¶
func (x *ConfigGroup) GetTryjobExperiments() []*ConfigGroup_TryjobExperiment
func (*ConfigGroup) GetUserLimitDefault ¶
func (x *ConfigGroup) GetUserLimitDefault() *UserLimit
func (*ConfigGroup) GetUserLimits ¶
func (x *ConfigGroup) GetUserLimits() []*UserLimit
func (*ConfigGroup) GetVerifiers ¶
func (x *ConfigGroup) GetVerifiers() *Verifiers
func (*ConfigGroup) ProtoMessage ¶
func (*ConfigGroup) ProtoMessage()
func (*ConfigGroup) ProtoReflect ¶
func (x *ConfigGroup) ProtoReflect() protoreflect.Message
func (*ConfigGroup) Reset ¶
func (x *ConfigGroup) Reset()
func (*ConfigGroup) String ¶
func (x *ConfigGroup) String() string
func (*ConfigGroup) Validate ¶
func (m *ConfigGroup) Validate() error
Validate checks the field values on ConfigGroup with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ConfigGroup) ValidateAll ¶
func (m *ConfigGroup) ValidateAll() error
ValidateAll checks the field values on ConfigGroup with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigGroupMultiError, or nil if none found.
type ConfigGroupMultiError ¶
type ConfigGroupMultiError []error
ConfigGroupMultiError is an error wrapping multiple validation errors returned by ConfigGroup.ValidateAll() if the designated constraints aren't met.
func (ConfigGroupMultiError) AllErrors ¶
func (m ConfigGroupMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConfigGroupMultiError) Error ¶
func (m ConfigGroupMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConfigGroupValidationError ¶
type ConfigGroupValidationError struct {
// contains filtered or unexported fields
}
ConfigGroupValidationError is the validation error returned by ConfigGroup.Validate if the designated constraints aren't met.
func (ConfigGroupValidationError) Cause ¶
func (e ConfigGroupValidationError) Cause() error
Cause function returns cause value.
func (ConfigGroupValidationError) Error ¶
func (e ConfigGroupValidationError) Error() string
Error satisfies the builtin error interface
func (ConfigGroupValidationError) ErrorName ¶
func (e ConfigGroupValidationError) ErrorName() string
ErrorName returns error name.
func (ConfigGroupValidationError) Field ¶
func (e ConfigGroupValidationError) Field() string
Field function returns field value.
func (ConfigGroupValidationError) Key ¶
func (e ConfigGroupValidationError) Key() bool
Key function returns key value.
func (ConfigGroupValidationError) Reason ¶
func (e ConfigGroupValidationError) Reason() string
Reason function returns reason value.
type ConfigGroup_Gerrit ¶
type ConfigGroup_Gerrit struct { // Gerrit URL, e.g., https://chromium-review.googlesource.com. // No trailing slashes allowed. Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // Gerrit projects of this Gerrit instance to work with. // // At least 1 required. Projects []*ConfigGroup_Gerrit_Project `protobuf:"bytes,2,rep,name=projects,proto3" json:"projects,omitempty"` // contains filtered or unexported fields }
Enumerates repositories on a Gerrit instance for which CQ should work.
func (*ConfigGroup_Gerrit) Descriptor
deprecated
func (*ConfigGroup_Gerrit) Descriptor() ([]byte, []int)
Deprecated: Use ConfigGroup_Gerrit.ProtoReflect.Descriptor instead.
func (*ConfigGroup_Gerrit) GetProjects ¶
func (x *ConfigGroup_Gerrit) GetProjects() []*ConfigGroup_Gerrit_Project
func (*ConfigGroup_Gerrit) GetUrl ¶
func (x *ConfigGroup_Gerrit) GetUrl() string
func (*ConfigGroup_Gerrit) ProtoMessage ¶
func (*ConfigGroup_Gerrit) ProtoMessage()
func (*ConfigGroup_Gerrit) ProtoReflect ¶
func (x *ConfigGroup_Gerrit) ProtoReflect() protoreflect.Message
func (*ConfigGroup_Gerrit) Reset ¶
func (x *ConfigGroup_Gerrit) Reset()
func (*ConfigGroup_Gerrit) String ¶
func (x *ConfigGroup_Gerrit) String() string
func (*ConfigGroup_Gerrit) Validate ¶
func (m *ConfigGroup_Gerrit) Validate() error
Validate checks the field values on ConfigGroup_Gerrit with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ConfigGroup_Gerrit) ValidateAll ¶
func (m *ConfigGroup_Gerrit) ValidateAll() error
ValidateAll checks the field values on ConfigGroup_Gerrit with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigGroup_GerritMultiError, or nil if none found.
type ConfigGroup_GerritMultiError ¶
type ConfigGroup_GerritMultiError []error
ConfigGroup_GerritMultiError is an error wrapping multiple validation errors returned by ConfigGroup_Gerrit.ValidateAll() if the designated constraints aren't met.
func (ConfigGroup_GerritMultiError) AllErrors ¶
func (m ConfigGroup_GerritMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConfigGroup_GerritMultiError) Error ¶
func (m ConfigGroup_GerritMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConfigGroup_GerritValidationError ¶
type ConfigGroup_GerritValidationError struct {
// contains filtered or unexported fields
}
ConfigGroup_GerritValidationError is the validation error returned by ConfigGroup_Gerrit.Validate if the designated constraints aren't met.
func (ConfigGroup_GerritValidationError) Cause ¶
func (e ConfigGroup_GerritValidationError) Cause() error
Cause function returns cause value.
func (ConfigGroup_GerritValidationError) Error ¶
func (e ConfigGroup_GerritValidationError) Error() string
Error satisfies the builtin error interface
func (ConfigGroup_GerritValidationError) ErrorName ¶
func (e ConfigGroup_GerritValidationError) ErrorName() string
ErrorName returns error name.
func (ConfigGroup_GerritValidationError) Field ¶
func (e ConfigGroup_GerritValidationError) Field() string
Field function returns field value.
func (ConfigGroup_GerritValidationError) Key ¶
func (e ConfigGroup_GerritValidationError) Key() bool
Key function returns key value.
func (ConfigGroup_GerritValidationError) Reason ¶
func (e ConfigGroup_GerritValidationError) Reason() string
Reason function returns reason value.
type ConfigGroup_Gerrit_Project ¶
type ConfigGroup_Gerrit_Project struct { // Repository name inside Gerrit host. Required. // // No leading or trailing slashes allowed, no '.git' at the end. // 'a/' prefix is also not allowed (it's used on *.googlesource.com for // forcing authentication). // // Examples on https://chromium-review.googlesource.com: // // catapult // chromium/src // chromium/tools/depot_tools Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Limit CLs in this repo to only these refs. Required. // // If not specified, defaults to "refs/heads/master". // // NOTE: your Gerrit admin must configure Gerrit ACLs such that CQ has // read access to these refs, otherwise your users will be waiting for CQ // to act on their CLs forever. // // Regular expression is validated by https://github.com/google/re2 library. // // NOTE: Git globs aren't supported. Convert them to a regular expression, // e.g., Git glob "refs/heads/*" should be "refs/heads/[^/]+". // However, users typically expect "refs/heads/.+", since expectation is // that every typical Git branch to be CQ-able, including // "refs/heads/experimental/foobar". RefRegexp []string `protobuf:"bytes,2,rep,name=ref_regexp,json=refRegexp,proto3" json:"ref_regexp,omitempty"` // Exclude matching refs in this repo. Optional. // // If a ref is matches at least one of the ref_regexp_exclude, // then it is ignored by this config group regardless of ref_regexp. // // The syntax is the same as for ref_regexp. RefRegexpExclude []string `protobuf:"bytes,3,rep,name=ref_regexp_exclude,json=refRegexpExclude,proto3" json:"ref_regexp_exclude,omitempty"` // contains filtered or unexported fields }
func (*ConfigGroup_Gerrit_Project) Descriptor
deprecated
func (*ConfigGroup_Gerrit_Project) Descriptor() ([]byte, []int)
Deprecated: Use ConfigGroup_Gerrit_Project.ProtoReflect.Descriptor instead.
func (*ConfigGroup_Gerrit_Project) GetName ¶
func (x *ConfigGroup_Gerrit_Project) GetName() string
func (*ConfigGroup_Gerrit_Project) GetRefRegexp ¶
func (x *ConfigGroup_Gerrit_Project) GetRefRegexp() []string
func (*ConfigGroup_Gerrit_Project) GetRefRegexpExclude ¶
func (x *ConfigGroup_Gerrit_Project) GetRefRegexpExclude() []string
func (*ConfigGroup_Gerrit_Project) ProtoMessage ¶
func (*ConfigGroup_Gerrit_Project) ProtoMessage()
func (*ConfigGroup_Gerrit_Project) ProtoReflect ¶
func (x *ConfigGroup_Gerrit_Project) ProtoReflect() protoreflect.Message
func (*ConfigGroup_Gerrit_Project) Reset ¶
func (x *ConfigGroup_Gerrit_Project) Reset()
func (*ConfigGroup_Gerrit_Project) String ¶
func (x *ConfigGroup_Gerrit_Project) String() string
func (*ConfigGroup_Gerrit_Project) Validate ¶
func (m *ConfigGroup_Gerrit_Project) Validate() error
Validate checks the field values on ConfigGroup_Gerrit_Project with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ConfigGroup_Gerrit_Project) ValidateAll ¶
func (m *ConfigGroup_Gerrit_Project) ValidateAll() error
ValidateAll checks the field values on ConfigGroup_Gerrit_Project with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigGroup_Gerrit_ProjectMultiError, or nil if none found.
type ConfigGroup_Gerrit_ProjectMultiError ¶
type ConfigGroup_Gerrit_ProjectMultiError []error
ConfigGroup_Gerrit_ProjectMultiError is an error wrapping multiple validation errors returned by ConfigGroup_Gerrit_Project.ValidateAll() if the designated constraints aren't met.
func (ConfigGroup_Gerrit_ProjectMultiError) AllErrors ¶
func (m ConfigGroup_Gerrit_ProjectMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConfigGroup_Gerrit_ProjectMultiError) Error ¶
func (m ConfigGroup_Gerrit_ProjectMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConfigGroup_Gerrit_ProjectValidationError ¶
type ConfigGroup_Gerrit_ProjectValidationError struct {
// contains filtered or unexported fields
}
ConfigGroup_Gerrit_ProjectValidationError is the validation error returned by ConfigGroup_Gerrit_Project.Validate if the designated constraints aren't met.
func (ConfigGroup_Gerrit_ProjectValidationError) Cause ¶
func (e ConfigGroup_Gerrit_ProjectValidationError) Cause() error
Cause function returns cause value.
func (ConfigGroup_Gerrit_ProjectValidationError) Error ¶
func (e ConfigGroup_Gerrit_ProjectValidationError) Error() string
Error satisfies the builtin error interface
func (ConfigGroup_Gerrit_ProjectValidationError) ErrorName ¶
func (e ConfigGroup_Gerrit_ProjectValidationError) ErrorName() string
ErrorName returns error name.
func (ConfigGroup_Gerrit_ProjectValidationError) Field ¶
func (e ConfigGroup_Gerrit_ProjectValidationError) Field() string
Field function returns field value.
func (ConfigGroup_Gerrit_ProjectValidationError) Key ¶
func (e ConfigGroup_Gerrit_ProjectValidationError) Key() bool
Key function returns key value.
func (ConfigGroup_Gerrit_ProjectValidationError) Reason ¶
func (e ConfigGroup_Gerrit_ProjectValidationError) Reason() string
Reason function returns reason value.
type ConfigGroup_PostAction ¶
type ConfigGroup_PostAction struct { // Name of the post action. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // If at least one of the conditions is met, // the action will be triggered on a Run completion. Conditions []*ConfigGroup_PostAction_TriggeringCondition `protobuf:"bytes,2,rep,name=conditions,proto3" json:"conditions,omitempty"` // Types that are assignable to Action: // // *ConfigGroup_PostAction_VoteGerritLabels_ Action isConfigGroup_PostAction_Action `protobuf_oneof:"action"` // contains filtered or unexported fields }
Action to be performed on a Run completion.
func (*ConfigGroup_PostAction) Descriptor
deprecated
func (*ConfigGroup_PostAction) Descriptor() ([]byte, []int)
Deprecated: Use ConfigGroup_PostAction.ProtoReflect.Descriptor instead.
func (*ConfigGroup_PostAction) GetAction ¶
func (m *ConfigGroup_PostAction) GetAction() isConfigGroup_PostAction_Action
func (*ConfigGroup_PostAction) GetConditions ¶
func (x *ConfigGroup_PostAction) GetConditions() []*ConfigGroup_PostAction_TriggeringCondition
func (*ConfigGroup_PostAction) GetName ¶
func (x *ConfigGroup_PostAction) GetName() string
func (*ConfigGroup_PostAction) GetVoteGerritLabels ¶
func (x *ConfigGroup_PostAction) GetVoteGerritLabels() *ConfigGroup_PostAction_VoteGerritLabels
func (*ConfigGroup_PostAction) ProtoMessage ¶
func (*ConfigGroup_PostAction) ProtoMessage()
func (*ConfigGroup_PostAction) ProtoReflect ¶
func (x *ConfigGroup_PostAction) ProtoReflect() protoreflect.Message
func (*ConfigGroup_PostAction) Reset ¶
func (x *ConfigGroup_PostAction) Reset()
func (*ConfigGroup_PostAction) String ¶
func (x *ConfigGroup_PostAction) String() string
func (*ConfigGroup_PostAction) Validate ¶
func (m *ConfigGroup_PostAction) Validate() error
Validate checks the field values on ConfigGroup_PostAction with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ConfigGroup_PostAction) ValidateAll ¶
func (m *ConfigGroup_PostAction) ValidateAll() error
ValidateAll checks the field values on ConfigGroup_PostAction with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigGroup_PostActionMultiError, or nil if none found.
type ConfigGroup_PostActionMultiError ¶
type ConfigGroup_PostActionMultiError []error
ConfigGroup_PostActionMultiError is an error wrapping multiple validation errors returned by ConfigGroup_PostAction.ValidateAll() if the designated constraints aren't met.
func (ConfigGroup_PostActionMultiError) AllErrors ¶
func (m ConfigGroup_PostActionMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConfigGroup_PostActionMultiError) Error ¶
func (m ConfigGroup_PostActionMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConfigGroup_PostActionValidationError ¶
type ConfigGroup_PostActionValidationError struct {
// contains filtered or unexported fields
}
ConfigGroup_PostActionValidationError is the validation error returned by ConfigGroup_PostAction.Validate if the designated constraints aren't met.
func (ConfigGroup_PostActionValidationError) Cause ¶
func (e ConfigGroup_PostActionValidationError) Cause() error
Cause function returns cause value.
func (ConfigGroup_PostActionValidationError) Error ¶
func (e ConfigGroup_PostActionValidationError) Error() string
Error satisfies the builtin error interface
func (ConfigGroup_PostActionValidationError) ErrorName ¶
func (e ConfigGroup_PostActionValidationError) ErrorName() string
ErrorName returns error name.
func (ConfigGroup_PostActionValidationError) Field ¶
func (e ConfigGroup_PostActionValidationError) Field() string
Field function returns field value.
func (ConfigGroup_PostActionValidationError) Key ¶
func (e ConfigGroup_PostActionValidationError) Key() bool
Key function returns key value.
func (ConfigGroup_PostActionValidationError) Reason ¶
func (e ConfigGroup_PostActionValidationError) Reason() string
Reason function returns reason value.
type ConfigGroup_PostAction_TriggeringCondition ¶
type ConfigGroup_PostAction_TriggeringCondition struct { // Name of the mode to be matched. // // Must be FULL_RUN, DRY_RUN, NEW_PATCHSET_RUN, or one of the additional // modes configured. Mode string `protobuf:"bytes,1,opt,name=mode,proto3" json:"mode,omitempty"` // Statuses to trigger the action on. // // Must be terminal statuses. // Duplicates are not allowed. Statuses []v1.Run_Status `protobuf:"varint,2,rep,packed,name=statuses,proto3,enum=cv.v1.Run_Status" json:"statuses,omitempty"` // contains filtered or unexported fields }
Condition to be met for the action to be triggered.
func (*ConfigGroup_PostAction_TriggeringCondition) Descriptor
deprecated
func (*ConfigGroup_PostAction_TriggeringCondition) Descriptor() ([]byte, []int)
Deprecated: Use ConfigGroup_PostAction_TriggeringCondition.ProtoReflect.Descriptor instead.
func (*ConfigGroup_PostAction_TriggeringCondition) GetMode ¶
func (x *ConfigGroup_PostAction_TriggeringCondition) GetMode() string
func (*ConfigGroup_PostAction_TriggeringCondition) GetStatuses ¶
func (x *ConfigGroup_PostAction_TriggeringCondition) GetStatuses() []v1.Run_Status
func (*ConfigGroup_PostAction_TriggeringCondition) ProtoMessage ¶
func (*ConfigGroup_PostAction_TriggeringCondition) ProtoMessage()
func (*ConfigGroup_PostAction_TriggeringCondition) ProtoReflect ¶
func (x *ConfigGroup_PostAction_TriggeringCondition) ProtoReflect() protoreflect.Message
func (*ConfigGroup_PostAction_TriggeringCondition) Reset ¶
func (x *ConfigGroup_PostAction_TriggeringCondition) Reset()
func (*ConfigGroup_PostAction_TriggeringCondition) String ¶
func (x *ConfigGroup_PostAction_TriggeringCondition) String() string
func (*ConfigGroup_PostAction_TriggeringCondition) Validate ¶
func (m *ConfigGroup_PostAction_TriggeringCondition) Validate() error
Validate checks the field values on ConfigGroup_PostAction_TriggeringCondition with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ConfigGroup_PostAction_TriggeringCondition) ValidateAll ¶
func (m *ConfigGroup_PostAction_TriggeringCondition) ValidateAll() error
ValidateAll checks the field values on ConfigGroup_PostAction_TriggeringCondition with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigGroup_PostAction_TriggeringConditionMultiError, or nil if none found.
type ConfigGroup_PostAction_TriggeringConditionMultiError ¶
type ConfigGroup_PostAction_TriggeringConditionMultiError []error
ConfigGroup_PostAction_TriggeringConditionMultiError is an error wrapping multiple validation errors returned by ConfigGroup_PostAction_TriggeringCondition.ValidateAll() if the designated constraints aren't met.
func (ConfigGroup_PostAction_TriggeringConditionMultiError) AllErrors ¶
func (m ConfigGroup_PostAction_TriggeringConditionMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConfigGroup_PostAction_TriggeringConditionMultiError) Error ¶
func (m ConfigGroup_PostAction_TriggeringConditionMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConfigGroup_PostAction_TriggeringConditionValidationError ¶
type ConfigGroup_PostAction_TriggeringConditionValidationError struct {
// contains filtered or unexported fields
}
ConfigGroup_PostAction_TriggeringConditionValidationError is the validation error returned by ConfigGroup_PostAction_TriggeringCondition.Validate if the designated constraints aren't met.
func (ConfigGroup_PostAction_TriggeringConditionValidationError) Cause ¶
func (e ConfigGroup_PostAction_TriggeringConditionValidationError) Cause() error
Cause function returns cause value.
func (ConfigGroup_PostAction_TriggeringConditionValidationError) Error ¶
func (e ConfigGroup_PostAction_TriggeringConditionValidationError) Error() string
Error satisfies the builtin error interface
func (ConfigGroup_PostAction_TriggeringConditionValidationError) ErrorName ¶
func (e ConfigGroup_PostAction_TriggeringConditionValidationError) ErrorName() string
ErrorName returns error name.
func (ConfigGroup_PostAction_TriggeringConditionValidationError) Field ¶
func (e ConfigGroup_PostAction_TriggeringConditionValidationError) Field() string
Field function returns field value.
func (ConfigGroup_PostAction_TriggeringConditionValidationError) Key ¶
func (e ConfigGroup_PostAction_TriggeringConditionValidationError) Key() bool
Key function returns key value.
func (ConfigGroup_PostAction_TriggeringConditionValidationError) Reason ¶
func (e ConfigGroup_PostAction_TriggeringConditionValidationError) Reason() string
Reason function returns reason value.
type ConfigGroup_PostAction_VoteGerritLabels ¶
type ConfigGroup_PostAction_VoteGerritLabels struct { // All label names must be unique. Votes []*ConfigGroup_PostAction_VoteGerritLabels_Vote `protobuf:"bytes,1,rep,name=votes,proto3" json:"votes,omitempty"` // contains filtered or unexported fields }
Vote Gerrit labels with given values.
func (*ConfigGroup_PostAction_VoteGerritLabels) Descriptor
deprecated
func (*ConfigGroup_PostAction_VoteGerritLabels) Descriptor() ([]byte, []int)
Deprecated: Use ConfigGroup_PostAction_VoteGerritLabels.ProtoReflect.Descriptor instead.
func (*ConfigGroup_PostAction_VoteGerritLabels) GetVotes ¶
func (x *ConfigGroup_PostAction_VoteGerritLabels) GetVotes() []*ConfigGroup_PostAction_VoteGerritLabels_Vote
func (*ConfigGroup_PostAction_VoteGerritLabels) ProtoMessage ¶
func (*ConfigGroup_PostAction_VoteGerritLabels) ProtoMessage()
func (*ConfigGroup_PostAction_VoteGerritLabels) ProtoReflect ¶
func (x *ConfigGroup_PostAction_VoteGerritLabels) ProtoReflect() protoreflect.Message
func (*ConfigGroup_PostAction_VoteGerritLabels) Reset ¶
func (x *ConfigGroup_PostAction_VoteGerritLabels) Reset()
func (*ConfigGroup_PostAction_VoteGerritLabels) String ¶
func (x *ConfigGroup_PostAction_VoteGerritLabels) String() string
func (*ConfigGroup_PostAction_VoteGerritLabels) Validate ¶
func (m *ConfigGroup_PostAction_VoteGerritLabels) Validate() error
Validate checks the field values on ConfigGroup_PostAction_VoteGerritLabels with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ConfigGroup_PostAction_VoteGerritLabels) ValidateAll ¶
func (m *ConfigGroup_PostAction_VoteGerritLabels) ValidateAll() error
ValidateAll checks the field values on ConfigGroup_PostAction_VoteGerritLabels with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigGroup_PostAction_VoteGerritLabelsMultiError, or nil if none found.
type ConfigGroup_PostAction_VoteGerritLabelsMultiError ¶
type ConfigGroup_PostAction_VoteGerritLabelsMultiError []error
ConfigGroup_PostAction_VoteGerritLabelsMultiError is an error wrapping multiple validation errors returned by ConfigGroup_PostAction_VoteGerritLabels.ValidateAll() if the designated constraints aren't met.
func (ConfigGroup_PostAction_VoteGerritLabelsMultiError) AllErrors ¶
func (m ConfigGroup_PostAction_VoteGerritLabelsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConfigGroup_PostAction_VoteGerritLabelsMultiError) Error ¶
func (m ConfigGroup_PostAction_VoteGerritLabelsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConfigGroup_PostAction_VoteGerritLabelsValidationError ¶
type ConfigGroup_PostAction_VoteGerritLabelsValidationError struct {
// contains filtered or unexported fields
}
ConfigGroup_PostAction_VoteGerritLabelsValidationError is the validation error returned by ConfigGroup_PostAction_VoteGerritLabels.Validate if the designated constraints aren't met.
func (ConfigGroup_PostAction_VoteGerritLabelsValidationError) Cause ¶
func (e ConfigGroup_PostAction_VoteGerritLabelsValidationError) Cause() error
Cause function returns cause value.
func (ConfigGroup_PostAction_VoteGerritLabelsValidationError) Error ¶
func (e ConfigGroup_PostAction_VoteGerritLabelsValidationError) Error() string
Error satisfies the builtin error interface
func (ConfigGroup_PostAction_VoteGerritLabelsValidationError) ErrorName ¶
func (e ConfigGroup_PostAction_VoteGerritLabelsValidationError) ErrorName() string
ErrorName returns error name.
func (ConfigGroup_PostAction_VoteGerritLabelsValidationError) Field ¶
func (e ConfigGroup_PostAction_VoteGerritLabelsValidationError) Field() string
Field function returns field value.
func (ConfigGroup_PostAction_VoteGerritLabelsValidationError) Key ¶
func (e ConfigGroup_PostAction_VoteGerritLabelsValidationError) Key() bool
Key function returns key value.
func (ConfigGroup_PostAction_VoteGerritLabelsValidationError) Reason ¶
func (e ConfigGroup_PostAction_VoteGerritLabelsValidationError) Reason() string
Reason function returns reason value.
type ConfigGroup_PostAction_VoteGerritLabels_ ¶
type ConfigGroup_PostAction_VoteGerritLabels_ struct {
VoteGerritLabels *ConfigGroup_PostAction_VoteGerritLabels `protobuf:"bytes,3,opt,name=vote_gerrit_labels,json=voteGerritLabels,proto3,oneof"`
}
type ConfigGroup_PostAction_VoteGerritLabels_Vote ¶
type ConfigGroup_PostAction_VoteGerritLabels_Vote struct { // Gerrit label name Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Value to set on the label Value int32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*ConfigGroup_PostAction_VoteGerritLabels_Vote) Descriptor
deprecated
func (*ConfigGroup_PostAction_VoteGerritLabels_Vote) Descriptor() ([]byte, []int)
Deprecated: Use ConfigGroup_PostAction_VoteGerritLabels_Vote.ProtoReflect.Descriptor instead.
func (*ConfigGroup_PostAction_VoteGerritLabels_Vote) GetName ¶
func (x *ConfigGroup_PostAction_VoteGerritLabels_Vote) GetName() string
func (*ConfigGroup_PostAction_VoteGerritLabels_Vote) GetValue ¶
func (x *ConfigGroup_PostAction_VoteGerritLabels_Vote) GetValue() int32
func (*ConfigGroup_PostAction_VoteGerritLabels_Vote) ProtoMessage ¶
func (*ConfigGroup_PostAction_VoteGerritLabels_Vote) ProtoMessage()
func (*ConfigGroup_PostAction_VoteGerritLabels_Vote) ProtoReflect ¶
func (x *ConfigGroup_PostAction_VoteGerritLabels_Vote) ProtoReflect() protoreflect.Message
func (*ConfigGroup_PostAction_VoteGerritLabels_Vote) Reset ¶
func (x *ConfigGroup_PostAction_VoteGerritLabels_Vote) Reset()
func (*ConfigGroup_PostAction_VoteGerritLabels_Vote) String ¶
func (x *ConfigGroup_PostAction_VoteGerritLabels_Vote) String() string
func (*ConfigGroup_PostAction_VoteGerritLabels_Vote) Validate ¶
func (m *ConfigGroup_PostAction_VoteGerritLabels_Vote) Validate() error
Validate checks the field values on ConfigGroup_PostAction_VoteGerritLabels_Vote with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ConfigGroup_PostAction_VoteGerritLabels_Vote) ValidateAll ¶
func (m *ConfigGroup_PostAction_VoteGerritLabels_Vote) ValidateAll() error
ValidateAll checks the field values on ConfigGroup_PostAction_VoteGerritLabels_Vote with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigGroup_PostAction_VoteGerritLabels_VoteMultiError, or nil if none found.
type ConfigGroup_PostAction_VoteGerritLabels_VoteMultiError ¶
type ConfigGroup_PostAction_VoteGerritLabels_VoteMultiError []error
ConfigGroup_PostAction_VoteGerritLabels_VoteMultiError is an error wrapping multiple validation errors returned by ConfigGroup_PostAction_VoteGerritLabels_Vote.ValidateAll() if the designated constraints aren't met.
func (ConfigGroup_PostAction_VoteGerritLabels_VoteMultiError) AllErrors ¶
func (m ConfigGroup_PostAction_VoteGerritLabels_VoteMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConfigGroup_PostAction_VoteGerritLabels_VoteMultiError) Error ¶
func (m ConfigGroup_PostAction_VoteGerritLabels_VoteMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError ¶
type ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError struct {
// contains filtered or unexported fields
}
ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError is the validation error returned by ConfigGroup_PostAction_VoteGerritLabels_Vote.Validate if the designated constraints aren't met.
func (ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError) Cause ¶
func (e ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError) Cause() error
Cause function returns cause value.
func (ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError) Error ¶
func (e ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError) Error() string
Error satisfies the builtin error interface
func (ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError) ErrorName ¶
func (e ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError) ErrorName() string
ErrorName returns error name.
func (ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError) Field ¶
func (e ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError) Field() string
Field function returns field value.
func (ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError) Key ¶
func (e ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError) Key() bool
Key function returns key value.
func (ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError) Reason ¶
func (e ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError) Reason() string
Reason function returns reason value.
type ConfigGroup_TryjobExperiment ¶
type ConfigGroup_TryjobExperiment struct { // Name of the experiment. // // See `experiments` field in // https://pkg.go.dev/go.chromium.org/luci/buildbucket/proto#BuilderConfig Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The condition to meet to enable this experiment. // // The absence of condition means the experiment will be enabled // unconditionally. Condition *ConfigGroup_TryjobExperiment_Condition `protobuf:"bytes,2,opt,name=condition,proto3" json:"condition,omitempty"` // contains filtered or unexported fields }
TryjobExperiment is experiment (e.g. Buildbucket Build experiment) that will be enabled on the Tryjobs of CLs that meet the condition.
TODO(crbug/1440834): Currently this feature has a caveat that a Run with this experiment enabled may reuse the Tryjob from previous Run that doesn't have this experiment enabled. This typically happens to the Run triggered immediately after the config change.
func (*ConfigGroup_TryjobExperiment) Descriptor
deprecated
func (*ConfigGroup_TryjobExperiment) Descriptor() ([]byte, []int)
Deprecated: Use ConfigGroup_TryjobExperiment.ProtoReflect.Descriptor instead.
func (*ConfigGroup_TryjobExperiment) GetCondition ¶
func (x *ConfigGroup_TryjobExperiment) GetCondition() *ConfigGroup_TryjobExperiment_Condition
func (*ConfigGroup_TryjobExperiment) GetName ¶
func (x *ConfigGroup_TryjobExperiment) GetName() string
func (*ConfigGroup_TryjobExperiment) ProtoMessage ¶
func (*ConfigGroup_TryjobExperiment) ProtoMessage()
func (*ConfigGroup_TryjobExperiment) ProtoReflect ¶
func (x *ConfigGroup_TryjobExperiment) ProtoReflect() protoreflect.Message
func (*ConfigGroup_TryjobExperiment) Reset ¶
func (x *ConfigGroup_TryjobExperiment) Reset()
func (*ConfigGroup_TryjobExperiment) String ¶
func (x *ConfigGroup_TryjobExperiment) String() string
func (*ConfigGroup_TryjobExperiment) Validate ¶
func (m *ConfigGroup_TryjobExperiment) Validate() error
Validate checks the field values on ConfigGroup_TryjobExperiment with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ConfigGroup_TryjobExperiment) ValidateAll ¶
func (m *ConfigGroup_TryjobExperiment) ValidateAll() error
ValidateAll checks the field values on ConfigGroup_TryjobExperiment with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigGroup_TryjobExperimentMultiError, or nil if none found.
type ConfigGroup_TryjobExperimentMultiError ¶
type ConfigGroup_TryjobExperimentMultiError []error
ConfigGroup_TryjobExperimentMultiError is an error wrapping multiple validation errors returned by ConfigGroup_TryjobExperiment.ValidateAll() if the designated constraints aren't met.
func (ConfigGroup_TryjobExperimentMultiError) AllErrors ¶
func (m ConfigGroup_TryjobExperimentMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConfigGroup_TryjobExperimentMultiError) Error ¶
func (m ConfigGroup_TryjobExperimentMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConfigGroup_TryjobExperimentValidationError ¶
type ConfigGroup_TryjobExperimentValidationError struct {
// contains filtered or unexported fields
}
ConfigGroup_TryjobExperimentValidationError is the validation error returned by ConfigGroup_TryjobExperiment.Validate if the designated constraints aren't met.
func (ConfigGroup_TryjobExperimentValidationError) Cause ¶
func (e ConfigGroup_TryjobExperimentValidationError) Cause() error
Cause function returns cause value.
func (ConfigGroup_TryjobExperimentValidationError) Error ¶
func (e ConfigGroup_TryjobExperimentValidationError) Error() string
Error satisfies the builtin error interface
func (ConfigGroup_TryjobExperimentValidationError) ErrorName ¶
func (e ConfigGroup_TryjobExperimentValidationError) ErrorName() string
ErrorName returns error name.
func (ConfigGroup_TryjobExperimentValidationError) Field ¶
func (e ConfigGroup_TryjobExperimentValidationError) Field() string
Field function returns field value.
func (ConfigGroup_TryjobExperimentValidationError) Key ¶
func (e ConfigGroup_TryjobExperimentValidationError) Key() bool
Key function returns key value.
func (ConfigGroup_TryjobExperimentValidationError) Reason ¶
func (e ConfigGroup_TryjobExperimentValidationError) Reason() string
Reason function returns reason value.
type ConfigGroup_TryjobExperiment_Condition ¶
type ConfigGroup_TryjobExperiment_Condition struct { // ownerGroupAllowlist is a list of CrIA groups that the owner of the CL // must be a member in any of those groups in order to enable the // experiment. // // If the list is empty, this condition is considered as met. OwnerGroupAllowlist []string `protobuf:"bytes,1,rep,name=owner_group_allowlist,json=ownerGroupAllowlist,proto3" json:"owner_group_allowlist,omitempty"` // contains filtered or unexported fields }
Condition describes the condition for this experiment to be enabled.
func (*ConfigGroup_TryjobExperiment_Condition) Descriptor
deprecated
func (*ConfigGroup_TryjobExperiment_Condition) Descriptor() ([]byte, []int)
Deprecated: Use ConfigGroup_TryjobExperiment_Condition.ProtoReflect.Descriptor instead.
func (*ConfigGroup_TryjobExperiment_Condition) GetOwnerGroupAllowlist ¶
func (x *ConfigGroup_TryjobExperiment_Condition) GetOwnerGroupAllowlist() []string
func (*ConfigGroup_TryjobExperiment_Condition) ProtoMessage ¶
func (*ConfigGroup_TryjobExperiment_Condition) ProtoMessage()
func (*ConfigGroup_TryjobExperiment_Condition) ProtoReflect ¶
func (x *ConfigGroup_TryjobExperiment_Condition) ProtoReflect() protoreflect.Message
func (*ConfigGroup_TryjobExperiment_Condition) Reset ¶
func (x *ConfigGroup_TryjobExperiment_Condition) Reset()
func (*ConfigGroup_TryjobExperiment_Condition) String ¶
func (x *ConfigGroup_TryjobExperiment_Condition) String() string
func (*ConfigGroup_TryjobExperiment_Condition) Validate ¶
func (m *ConfigGroup_TryjobExperiment_Condition) Validate() error
Validate checks the field values on ConfigGroup_TryjobExperiment_Condition with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ConfigGroup_TryjobExperiment_Condition) ValidateAll ¶
func (m *ConfigGroup_TryjobExperiment_Condition) ValidateAll() error
ValidateAll checks the field values on ConfigGroup_TryjobExperiment_Condition with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigGroup_TryjobExperiment_ConditionMultiError, or nil if none found.
type ConfigGroup_TryjobExperiment_ConditionMultiError ¶
type ConfigGroup_TryjobExperiment_ConditionMultiError []error
ConfigGroup_TryjobExperiment_ConditionMultiError is an error wrapping multiple validation errors returned by ConfigGroup_TryjobExperiment_Condition.ValidateAll() if the designated constraints aren't met.
func (ConfigGroup_TryjobExperiment_ConditionMultiError) AllErrors ¶
func (m ConfigGroup_TryjobExperiment_ConditionMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConfigGroup_TryjobExperiment_ConditionMultiError) Error ¶
func (m ConfigGroup_TryjobExperiment_ConditionMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConfigGroup_TryjobExperiment_ConditionValidationError ¶
type ConfigGroup_TryjobExperiment_ConditionValidationError struct {
// contains filtered or unexported fields
}
ConfigGroup_TryjobExperiment_ConditionValidationError is the validation error returned by ConfigGroup_TryjobExperiment_Condition.Validate if the designated constraints aren't met.
func (ConfigGroup_TryjobExperiment_ConditionValidationError) Cause ¶
func (e ConfigGroup_TryjobExperiment_ConditionValidationError) Cause() error
Cause function returns cause value.
func (ConfigGroup_TryjobExperiment_ConditionValidationError) Error ¶
func (e ConfigGroup_TryjobExperiment_ConditionValidationError) Error() string
Error satisfies the builtin error interface
func (ConfigGroup_TryjobExperiment_ConditionValidationError) ErrorName ¶
func (e ConfigGroup_TryjobExperiment_ConditionValidationError) ErrorName() string
ErrorName returns error name.
func (ConfigGroup_TryjobExperiment_ConditionValidationError) Field ¶
func (e ConfigGroup_TryjobExperiment_ConditionValidationError) Field() string
Field function returns field value.
func (ConfigGroup_TryjobExperiment_ConditionValidationError) Key ¶
func (e ConfigGroup_TryjobExperiment_ConditionValidationError) Key() bool
Key function returns key value.
func (ConfigGroup_TryjobExperiment_ConditionValidationError) Reason ¶
func (e ConfigGroup_TryjobExperiment_ConditionValidationError) Reason() string
Reason function returns reason value.
type ConfigMultiError ¶
type ConfigMultiError []error
ConfigMultiError is an error wrapping multiple validation errors returned by Config.ValidateAll() if the designated constraints aren't met.
func (ConfigMultiError) AllErrors ¶
func (m ConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConfigMultiError) Error ¶
func (m ConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConfigValidationError ¶
type ConfigValidationError struct {
// contains filtered or unexported fields
}
ConfigValidationError is the validation error returned by Config.Validate if the designated constraints aren't met.
func (ConfigValidationError) Cause ¶
func (e ConfigValidationError) Cause() error
Cause function returns cause value.
func (ConfigValidationError) Error ¶
func (e ConfigValidationError) Error() string
Error satisfies the builtin error interface
func (ConfigValidationError) ErrorName ¶
func (e ConfigValidationError) ErrorName() string
ErrorName returns error name.
func (ConfigValidationError) Field ¶
func (e ConfigValidationError) Field() string
Field function returns field value.
func (ConfigValidationError) Key ¶
func (e ConfigValidationError) Key() bool
Key function returns key value.
func (ConfigValidationError) Reason ¶
func (e ConfigValidationError) Reason() string
Reason function returns reason value.
type Mode ¶
type Mode struct { // Name of the mode. // // Must match regex "^[A-Z][A-Z_]{0,39}$". // Must not be one of the reserved Run modes // - DRY_RUN // - FULL_RUN // - NEW_PATCHSET_RUN Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Value of Commit-Queue label that triggers a run in the mode. // // Must be either 1 or 2. If 2 is provided, LUCI CV will follow the // FULL_RUN behavior that it will submit CL(s) in this run after all // tryjobs have passed. CqLabelValue int32 `protobuf:"varint,2,opt,name=cq_label_value,json=cqLabelValue,proto3" json:"cq_label_value,omitempty"` // Label that MUST also be voted with `triggering_value` in addition to // "Commit-Queue" label to trigger a run in the mode. // // Must not be "Commit-Queue" TriggeringLabel string `protobuf:"bytes,3,opt,name=triggering_label,json=triggeringLabel,proto3" json:"triggering_label,omitempty"` // Value of the `triggering_label` that triggers a run in the mode. // // Must be > 0. TriggeringValue int32 `protobuf:"varint,4,opt,name=triggering_value,json=triggeringValue,proto3" json:"triggering_value,omitempty"` // contains filtered or unexported fields }
Mode defines a CQ Run mode and how it can be triggered.
The mode ACL check will be same as dry run (i.e. use `dry_run_access_list`) if 1 is provided for `cq_label_value`. Otherwise, the check will the same as full run (i.e. checking whether CL is approved and whether CL owner is committer) if 2 is provided for `cq_label_value`.
func (*Mode) Descriptor
deprecated
func (*Mode) GetCqLabelValue ¶
func (*Mode) GetTriggeringLabel ¶
func (*Mode) GetTriggeringValue ¶
func (*Mode) ProtoMessage ¶
func (*Mode) ProtoMessage()
func (*Mode) ProtoReflect ¶
func (x *Mode) ProtoReflect() protoreflect.Message
func (*Mode) Validate ¶
Validate checks the field values on Mode with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Mode) ValidateAll ¶
ValidateAll checks the field values on Mode with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ModeMultiError, or nil if none found.
type ModeMultiError ¶
type ModeMultiError []error
ModeMultiError is an error wrapping multiple validation errors returned by Mode.ValidateAll() if the designated constraints aren't met.
func (ModeMultiError) AllErrors ¶
func (m ModeMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ModeMultiError) Error ¶
func (m ModeMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ModeValidationError ¶
type ModeValidationError struct {
// contains filtered or unexported fields
}
ModeValidationError is the validation error returned by Mode.Validate if the designated constraints aren't met.
func (ModeValidationError) Cause ¶
func (e ModeValidationError) Cause() error
Cause function returns cause value.
func (ModeValidationError) Error ¶
func (e ModeValidationError) Error() string
Error satisfies the builtin error interface
func (ModeValidationError) ErrorName ¶
func (e ModeValidationError) ErrorName() string
ErrorName returns error name.
func (ModeValidationError) Field ¶
func (e ModeValidationError) Field() string
Field function returns field value.
func (ModeValidationError) Key ¶
func (e ModeValidationError) Key() bool
Key function returns key value.
func (ModeValidationError) Reason ¶
func (e ModeValidationError) Reason() string
Reason function returns reason value.
type SubmitOptions ¶
type SubmitOptions struct { // Optional. Maximum number of successful CQ attempts completed by submitting // corresponding Gerrit CL(s) before waiting burst_delay. // // This feature today applies to all attempts processed by this CQ, across all // config_groups. // // Must be >0 to take effect. Requires burst_delay to be set, too. MaxBurst int32 `protobuf:"varint,1,opt,name=max_burst,json=maxBurst,proto3" json:"max_burst,omitempty"` // Optional. Delay between bursts of submissions of CQ attempts. // See max_burst for more info. // // Must be >0 to take effect. Requires max_burst to be set, too. BurstDelay *durationpb.Duration `protobuf:"bytes,2,opt,name=burst_delay,json=burstDelay,proto3" json:"burst_delay,omitempty"` // contains filtered or unexported fields }
SubmitOptions control how CQ submits CLs.
func (*SubmitOptions) Descriptor
deprecated
func (*SubmitOptions) Descriptor() ([]byte, []int)
Deprecated: Use SubmitOptions.ProtoReflect.Descriptor instead.
func (*SubmitOptions) GetBurstDelay ¶
func (x *SubmitOptions) GetBurstDelay() *durationpb.Duration
func (*SubmitOptions) GetMaxBurst ¶
func (x *SubmitOptions) GetMaxBurst() int32
func (*SubmitOptions) ProtoMessage ¶
func (*SubmitOptions) ProtoMessage()
func (*SubmitOptions) ProtoReflect ¶
func (x *SubmitOptions) ProtoReflect() protoreflect.Message
func (*SubmitOptions) Reset ¶
func (x *SubmitOptions) Reset()
func (*SubmitOptions) String ¶
func (x *SubmitOptions) String() string
func (*SubmitOptions) Validate ¶
func (m *SubmitOptions) Validate() error
Validate checks the field values on SubmitOptions with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SubmitOptions) ValidateAll ¶
func (m *SubmitOptions) ValidateAll() error
ValidateAll checks the field values on SubmitOptions with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SubmitOptionsMultiError, or nil if none found.
type SubmitOptionsMultiError ¶
type SubmitOptionsMultiError []error
SubmitOptionsMultiError is an error wrapping multiple validation errors returned by SubmitOptions.ValidateAll() if the designated constraints aren't met.
func (SubmitOptionsMultiError) AllErrors ¶
func (m SubmitOptionsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SubmitOptionsMultiError) Error ¶
func (m SubmitOptionsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SubmitOptionsValidationError ¶
type SubmitOptionsValidationError struct {
// contains filtered or unexported fields
}
SubmitOptionsValidationError is the validation error returned by SubmitOptions.Validate if the designated constraints aren't met.
func (SubmitOptionsValidationError) Cause ¶
func (e SubmitOptionsValidationError) Cause() error
Cause function returns cause value.
func (SubmitOptionsValidationError) Error ¶
func (e SubmitOptionsValidationError) Error() string
Error satisfies the builtin error interface
func (SubmitOptionsValidationError) ErrorName ¶
func (e SubmitOptionsValidationError) ErrorName() string
ErrorName returns error name.
func (SubmitOptionsValidationError) Field ¶
func (e SubmitOptionsValidationError) Field() string
Field function returns field value.
func (SubmitOptionsValidationError) Key ¶
func (e SubmitOptionsValidationError) Key() bool
Key function returns key value.
func (SubmitOptionsValidationError) Reason ¶
func (e SubmitOptionsValidationError) Reason() string
Reason function returns reason value.
type Toggle ¶
type Toggle int32
A boolean with an "unset" default value.
func (Toggle) Descriptor ¶
func (Toggle) Descriptor() protoreflect.EnumDescriptor
func (Toggle) EnumDescriptor
deprecated
func (Toggle) Number ¶
func (x Toggle) Number() protoreflect.EnumNumber
func (Toggle) Type ¶
func (Toggle) Type() protoreflect.EnumType
type UserLimit ¶
type UserLimit struct { // Name of the limit. Must be unique across all the policies // with the LUCI project. // // Required. Must match regex '^[0-9A-Za-z][0-9A-Za-z\.\-@_+]{0,511}$' Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Principals to apply the limits to. // // Each entry can be either an identity string "user:<email>" // or a LUCI group reference "group:<name>" Principals []string `protobuf:"bytes,2,rep,name=principals,proto3" json:"principals,omitempty"` // Run limits. Required. Run *UserLimit_Run `protobuf:"bytes,5,opt,name=run,proto3" json:"run,omitempty"` // Tryjob limits. Required Tryjob *UserLimit_Tryjob `protobuf:"bytes,6,opt,name=tryjob,proto3" json:"tryjob,omitempty"` // contains filtered or unexported fields }
UserLimit specifies Run and Tryjob limits per user.
func (*UserLimit) Descriptor
deprecated
func (*UserLimit) GetPrincipals ¶
func (*UserLimit) GetRun ¶
func (x *UserLimit) GetRun() *UserLimit_Run
func (*UserLimit) GetTryjob ¶
func (x *UserLimit) GetTryjob() *UserLimit_Tryjob
func (*UserLimit) ProtoMessage ¶
func (*UserLimit) ProtoMessage()
func (*UserLimit) ProtoReflect ¶
func (x *UserLimit) ProtoReflect() protoreflect.Message
func (*UserLimit) Validate ¶
Validate checks the field values on UserLimit with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UserLimit) ValidateAll ¶
ValidateAll checks the field values on UserLimit with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserLimitMultiError, or nil if none found.
type UserLimitMultiError ¶
type UserLimitMultiError []error
UserLimitMultiError is an error wrapping multiple validation errors returned by UserLimit.ValidateAll() if the designated constraints aren't met.
func (UserLimitMultiError) AllErrors ¶
func (m UserLimitMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserLimitMultiError) Error ¶
func (m UserLimitMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserLimitValidationError ¶
type UserLimitValidationError struct {
// contains filtered or unexported fields
}
UserLimitValidationError is the validation error returned by UserLimit.Validate if the designated constraints aren't met.
func (UserLimitValidationError) Cause ¶
func (e UserLimitValidationError) Cause() error
Cause function returns cause value.
func (UserLimitValidationError) Error ¶
func (e UserLimitValidationError) Error() string
Error satisfies the builtin error interface
func (UserLimitValidationError) ErrorName ¶
func (e UserLimitValidationError) ErrorName() string
ErrorName returns error name.
func (UserLimitValidationError) Field ¶
func (e UserLimitValidationError) Field() string
Field function returns field value.
func (UserLimitValidationError) Key ¶
func (e UserLimitValidationError) Key() bool
Key function returns key value.
func (UserLimitValidationError) Reason ¶
func (e UserLimitValidationError) Reason() string
Reason function returns reason value.
type UserLimit_Limit ¶
type UserLimit_Limit struct { // Required. value must be > 0, unless unlimited is set to True. // // Types that are assignable to Limit: // // *UserLimit_Limit_Value // *UserLimit_Limit_Unlimited Limit isUserLimit_Limit_Limit `protobuf_oneof:"limit"` // contains filtered or unexported fields }
func (*UserLimit_Limit) Descriptor
deprecated
func (*UserLimit_Limit) Descriptor() ([]byte, []int)
Deprecated: Use UserLimit_Limit.ProtoReflect.Descriptor instead.
func (*UserLimit_Limit) GetLimit ¶
func (m *UserLimit_Limit) GetLimit() isUserLimit_Limit_Limit
func (*UserLimit_Limit) GetUnlimited ¶
func (x *UserLimit_Limit) GetUnlimited() bool
func (*UserLimit_Limit) GetValue ¶
func (x *UserLimit_Limit) GetValue() int64
func (*UserLimit_Limit) ProtoMessage ¶
func (*UserLimit_Limit) ProtoMessage()
func (*UserLimit_Limit) ProtoReflect ¶
func (x *UserLimit_Limit) ProtoReflect() protoreflect.Message
func (*UserLimit_Limit) Reset ¶
func (x *UserLimit_Limit) Reset()
func (*UserLimit_Limit) String ¶
func (x *UserLimit_Limit) String() string
func (*UserLimit_Limit) Validate ¶
func (m *UserLimit_Limit) Validate() error
Validate checks the field values on UserLimit_Limit with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UserLimit_Limit) ValidateAll ¶
func (m *UserLimit_Limit) ValidateAll() error
ValidateAll checks the field values on UserLimit_Limit with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserLimit_LimitMultiError, or nil if none found.
type UserLimit_LimitMultiError ¶
type UserLimit_LimitMultiError []error
UserLimit_LimitMultiError is an error wrapping multiple validation errors returned by UserLimit_Limit.ValidateAll() if the designated constraints aren't met.
func (UserLimit_LimitMultiError) AllErrors ¶
func (m UserLimit_LimitMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserLimit_LimitMultiError) Error ¶
func (m UserLimit_LimitMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserLimit_LimitValidationError ¶
type UserLimit_LimitValidationError struct {
// contains filtered or unexported fields
}
UserLimit_LimitValidationError is the validation error returned by UserLimit_Limit.Validate if the designated constraints aren't met.
func (UserLimit_LimitValidationError) Cause ¶
func (e UserLimit_LimitValidationError) Cause() error
Cause function returns cause value.
func (UserLimit_LimitValidationError) Error ¶
func (e UserLimit_LimitValidationError) Error() string
Error satisfies the builtin error interface
func (UserLimit_LimitValidationError) ErrorName ¶
func (e UserLimit_LimitValidationError) ErrorName() string
ErrorName returns error name.
func (UserLimit_LimitValidationError) Field ¶
func (e UserLimit_LimitValidationError) Field() string
Field function returns field value.
func (UserLimit_LimitValidationError) Key ¶
func (e UserLimit_LimitValidationError) Key() bool
Key function returns key value.
func (UserLimit_LimitValidationError) Reason ¶
func (e UserLimit_LimitValidationError) Reason() string
Reason function returns reason value.
type UserLimit_Limit_Unlimited ¶
type UserLimit_Limit_Unlimited struct {
Unlimited bool `protobuf:"varint,2,opt,name=unlimited,proto3,oneof"`
}
type UserLimit_Limit_Value ¶
type UserLimit_Limit_Value struct {
Value int64 `protobuf:"varint,1,opt,name=value,proto3,oneof"`
}
type UserLimit_Run ¶
type UserLimit_Run struct { // Maximum number of active runs that the user can have at any moment. // // Required. Active Run is a Run that has started but not ended yet. MaxActive *UserLimit_Limit `protobuf:"bytes,1,opt,name=max_active,json=maxActive,proto3" json:"max_active,omitempty"` // Optional custom message appended to the end of the quota exhaustion // message posted to gerrit. ReachLimitMsg string `protobuf:"bytes,2,opt,name=reach_limit_msg,json=reachLimitMsg,proto3" json:"reach_limit_msg,omitempty"` // contains filtered or unexported fields }
func (*UserLimit_Run) Descriptor
deprecated
func (*UserLimit_Run) Descriptor() ([]byte, []int)
Deprecated: Use UserLimit_Run.ProtoReflect.Descriptor instead.
func (*UserLimit_Run) GetMaxActive ¶
func (x *UserLimit_Run) GetMaxActive() *UserLimit_Limit
func (*UserLimit_Run) GetReachLimitMsg ¶
func (x *UserLimit_Run) GetReachLimitMsg() string
func (*UserLimit_Run) ProtoMessage ¶
func (*UserLimit_Run) ProtoMessage()
func (*UserLimit_Run) ProtoReflect ¶
func (x *UserLimit_Run) ProtoReflect() protoreflect.Message
func (*UserLimit_Run) Reset ¶
func (x *UserLimit_Run) Reset()
func (*UserLimit_Run) String ¶
func (x *UserLimit_Run) String() string
func (*UserLimit_Run) Validate ¶
func (m *UserLimit_Run) Validate() error
Validate checks the field values on UserLimit_Run with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UserLimit_Run) ValidateAll ¶
func (m *UserLimit_Run) ValidateAll() error
ValidateAll checks the field values on UserLimit_Run with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserLimit_RunMultiError, or nil if none found.
type UserLimit_RunMultiError ¶
type UserLimit_RunMultiError []error
UserLimit_RunMultiError is an error wrapping multiple validation errors returned by UserLimit_Run.ValidateAll() if the designated constraints aren't met.
func (UserLimit_RunMultiError) AllErrors ¶
func (m UserLimit_RunMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserLimit_RunMultiError) Error ¶
func (m UserLimit_RunMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserLimit_RunValidationError ¶
type UserLimit_RunValidationError struct {
// contains filtered or unexported fields
}
UserLimit_RunValidationError is the validation error returned by UserLimit_Run.Validate if the designated constraints aren't met.
func (UserLimit_RunValidationError) Cause ¶
func (e UserLimit_RunValidationError) Cause() error
Cause function returns cause value.
func (UserLimit_RunValidationError) Error ¶
func (e UserLimit_RunValidationError) Error() string
Error satisfies the builtin error interface
func (UserLimit_RunValidationError) ErrorName ¶
func (e UserLimit_RunValidationError) ErrorName() string
ErrorName returns error name.
func (UserLimit_RunValidationError) Field ¶
func (e UserLimit_RunValidationError) Field() string
Field function returns field value.
func (UserLimit_RunValidationError) Key ¶
func (e UserLimit_RunValidationError) Key() bool
Key function returns key value.
func (UserLimit_RunValidationError) Reason ¶
func (e UserLimit_RunValidationError) Reason() string
Reason function returns reason value.
type UserLimit_Tryjob ¶
type UserLimit_Tryjob struct { // Maximum number of active tryjobs that the user can have at any // moment. // // Active tryjob is a tryjob that CV has successfully launched, // and has not ended yet from CV's point of view. Also, optional // tryjobs, which are experimental tryjobs that were not explicitly // requested via the git footer, are not counted as active tryjobs. // // Note that counting active tryjobs and launching tryjobs are not // atomic operations. So, # of active tryjobs may not match # of // the successfully launched tryjobs for a short period, but will // match eventually. // // If not specified, an unlimited number of active Tryjobs are allowed. MaxActive *UserLimit_Limit `protobuf:"bytes,1,opt,name=max_active,json=maxActive,proto3" json:"max_active,omitempty"` // contains filtered or unexported fields }
func (*UserLimit_Tryjob) Descriptor
deprecated
func (*UserLimit_Tryjob) Descriptor() ([]byte, []int)
Deprecated: Use UserLimit_Tryjob.ProtoReflect.Descriptor instead.
func (*UserLimit_Tryjob) GetMaxActive ¶
func (x *UserLimit_Tryjob) GetMaxActive() *UserLimit_Limit
func (*UserLimit_Tryjob) ProtoMessage ¶
func (*UserLimit_Tryjob) ProtoMessage()
func (*UserLimit_Tryjob) ProtoReflect ¶
func (x *UserLimit_Tryjob) ProtoReflect() protoreflect.Message
func (*UserLimit_Tryjob) Reset ¶
func (x *UserLimit_Tryjob) Reset()
func (*UserLimit_Tryjob) String ¶
func (x *UserLimit_Tryjob) String() string
func (*UserLimit_Tryjob) Validate ¶
func (m *UserLimit_Tryjob) Validate() error
Validate checks the field values on UserLimit_Tryjob with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UserLimit_Tryjob) ValidateAll ¶
func (m *UserLimit_Tryjob) ValidateAll() error
ValidateAll checks the field values on UserLimit_Tryjob with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserLimit_TryjobMultiError, or nil if none found.
type UserLimit_TryjobMultiError ¶
type UserLimit_TryjobMultiError []error
UserLimit_TryjobMultiError is an error wrapping multiple validation errors returned by UserLimit_Tryjob.ValidateAll() if the designated constraints aren't met.
func (UserLimit_TryjobMultiError) AllErrors ¶
func (m UserLimit_TryjobMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserLimit_TryjobMultiError) Error ¶
func (m UserLimit_TryjobMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserLimit_TryjobValidationError ¶
type UserLimit_TryjobValidationError struct {
// contains filtered or unexported fields
}
UserLimit_TryjobValidationError is the validation error returned by UserLimit_Tryjob.Validate if the designated constraints aren't met.
func (UserLimit_TryjobValidationError) Cause ¶
func (e UserLimit_TryjobValidationError) Cause() error
Cause function returns cause value.
func (UserLimit_TryjobValidationError) Error ¶
func (e UserLimit_TryjobValidationError) Error() string
Error satisfies the builtin error interface
func (UserLimit_TryjobValidationError) ErrorName ¶
func (e UserLimit_TryjobValidationError) ErrorName() string
ErrorName returns error name.
func (UserLimit_TryjobValidationError) Field ¶
func (e UserLimit_TryjobValidationError) Field() string
Field function returns field value.
func (UserLimit_TryjobValidationError) Key ¶
func (e UserLimit_TryjobValidationError) Key() bool
Key function returns key value.
func (UserLimit_TryjobValidationError) Reason ¶
func (e UserLimit_TryjobValidationError) Reason() string
Reason function returns reason value.
type Verifiers ¶
type Verifiers struct { // Required. GerritCQAbility ensures that a user who triggered // this CQ attempt actually has rights to do so based on 3 factors: // - membership of the user in committers & dryrunners group, // - the state of CL/patchset on which CQ is triggered, // - relationship of the user to the CL. GerritCqAbility *Verifiers_GerritCQAbility `protobuf:"bytes,1,opt,name=gerrit_cq_ability,json=gerritCqAbility,proto3" json:"gerrit_cq_ability,omitempty"` // This verifier is used to check tree status before committing a CL. If the // tree is closed, then the verifier will wait until it is reopened. TreeStatus *Verifiers_TreeStatus `protobuf:"bytes,2,opt,name=tree_status,json=treeStatus,proto3" json:"tree_status,omitempty"` // This verifier triggers a set of builds through Buildbucket. // // CQ automatically retries failed tryjobs and only allows CL to land if each // builder has succeeded in the latest retry. // If a given tryjob result is too old (>1 day) it is ignored. // // Typically, builds from Buildbucket are executed on LUCI stack, however, CQ // is agnostic to how and where builds are executed. Tryjob *Verifiers_Tryjob `protobuf:"bytes,3,opt,name=tryjob,proto3" json:"tryjob,omitempty"` // CQLinter is for internal CQ use only. DO NOT USE IN YOUR cq.cfg. Cqlinter *Verifiers_CQLinter `protobuf:"bytes,4,opt,name=cqlinter,proto3" json:"cqlinter,omitempty"` // Fake is for internal CQ use only. DO NOT USE IN YOUR cq.cfg. Fake *Verifiers_Fake `protobuf:"bytes,5,opt,name=fake,proto3" json:"fake,omitempty"` // contains filtered or unexported fields }
Verifiers are various types of checks that a Commit Queue performs on a CL. All verifiers must pass in order for a CL to be submitted. Configuration file describes types of verifiers that should be applied to each CL and their parameters.
func (*Verifiers) Descriptor
deprecated
func (*Verifiers) GetCqlinter ¶
func (x *Verifiers) GetCqlinter() *Verifiers_CQLinter
func (*Verifiers) GetFake ¶
func (x *Verifiers) GetFake() *Verifiers_Fake
func (*Verifiers) GetGerritCqAbility ¶
func (x *Verifiers) GetGerritCqAbility() *Verifiers_GerritCQAbility
func (*Verifiers) GetTreeStatus ¶
func (x *Verifiers) GetTreeStatus() *Verifiers_TreeStatus
func (*Verifiers) GetTryjob ¶
func (x *Verifiers) GetTryjob() *Verifiers_Tryjob
func (*Verifiers) ProtoMessage ¶
func (*Verifiers) ProtoMessage()
func (*Verifiers) ProtoReflect ¶
func (x *Verifiers) ProtoReflect() protoreflect.Message
func (*Verifiers) Validate ¶
Validate checks the field values on Verifiers with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Verifiers) ValidateAll ¶
ValidateAll checks the field values on Verifiers with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in VerifiersMultiError, or nil if none found.
type VerifiersMultiError ¶
type VerifiersMultiError []error
VerifiersMultiError is an error wrapping multiple validation errors returned by Verifiers.ValidateAll() if the designated constraints aren't met.
func (VerifiersMultiError) AllErrors ¶
func (m VerifiersMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VerifiersMultiError) Error ¶
func (m VerifiersMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VerifiersValidationError ¶
type VerifiersValidationError struct {
// contains filtered or unexported fields
}
VerifiersValidationError is the validation error returned by Verifiers.Validate if the designated constraints aren't met.
func (VerifiersValidationError) Cause ¶
func (e VerifiersValidationError) Cause() error
Cause function returns cause value.
func (VerifiersValidationError) Error ¶
func (e VerifiersValidationError) Error() string
Error satisfies the builtin error interface
func (VerifiersValidationError) ErrorName ¶
func (e VerifiersValidationError) ErrorName() string
ErrorName returns error name.
func (VerifiersValidationError) Field ¶
func (e VerifiersValidationError) Field() string
Field function returns field value.
func (VerifiersValidationError) Key ¶
func (e VerifiersValidationError) Key() bool
Key function returns key value.
func (VerifiersValidationError) Reason ¶
func (e VerifiersValidationError) Reason() string
Reason function returns reason value.
type Verifiers_CQLinter ¶
type Verifiers_CQLinter struct {
// contains filtered or unexported fields
}
CQLinter is for internal use in CQ.
Deprecated. Do not use. TODO(crbug/1127991): Remove after migration off CQDaemon is completed.
func (*Verifiers_CQLinter) Descriptor
deprecated
func (*Verifiers_CQLinter) Descriptor() ([]byte, []int)
Deprecated: Use Verifiers_CQLinter.ProtoReflect.Descriptor instead.
func (*Verifiers_CQLinter) ProtoMessage ¶
func (*Verifiers_CQLinter) ProtoMessage()
func (*Verifiers_CQLinter) ProtoReflect ¶
func (x *Verifiers_CQLinter) ProtoReflect() protoreflect.Message
func (*Verifiers_CQLinter) Reset ¶
func (x *Verifiers_CQLinter) Reset()
func (*Verifiers_CQLinter) String ¶
func (x *Verifiers_CQLinter) String() string
func (*Verifiers_CQLinter) Validate ¶
func (m *Verifiers_CQLinter) Validate() error
Validate checks the field values on Verifiers_CQLinter with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Verifiers_CQLinter) ValidateAll ¶
func (m *Verifiers_CQLinter) ValidateAll() error
ValidateAll checks the field values on Verifiers_CQLinter with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Verifiers_CQLinterMultiError, or nil if none found.
type Verifiers_CQLinterMultiError ¶
type Verifiers_CQLinterMultiError []error
Verifiers_CQLinterMultiError is an error wrapping multiple validation errors returned by Verifiers_CQLinter.ValidateAll() if the designated constraints aren't met.
func (Verifiers_CQLinterMultiError) AllErrors ¶
func (m Verifiers_CQLinterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Verifiers_CQLinterMultiError) Error ¶
func (m Verifiers_CQLinterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Verifiers_CQLinterValidationError ¶
type Verifiers_CQLinterValidationError struct {
// contains filtered or unexported fields
}
Verifiers_CQLinterValidationError is the validation error returned by Verifiers_CQLinter.Validate if the designated constraints aren't met.
func (Verifiers_CQLinterValidationError) Cause ¶
func (e Verifiers_CQLinterValidationError) Cause() error
Cause function returns cause value.
func (Verifiers_CQLinterValidationError) Error ¶
func (e Verifiers_CQLinterValidationError) Error() string
Error satisfies the builtin error interface
func (Verifiers_CQLinterValidationError) ErrorName ¶
func (e Verifiers_CQLinterValidationError) ErrorName() string
ErrorName returns error name.
func (Verifiers_CQLinterValidationError) Field ¶
func (e Verifiers_CQLinterValidationError) Field() string
Field function returns field value.
func (Verifiers_CQLinterValidationError) Key ¶
func (e Verifiers_CQLinterValidationError) Key() bool
Key function returns key value.
func (Verifiers_CQLinterValidationError) Reason ¶
func (e Verifiers_CQLinterValidationError) Reason() string
Reason function returns reason value.
type Verifiers_Fake ¶
type Verifiers_Fake struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` EventualState string `protobuf:"bytes,2,opt,name=eventual_state,json=eventualState,proto3" json:"eventual_state,omitempty"` Delay int32 `protobuf:"varint,3,opt,name=delay,proto3" json:"delay,omitempty"` // contains filtered or unexported fields }
Fake is for internal use in CQ.
Deprecated. Do not use. TODO(crbug/1127991): Remove after migration off CQDaemon is completed.
func (*Verifiers_Fake) Descriptor
deprecated
func (*Verifiers_Fake) Descriptor() ([]byte, []int)
Deprecated: Use Verifiers_Fake.ProtoReflect.Descriptor instead.
func (*Verifiers_Fake) GetDelay ¶
func (x *Verifiers_Fake) GetDelay() int32
func (*Verifiers_Fake) GetEventualState ¶
func (x *Verifiers_Fake) GetEventualState() string
func (*Verifiers_Fake) GetName ¶
func (x *Verifiers_Fake) GetName() string
func (*Verifiers_Fake) ProtoMessage ¶
func (*Verifiers_Fake) ProtoMessage()
func (*Verifiers_Fake) ProtoReflect ¶
func (x *Verifiers_Fake) ProtoReflect() protoreflect.Message
func (*Verifiers_Fake) Reset ¶
func (x *Verifiers_Fake) Reset()
func (*Verifiers_Fake) String ¶
func (x *Verifiers_Fake) String() string
func (*Verifiers_Fake) Validate ¶
func (m *Verifiers_Fake) Validate() error
Validate checks the field values on Verifiers_Fake with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Verifiers_Fake) ValidateAll ¶
func (m *Verifiers_Fake) ValidateAll() error
ValidateAll checks the field values on Verifiers_Fake with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Verifiers_FakeMultiError, or nil if none found.
type Verifiers_FakeMultiError ¶
type Verifiers_FakeMultiError []error
Verifiers_FakeMultiError is an error wrapping multiple validation errors returned by Verifiers_Fake.ValidateAll() if the designated constraints aren't met.
func (Verifiers_FakeMultiError) AllErrors ¶
func (m Verifiers_FakeMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Verifiers_FakeMultiError) Error ¶
func (m Verifiers_FakeMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Verifiers_FakeValidationError ¶
type Verifiers_FakeValidationError struct {
// contains filtered or unexported fields
}
Verifiers_FakeValidationError is the validation error returned by Verifiers_Fake.Validate if the designated constraints aren't met.
func (Verifiers_FakeValidationError) Cause ¶
func (e Verifiers_FakeValidationError) Cause() error
Cause function returns cause value.
func (Verifiers_FakeValidationError) Error ¶
func (e Verifiers_FakeValidationError) Error() string
Error satisfies the builtin error interface
func (Verifiers_FakeValidationError) ErrorName ¶
func (e Verifiers_FakeValidationError) ErrorName() string
ErrorName returns error name.
func (Verifiers_FakeValidationError) Field ¶
func (e Verifiers_FakeValidationError) Field() string
Field function returns field value.
func (Verifiers_FakeValidationError) Key ¶
func (e Verifiers_FakeValidationError) Key() bool
Key function returns key value.
func (Verifiers_FakeValidationError) Reason ¶
func (e Verifiers_FakeValidationError) Reason() string
Reason function returns reason value.
type Verifiers_GerritCQAbility ¶
type Verifiers_GerritCQAbility struct { // Required. List of chrome-infra-auth groups, whose members are authorized // to trigger full CQ runs. // // Typically, such groups are named "project-<name>-committers". CommitterList []string `protobuf:"bytes,1,rep,name=committer_list,json=committerList,proto3" json:"committer_list,omitempty"` // Optional, but strongly recommended. List of chrome-infra-auth groups, // whose members are authorized to trigger CQ dry run on Gerrit CLs. // // By default, they are allowed to trigger CQ dry runs on their own // CLs only, but this can be relaxed, if `allow_non_owner_dry_runner` // is set. // // Typically, such groups are named "project-<name>-tryjob-access". DryRunAccessList []string `protobuf:"bytes,2,rep,name=dry_run_access_list,json=dryRunAccessList,proto3" json:"dry_run_access_list,omitempty"` // Optional, but required to use auto-triggered runs on new patchset upload, // it defines a list of chrome-infra-auth groups whose members are // authorized to trigger a new patchset runs. That is, CV will check the // owner of the CL when a new patchset is uploaded against these. NewPatchsetRunAccessList []string `` /* 139-byte string literal not displayed */ // Optional. allow_submit_with_open_deps controls how CQ full run behaves // when current Gerrit CL has open dependencies (not yet submitted CLs on // which *this* CL depends). // // If set to false (default), CQ will abort full run attempt immediately if // open dependencies are detected. // // If set to true, then CQ will not abort full run and upon passing all // other verifiers, CQ will attempt to submit the CL regardless of open // dependencies and whether CQ verified those open dependencies. // In turn, if Gerrit project config allows this, Gerrit will execute submit // of all dependent CLs first and then this CL. AllowSubmitWithOpenDeps bool `` /* 137-byte string literal not displayed */ // Optional. Allow CL owner to trigger CQ dry or full run on their own CL, // even if not a member of `committer_list` or `dry_run_access_list`. // Defaults to no such allowance. // // WARNING: using this option is not recommended if you have sticky // Code-Review label because this allows a malicious developer to upload // an good looking patchset at first, get code review approval, // and then upload a bad patchset and CQ it right away. // // CL owner is Gerrit user owning a CL, i.e., its first patchset uploader. // not to be confused with OWNERS files. AllowOwnerIfSubmittable Verifiers_GerritCQAbility_CQAction `` /* 185-byte string literal not displayed */ // Optional. Consider CL dependencies that are owned by members of // `dry_run_access_list` as trusted, even if they are not approved. // // By default, unapproved dependencies are only trusted if they are owned // by members of `committer_list`. // // This allows CQ dry run on CLs with unapproved dependencies owned by // members of `dry_run_access_list`. TrustDryRunnerDeps bool `protobuf:"varint,6,opt,name=trust_dry_runner_deps,json=trustDryRunnerDeps,proto3" json:"trust_dry_runner_deps,omitempty"` // Optional. Allow members of `dry_run_access_list` to trigger CQ dry run // on Gerrit CLs they do not own, even if the CL hasn't been approved. // // By default, members of `dry_run_access_list` can only trigger CQ dry run // on Gerrit CLs they own. AllowNonOwnerDryRunner bool `` /* 134-byte string literal not displayed */ // contains filtered or unexported fields }
Next tag: 8.
func (*Verifiers_GerritCQAbility) Descriptor
deprecated
func (*Verifiers_GerritCQAbility) Descriptor() ([]byte, []int)
Deprecated: Use Verifiers_GerritCQAbility.ProtoReflect.Descriptor instead.
func (*Verifiers_GerritCQAbility) GetAllowNonOwnerDryRunner ¶
func (x *Verifiers_GerritCQAbility) GetAllowNonOwnerDryRunner() bool
func (*Verifiers_GerritCQAbility) GetAllowOwnerIfSubmittable ¶
func (x *Verifiers_GerritCQAbility) GetAllowOwnerIfSubmittable() Verifiers_GerritCQAbility_CQAction
func (*Verifiers_GerritCQAbility) GetAllowSubmitWithOpenDeps ¶
func (x *Verifiers_GerritCQAbility) GetAllowSubmitWithOpenDeps() bool
func (*Verifiers_GerritCQAbility) GetCommitterList ¶
func (x *Verifiers_GerritCQAbility) GetCommitterList() []string
func (*Verifiers_GerritCQAbility) GetDryRunAccessList ¶
func (x *Verifiers_GerritCQAbility) GetDryRunAccessList() []string
func (*Verifiers_GerritCQAbility) GetNewPatchsetRunAccessList ¶
func (x *Verifiers_GerritCQAbility) GetNewPatchsetRunAccessList() []string
func (*Verifiers_GerritCQAbility) GetTrustDryRunnerDeps ¶
func (x *Verifiers_GerritCQAbility) GetTrustDryRunnerDeps() bool
func (*Verifiers_GerritCQAbility) ProtoMessage ¶
func (*Verifiers_GerritCQAbility) ProtoMessage()
func (*Verifiers_GerritCQAbility) ProtoReflect ¶
func (x *Verifiers_GerritCQAbility) ProtoReflect() protoreflect.Message
func (*Verifiers_GerritCQAbility) Reset ¶
func (x *Verifiers_GerritCQAbility) Reset()
func (*Verifiers_GerritCQAbility) String ¶
func (x *Verifiers_GerritCQAbility) String() string
func (*Verifiers_GerritCQAbility) Validate ¶
func (m *Verifiers_GerritCQAbility) Validate() error
Validate checks the field values on Verifiers_GerritCQAbility with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Verifiers_GerritCQAbility) ValidateAll ¶
func (m *Verifiers_GerritCQAbility) ValidateAll() error
ValidateAll checks the field values on Verifiers_GerritCQAbility with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Verifiers_GerritCQAbilityMultiError, or nil if none found.
type Verifiers_GerritCQAbilityMultiError ¶
type Verifiers_GerritCQAbilityMultiError []error
Verifiers_GerritCQAbilityMultiError is an error wrapping multiple validation errors returned by Verifiers_GerritCQAbility.ValidateAll() if the designated constraints aren't met.
func (Verifiers_GerritCQAbilityMultiError) AllErrors ¶
func (m Verifiers_GerritCQAbilityMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Verifiers_GerritCQAbilityMultiError) Error ¶
func (m Verifiers_GerritCQAbilityMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Verifiers_GerritCQAbilityValidationError ¶
type Verifiers_GerritCQAbilityValidationError struct {
// contains filtered or unexported fields
}
Verifiers_GerritCQAbilityValidationError is the validation error returned by Verifiers_GerritCQAbility.Validate if the designated constraints aren't met.
func (Verifiers_GerritCQAbilityValidationError) Cause ¶
func (e Verifiers_GerritCQAbilityValidationError) Cause() error
Cause function returns cause value.
func (Verifiers_GerritCQAbilityValidationError) Error ¶
func (e Verifiers_GerritCQAbilityValidationError) Error() string
Error satisfies the builtin error interface
func (Verifiers_GerritCQAbilityValidationError) ErrorName ¶
func (e Verifiers_GerritCQAbilityValidationError) ErrorName() string
ErrorName returns error name.
func (Verifiers_GerritCQAbilityValidationError) Field ¶
func (e Verifiers_GerritCQAbilityValidationError) Field() string
Field function returns field value.
func (Verifiers_GerritCQAbilityValidationError) Key ¶
func (e Verifiers_GerritCQAbilityValidationError) Key() bool
Key function returns key value.
func (Verifiers_GerritCQAbilityValidationError) Reason ¶
func (e Verifiers_GerritCQAbilityValidationError) Reason() string
Reason function returns reason value.
type Verifiers_GerritCQAbility_CQAction ¶
type Verifiers_GerritCQAbility_CQAction int32
See `allow_owner_if_submittable` doc below.
const ( Verifiers_GerritCQAbility_UNSET Verifiers_GerritCQAbility_CQAction = 0 Verifiers_GerritCQAbility_DRY_RUN Verifiers_GerritCQAbility_CQAction = 1 // COMMIT implies ability to trigger dry run as well. Verifiers_GerritCQAbility_COMMIT Verifiers_GerritCQAbility_CQAction = 2 )
func (Verifiers_GerritCQAbility_CQAction) Descriptor ¶
func (Verifiers_GerritCQAbility_CQAction) Descriptor() protoreflect.EnumDescriptor
func (Verifiers_GerritCQAbility_CQAction) Enum ¶
func (x Verifiers_GerritCQAbility_CQAction) Enum() *Verifiers_GerritCQAbility_CQAction
func (Verifiers_GerritCQAbility_CQAction) EnumDescriptor
deprecated
func (Verifiers_GerritCQAbility_CQAction) EnumDescriptor() ([]byte, []int)
Deprecated: Use Verifiers_GerritCQAbility_CQAction.Descriptor instead.
func (Verifiers_GerritCQAbility_CQAction) Number ¶
func (x Verifiers_GerritCQAbility_CQAction) Number() protoreflect.EnumNumber
func (Verifiers_GerritCQAbility_CQAction) String ¶
func (x Verifiers_GerritCQAbility_CQAction) String() string
func (Verifiers_GerritCQAbility_CQAction) Type ¶
func (Verifiers_GerritCQAbility_CQAction) Type() protoreflect.EnumType
type Verifiers_TreeStatus ¶
type Verifiers_TreeStatus struct { // Required unless url is present. The name of the tree to use for tree // status. TreeName string `protobuf:"bytes,2,opt,name=tree_name,json=treeName,proto3" json:"tree_name,omitempty"` // Deprecated. Required if tree_name not present. URL of the project tree // status app. Will be converted into a tree_name internally. Please // migrate to supplying the tree_name directly instead of using this field. // // Deprecated: Marked as deprecated in go.chromium.org/luci/cv/api/config/v2/config.proto. Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*Verifiers_TreeStatus) Descriptor
deprecated
func (*Verifiers_TreeStatus) Descriptor() ([]byte, []int)
Deprecated: Use Verifiers_TreeStatus.ProtoReflect.Descriptor instead.
func (*Verifiers_TreeStatus) GetTreeName ¶
func (x *Verifiers_TreeStatus) GetTreeName() string
func (*Verifiers_TreeStatus) GetUrl
deprecated
func (x *Verifiers_TreeStatus) GetUrl() string
Deprecated: Marked as deprecated in go.chromium.org/luci/cv/api/config/v2/config.proto.
func (*Verifiers_TreeStatus) ProtoMessage ¶
func (*Verifiers_TreeStatus) ProtoMessage()
func (*Verifiers_TreeStatus) ProtoReflect ¶
func (x *Verifiers_TreeStatus) ProtoReflect() protoreflect.Message
func (*Verifiers_TreeStatus) Reset ¶
func (x *Verifiers_TreeStatus) Reset()
func (*Verifiers_TreeStatus) String ¶
func (x *Verifiers_TreeStatus) String() string
func (*Verifiers_TreeStatus) Validate ¶
func (m *Verifiers_TreeStatus) Validate() error
Validate checks the field values on Verifiers_TreeStatus with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Verifiers_TreeStatus) ValidateAll ¶
func (m *Verifiers_TreeStatus) ValidateAll() error
ValidateAll checks the field values on Verifiers_TreeStatus with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Verifiers_TreeStatusMultiError, or nil if none found.
type Verifiers_TreeStatusMultiError ¶
type Verifiers_TreeStatusMultiError []error
Verifiers_TreeStatusMultiError is an error wrapping multiple validation errors returned by Verifiers_TreeStatus.ValidateAll() if the designated constraints aren't met.
func (Verifiers_TreeStatusMultiError) AllErrors ¶
func (m Verifiers_TreeStatusMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Verifiers_TreeStatusMultiError) Error ¶
func (m Verifiers_TreeStatusMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Verifiers_TreeStatusValidationError ¶
type Verifiers_TreeStatusValidationError struct {
// contains filtered or unexported fields
}
Verifiers_TreeStatusValidationError is the validation error returned by Verifiers_TreeStatus.Validate if the designated constraints aren't met.
func (Verifiers_TreeStatusValidationError) Cause ¶
func (e Verifiers_TreeStatusValidationError) Cause() error
Cause function returns cause value.
func (Verifiers_TreeStatusValidationError) Error ¶
func (e Verifiers_TreeStatusValidationError) Error() string
Error satisfies the builtin error interface
func (Verifiers_TreeStatusValidationError) ErrorName ¶
func (e Verifiers_TreeStatusValidationError) ErrorName() string
ErrorName returns error name.
func (Verifiers_TreeStatusValidationError) Field ¶
func (e Verifiers_TreeStatusValidationError) Field() string
Field function returns field value.
func (Verifiers_TreeStatusValidationError) Key ¶
func (e Verifiers_TreeStatusValidationError) Key() bool
Key function returns key value.
func (Verifiers_TreeStatusValidationError) Reason ¶
func (e Verifiers_TreeStatusValidationError) Reason() string
Reason function returns reason value.
type Verifiers_Tryjob ¶
type Verifiers_Tryjob struct { // Builders on which tryjobs should be triggered. // // CQ won't allow adding any builder via `CQ-Include-Trybots:` in CL // description except those in this list (including the equivalent // builders). Builders []*Verifiers_Tryjob_Builder `protobuf:"bytes,1,rep,name=builders,proto3" json:"builders,omitempty"` // Optional, defaulting to no retries whatsoever. RetryConfig *Verifiers_Tryjob_RetryConfig `protobuf:"bytes,2,opt,name=retry_config,json=retryConfig,proto3" json:"retry_config,omitempty"` // DEPRECATED. Use per-builder `cancel_stale` instead. // // Deprecated: Marked as deprecated in go.chromium.org/luci/cv/api/config/v2/config.proto. CancelStaleTryjobs Toggle `` /* 140-byte string literal not displayed */ // contains filtered or unexported fields }
Tryjob configures builders which CQ may trigger and/or use to verify CL(s).
func (*Verifiers_Tryjob) Descriptor
deprecated
func (*Verifiers_Tryjob) Descriptor() ([]byte, []int)
Deprecated: Use Verifiers_Tryjob.ProtoReflect.Descriptor instead.
func (*Verifiers_Tryjob) GetBuilders ¶
func (x *Verifiers_Tryjob) GetBuilders() []*Verifiers_Tryjob_Builder
func (*Verifiers_Tryjob) GetCancelStaleTryjobs
deprecated
func (x *Verifiers_Tryjob) GetCancelStaleTryjobs() Toggle
Deprecated: Marked as deprecated in go.chromium.org/luci/cv/api/config/v2/config.proto.
func (*Verifiers_Tryjob) GetRetryConfig ¶
func (x *Verifiers_Tryjob) GetRetryConfig() *Verifiers_Tryjob_RetryConfig
func (*Verifiers_Tryjob) ProtoMessage ¶
func (*Verifiers_Tryjob) ProtoMessage()
func (*Verifiers_Tryjob) ProtoReflect ¶
func (x *Verifiers_Tryjob) ProtoReflect() protoreflect.Message
func (*Verifiers_Tryjob) Reset ¶
func (x *Verifiers_Tryjob) Reset()
func (*Verifiers_Tryjob) String ¶
func (x *Verifiers_Tryjob) String() string
func (*Verifiers_Tryjob) Validate ¶
func (m *Verifiers_Tryjob) Validate() error
Validate checks the field values on Verifiers_Tryjob with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Verifiers_Tryjob) ValidateAll ¶
func (m *Verifiers_Tryjob) ValidateAll() error
ValidateAll checks the field values on Verifiers_Tryjob with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Verifiers_TryjobMultiError, or nil if none found.
type Verifiers_TryjobMultiError ¶
type Verifiers_TryjobMultiError []error
Verifiers_TryjobMultiError is an error wrapping multiple validation errors returned by Verifiers_Tryjob.ValidateAll() if the designated constraints aren't met.
func (Verifiers_TryjobMultiError) AllErrors ¶
func (m Verifiers_TryjobMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Verifiers_TryjobMultiError) Error ¶
func (m Verifiers_TryjobMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Verifiers_TryjobValidationError ¶
type Verifiers_TryjobValidationError struct {
// contains filtered or unexported fields
}
Verifiers_TryjobValidationError is the validation error returned by Verifiers_Tryjob.Validate if the designated constraints aren't met.
func (Verifiers_TryjobValidationError) Cause ¶
func (e Verifiers_TryjobValidationError) Cause() error
Cause function returns cause value.
func (Verifiers_TryjobValidationError) Error ¶
func (e Verifiers_TryjobValidationError) Error() string
Error satisfies the builtin error interface
func (Verifiers_TryjobValidationError) ErrorName ¶
func (e Verifiers_TryjobValidationError) ErrorName() string
ErrorName returns error name.
func (Verifiers_TryjobValidationError) Field ¶
func (e Verifiers_TryjobValidationError) Field() string
Field function returns field value.
func (Verifiers_TryjobValidationError) Key ¶
func (e Verifiers_TryjobValidationError) Key() bool
Key function returns key value.
func (Verifiers_TryjobValidationError) Reason ¶
func (e Verifiers_TryjobValidationError) Reason() string
Reason function returns reason value.
type Verifiers_Tryjob_Builder ¶
type Verifiers_Tryjob_Builder struct { // The buildbucket host name. // // Optional. If empty, default to "cr-buildbucket.appspot.com". Host string `protobuf:"bytes,16,opt,name=host,proto3" json:"host,omitempty"` // Required. Name of the builder as <project>/<bucket>/<builder> // // Examples: // // "chromium/try/linux-tester" // "other-project/try/shared-try-builder" Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // If true, this builder will only be used if specified via // `CQ-Include-Trybots:` on CL description. // // If false, the builder may still be included via `CQ-Include-Trybots:` // on CL description. // // This is useful if you want individual CLs to opt-in to this builder, // e.g.: // // builder {name: "win-release"} # required for all. // builder {name: "win-debug" includable_only: true} # opt in only. // // Not combinable with: // - location_filters // - experiment_percentage IncludableOnly bool `protobuf:"varint,9,opt,name=includable_only,json=includableOnly,proto3" json:"includable_only,omitempty"` // Determines how visible the results of a build for this builder are in // Gerrit for this tryjob. // // This doesn't affect the buildbucket plugin (green/red chips). ResultVisibility CommentLevel `` /* 139-byte string literal not displayed */ // Optional. If true, a fresh build will be required for each CQ attempt. // // Default is false, meaning CQ may re-use a successful build // triggered before current CQ attempt started. // // This option is typically used for builders which run depot_tools' // PRESUBMIT scripts, which are supposed to be quick to run and provide // additional OWNERS, lint, etc checks which are useful to run against // the latest revision of the CL's target branch. DisableReuse bool `protobuf:"varint,2,opt,name=disable_reuse,json=disableReuse,proto3" json:"disable_reuse,omitempty"` // Optional. If YES (default), running or not-yet-started builds of this // builder previously triggered by CQ will be cancelled as soon as // a substantially different patchset is uploaded to a CL. // // The following paragraph is only applicable to LUCI Change Verifier ( // The successor of legacy CQ). As of 09/2020, the implementation is // still WIP. TODO(crbug/1127991): Remove after migration is done. // // CV will snapshot the value of this option when a Run is created // and use it throughout the lifecycle of this Run. Therefore, // modification on this option will only take effect on newly-created // Runs after config change is propagated to CV. CancelStale Toggle `protobuf:"varint,11,opt,name=cancel_stale,json=cancelStale,proto3,enum=cv.config.Toggle" json:"cancel_stale,omitempty"` // Optional. When this field is present, it marks given builder as // experimental. It is only triggered on a given percentage of the CLs // and the outcome does not affect the decision of whether a CL can land // or not. This is typically used to test new builders and estimate their // capacity requirements. May be combined with location_filters. ExperimentPercentage float32 `protobuf:"fixed32,4,opt,name=experiment_percentage,json=experimentPercentage,proto3" json:"experiment_percentage,omitempty"` // Optionally specified alternative builder for CQ to choose instead. // If provided, CQ will choose only one of the equivalent builders as // required based purely on given CL and CL's owner and **regardless** of // the possibly already completed tryjobs. // // Note: The equivalent builders can be included using // `CQ-Include-Trybots:` footer. In this case, CQ will always try to // trigger the equivalent builders regardless of the equivalent // percentage. EquivalentTo *Verifiers_Tryjob_EquivalentBuilder `protobuf:"bytes,5,opt,name=equivalent_to,json=equivalentTo,proto3" json:"equivalent_to,omitempty"` LocationFilters []*Verifiers_Tryjob_Builder_LocationFilter `protobuf:"bytes,15,rep,name=location_filters,json=locationFilters,proto3" json:"location_filters,omitempty"` // If set, this builder will only be triggered if the CL owner (who first // uploaded the CL) is a member of at least one of these groups. OwnerWhitelistGroup []string `protobuf:"bytes,8,rep,name=owner_whitelist_group,json=ownerWhitelistGroup,proto3" json:"owner_whitelist_group,omitempty"` // If set, require this builder only if the Run mode matches one of the // modes in this list. If unset, it implies that only FULL_RUN and // DRY_RUN are allowed. Optional. ModeAllowlist []string `protobuf:"bytes,14,rep,name=mode_allowlist,json=modeAllowlist,proto3" json:"mode_allowlist,omitempty"` SkipFooters []*Verifiers_Tryjob_Builder_SkipFooter `protobuf:"bytes,17,rep,name=skip_footers,json=skipFooters,proto3" json:"skip_footers,omitempty"` // contains filtered or unexported fields }
func (*Verifiers_Tryjob_Builder) Descriptor
deprecated
func (*Verifiers_Tryjob_Builder) Descriptor() ([]byte, []int)
Deprecated: Use Verifiers_Tryjob_Builder.ProtoReflect.Descriptor instead.
func (*Verifiers_Tryjob_Builder) GetCancelStale ¶
func (x *Verifiers_Tryjob_Builder) GetCancelStale() Toggle
func (*Verifiers_Tryjob_Builder) GetDisableReuse ¶
func (x *Verifiers_Tryjob_Builder) GetDisableReuse() bool
func (*Verifiers_Tryjob_Builder) GetEquivalentTo ¶
func (x *Verifiers_Tryjob_Builder) GetEquivalentTo() *Verifiers_Tryjob_EquivalentBuilder
func (*Verifiers_Tryjob_Builder) GetExperimentPercentage ¶
func (x *Verifiers_Tryjob_Builder) GetExperimentPercentage() float32
func (*Verifiers_Tryjob_Builder) GetHost ¶
func (x *Verifiers_Tryjob_Builder) GetHost() string
func (*Verifiers_Tryjob_Builder) GetIncludableOnly ¶
func (x *Verifiers_Tryjob_Builder) GetIncludableOnly() bool
func (*Verifiers_Tryjob_Builder) GetLocationFilters ¶
func (x *Verifiers_Tryjob_Builder) GetLocationFilters() []*Verifiers_Tryjob_Builder_LocationFilter
func (*Verifiers_Tryjob_Builder) GetModeAllowlist ¶
func (x *Verifiers_Tryjob_Builder) GetModeAllowlist() []string
func (*Verifiers_Tryjob_Builder) GetName ¶
func (x *Verifiers_Tryjob_Builder) GetName() string
func (*Verifiers_Tryjob_Builder) GetOwnerWhitelistGroup ¶
func (x *Verifiers_Tryjob_Builder) GetOwnerWhitelistGroup() []string
func (*Verifiers_Tryjob_Builder) GetResultVisibility ¶
func (x *Verifiers_Tryjob_Builder) GetResultVisibility() CommentLevel
func (*Verifiers_Tryjob_Builder) GetSkipFooters ¶
func (x *Verifiers_Tryjob_Builder) GetSkipFooters() []*Verifiers_Tryjob_Builder_SkipFooter
func (*Verifiers_Tryjob_Builder) ProtoMessage ¶
func (*Verifiers_Tryjob_Builder) ProtoMessage()
func (*Verifiers_Tryjob_Builder) ProtoReflect ¶
func (x *Verifiers_Tryjob_Builder) ProtoReflect() protoreflect.Message
func (*Verifiers_Tryjob_Builder) Reset ¶
func (x *Verifiers_Tryjob_Builder) Reset()
func (*Verifiers_Tryjob_Builder) String ¶
func (x *Verifiers_Tryjob_Builder) String() string
func (*Verifiers_Tryjob_Builder) Validate ¶
func (m *Verifiers_Tryjob_Builder) Validate() error
Validate checks the field values on Verifiers_Tryjob_Builder with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Verifiers_Tryjob_Builder) ValidateAll ¶
func (m *Verifiers_Tryjob_Builder) ValidateAll() error
ValidateAll checks the field values on Verifiers_Tryjob_Builder with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Verifiers_Tryjob_BuilderMultiError, or nil if none found.
type Verifiers_Tryjob_BuilderMultiError ¶
type Verifiers_Tryjob_BuilderMultiError []error
Verifiers_Tryjob_BuilderMultiError is an error wrapping multiple validation errors returned by Verifiers_Tryjob_Builder.ValidateAll() if the designated constraints aren't met.
func (Verifiers_Tryjob_BuilderMultiError) AllErrors ¶
func (m Verifiers_Tryjob_BuilderMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Verifiers_Tryjob_BuilderMultiError) Error ¶
func (m Verifiers_Tryjob_BuilderMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Verifiers_Tryjob_BuilderValidationError ¶
type Verifiers_Tryjob_BuilderValidationError struct {
// contains filtered or unexported fields
}
Verifiers_Tryjob_BuilderValidationError is the validation error returned by Verifiers_Tryjob_Builder.Validate if the designated constraints aren't met.
func (Verifiers_Tryjob_BuilderValidationError) Cause ¶
func (e Verifiers_Tryjob_BuilderValidationError) Cause() error
Cause function returns cause value.
func (Verifiers_Tryjob_BuilderValidationError) Error ¶
func (e Verifiers_Tryjob_BuilderValidationError) Error() string
Error satisfies the builtin error interface
func (Verifiers_Tryjob_BuilderValidationError) ErrorName ¶
func (e Verifiers_Tryjob_BuilderValidationError) ErrorName() string
ErrorName returns error name.
func (Verifiers_Tryjob_BuilderValidationError) Field ¶
func (e Verifiers_Tryjob_BuilderValidationError) Field() string
Field function returns field value.
func (Verifiers_Tryjob_BuilderValidationError) Key ¶
func (e Verifiers_Tryjob_BuilderValidationError) Key() bool
Key function returns key value.
func (Verifiers_Tryjob_BuilderValidationError) Reason ¶
func (e Verifiers_Tryjob_BuilderValidationError) Reason() string
Reason function returns reason value.
type Verifiers_Tryjob_Builder_LocationFilter ¶
type Verifiers_Tryjob_Builder_LocationFilter struct { // Pattern to match Gerrit host. Does not include scheme, which is // always assumed to be "https://". GerritHostRegexp string `protobuf:"bytes,1,opt,name=gerrit_host_regexp,json=gerritHostRegexp,proto3" json:"gerrit_host_regexp,omitempty"` // Pattern to match Gerrit project, e.g. "infra/luci/luci-go". GerritProjectRegexp string `protobuf:"bytes,2,opt,name=gerrit_project_regexp,json=gerritProjectRegexp,proto3" json:"gerrit_project_regexp,omitempty"` // Pattern to match fully qualified GoB refs, e.g. "refs/heads/.*". GerritRefRegexp string `protobuf:"bytes,5,opt,name=gerrit_ref_regexp,json=gerritRefRegexp,proto3" json:"gerrit_ref_regexp,omitempty"` // Pattern to match file path. This is a relative path from repo root // (no starting slash). PathRegexp string `protobuf:"bytes,3,opt,name=path_regexp,json=pathRegexp,proto3" json:"path_regexp,omitempty"` // If exclude is true, then if this filter matches a file, the file is // considered not included. (If all files are not included, then the // builder is not triggered.) Exclude bool `protobuf:"varint,4,opt,name=exclude,proto3" json:"exclude,omitempty"` // contains filtered or unexported fields }
Optional. Require this builder only if a file in the CL is included by location_filters.
location_filters is an ordered list of LocationFilter messages, where each message includes regular expressions for the matching Gerrit host, Gerrit project and file path, as well as a boolean field to specify whether the filter is an exclude filter or not.
Files "in the CL" means all files touched, i.e. added, modified or deleted.
The Gerrit host, Gerrit project and file path are matched against the respective patterns in the LocationFilter. The last LocationFilter that match all patterns (host, project, and path) determines whether the file is considered included, i.e. if the last matching LocationFilter has exclude set to false, then it's included; else included.
If none of the LocationFilters match, then the file is considered included if the first rule is an exclude rule; else the file is excluded.
If host, project or path are empty, then they will match anything (".*") by default. The comparison is a full match; the pattern is implicitly anchored with "^" and "$", so there is no need add them. The syntax for regular expressions is Google's re2 syntax for regexp, documented here: https://github.com/google/re2/wiki/Syntax.
If location_filters is non-empty, and no file in a CL is included by location_filters, then this builder will not be triggered. If location_filters is empty or not specified, then the builder will be triggered by default, subject to other conditions, e.g. mode_allowlist.
This option currently can not be combined with the `GerritCQAbility.allow_submit_with_open_deps` option. If you need to combine, please talk to LUCI CV owners. (https://chromium.googlesource.com/infra/luci/luci-go/+/HEAD/cv/OWNERS)
Examples:
location_filters: {path_regexp: "excluded/.+", exclude: true} location_filters: {path_regexp: "excluded/exception", exclude: false} Result: files outside of the "excluded" directory will be included, and so will "excluded/exception" will, but other files in the "excluded" directory will not match. location_filters: {path_regexp: ".*", exclude: false} // include all by default location_filters: { host_regexp: "example.com", project_regexp: "repo", ref_regexp: "refs/heads/.+", exclude: true, } location_filters: { host_regexp: "example.com", project_regexp: "repo", ref_regexp: "refs/heads/.+", path_regexp: "all/one.txt" exclude: false, }
Result: files in the specified host, repo and ref will not be included, except all/one.txt which will be included; files outside of the given host/repo/ref will be included.
func (*Verifiers_Tryjob_Builder_LocationFilter) Descriptor
deprecated
func (*Verifiers_Tryjob_Builder_LocationFilter) Descriptor() ([]byte, []int)
Deprecated: Use Verifiers_Tryjob_Builder_LocationFilter.ProtoReflect.Descriptor instead.
func (*Verifiers_Tryjob_Builder_LocationFilter) GetExclude ¶
func (x *Verifiers_Tryjob_Builder_LocationFilter) GetExclude() bool
func (*Verifiers_Tryjob_Builder_LocationFilter) GetGerritHostRegexp ¶
func (x *Verifiers_Tryjob_Builder_LocationFilter) GetGerritHostRegexp() string
func (*Verifiers_Tryjob_Builder_LocationFilter) GetGerritProjectRegexp ¶
func (x *Verifiers_Tryjob_Builder_LocationFilter) GetGerritProjectRegexp() string
func (*Verifiers_Tryjob_Builder_LocationFilter) GetGerritRefRegexp ¶
func (x *Verifiers_Tryjob_Builder_LocationFilter) GetGerritRefRegexp() string
func (*Verifiers_Tryjob_Builder_LocationFilter) GetPathRegexp ¶
func (x *Verifiers_Tryjob_Builder_LocationFilter) GetPathRegexp() string
func (*Verifiers_Tryjob_Builder_LocationFilter) ProtoMessage ¶
func (*Verifiers_Tryjob_Builder_LocationFilter) ProtoMessage()
func (*Verifiers_Tryjob_Builder_LocationFilter) ProtoReflect ¶
func (x *Verifiers_Tryjob_Builder_LocationFilter) ProtoReflect() protoreflect.Message
func (*Verifiers_Tryjob_Builder_LocationFilter) Reset ¶
func (x *Verifiers_Tryjob_Builder_LocationFilter) Reset()
func (*Verifiers_Tryjob_Builder_LocationFilter) String ¶
func (x *Verifiers_Tryjob_Builder_LocationFilter) String() string
func (*Verifiers_Tryjob_Builder_LocationFilter) Validate ¶
func (m *Verifiers_Tryjob_Builder_LocationFilter) Validate() error
Validate checks the field values on Verifiers_Tryjob_Builder_LocationFilter with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Verifiers_Tryjob_Builder_LocationFilter) ValidateAll ¶
func (m *Verifiers_Tryjob_Builder_LocationFilter) ValidateAll() error
ValidateAll checks the field values on Verifiers_Tryjob_Builder_LocationFilter with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Verifiers_Tryjob_Builder_LocationFilterMultiError, or nil if none found.
type Verifiers_Tryjob_Builder_LocationFilterMultiError ¶
type Verifiers_Tryjob_Builder_LocationFilterMultiError []error
Verifiers_Tryjob_Builder_LocationFilterMultiError is an error wrapping multiple validation errors returned by Verifiers_Tryjob_Builder_LocationFilter.ValidateAll() if the designated constraints aren't met.
func (Verifiers_Tryjob_Builder_LocationFilterMultiError) AllErrors ¶
func (m Verifiers_Tryjob_Builder_LocationFilterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Verifiers_Tryjob_Builder_LocationFilterMultiError) Error ¶
func (m Verifiers_Tryjob_Builder_LocationFilterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Verifiers_Tryjob_Builder_LocationFilterValidationError ¶
type Verifiers_Tryjob_Builder_LocationFilterValidationError struct {
// contains filtered or unexported fields
}
Verifiers_Tryjob_Builder_LocationFilterValidationError is the validation error returned by Verifiers_Tryjob_Builder_LocationFilter.Validate if the designated constraints aren't met.
func (Verifiers_Tryjob_Builder_LocationFilterValidationError) Cause ¶
func (e Verifiers_Tryjob_Builder_LocationFilterValidationError) Cause() error
Cause function returns cause value.
func (Verifiers_Tryjob_Builder_LocationFilterValidationError) Error ¶
func (e Verifiers_Tryjob_Builder_LocationFilterValidationError) Error() string
Error satisfies the builtin error interface
func (Verifiers_Tryjob_Builder_LocationFilterValidationError) ErrorName ¶
func (e Verifiers_Tryjob_Builder_LocationFilterValidationError) ErrorName() string
ErrorName returns error name.
func (Verifiers_Tryjob_Builder_LocationFilterValidationError) Field ¶
func (e Verifiers_Tryjob_Builder_LocationFilterValidationError) Field() string
Field function returns field value.
func (Verifiers_Tryjob_Builder_LocationFilterValidationError) Key ¶
func (e Verifiers_Tryjob_Builder_LocationFilterValidationError) Key() bool
Key function returns key value.
func (Verifiers_Tryjob_Builder_LocationFilterValidationError) Reason ¶
func (e Verifiers_Tryjob_Builder_LocationFilterValidationError) Reason() string
Reason function returns reason value.
type Verifiers_Tryjob_Builder_SkipFooter ¶
type Verifiers_Tryjob_Builder_SkipFooter struct { // // The provided footer key MUST be normalized (dash-case with first // letter of each segment being uppercase. e.g. Bypass-Spell-Checker). Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // which implies any value would skip the builder. ValueRegexp string `protobuf:"bytes,2,opt,name=value_regexp,json=valueRegexp,proto3" json:"value_regexp,omitempty"` // contains filtered or unexported fields }
SkipFooter specifies a git footer and its value pattern that if found in the commit message, this builder will be skipped in all LUCI CV Runs.
func (*Verifiers_Tryjob_Builder_SkipFooter) Descriptor
deprecated
func (*Verifiers_Tryjob_Builder_SkipFooter) Descriptor() ([]byte, []int)
Deprecated: Use Verifiers_Tryjob_Builder_SkipFooter.ProtoReflect.Descriptor instead.
func (*Verifiers_Tryjob_Builder_SkipFooter) GetKey ¶
func (x *Verifiers_Tryjob_Builder_SkipFooter) GetKey() string
func (*Verifiers_Tryjob_Builder_SkipFooter) GetValueRegexp ¶
func (x *Verifiers_Tryjob_Builder_SkipFooter) GetValueRegexp() string
func (*Verifiers_Tryjob_Builder_SkipFooter) ProtoMessage ¶
func (*Verifiers_Tryjob_Builder_SkipFooter) ProtoMessage()
func (*Verifiers_Tryjob_Builder_SkipFooter) ProtoReflect ¶
func (x *Verifiers_Tryjob_Builder_SkipFooter) ProtoReflect() protoreflect.Message
func (*Verifiers_Tryjob_Builder_SkipFooter) Reset ¶
func (x *Verifiers_Tryjob_Builder_SkipFooter) Reset()
func (*Verifiers_Tryjob_Builder_SkipFooter) String ¶
func (x *Verifiers_Tryjob_Builder_SkipFooter) String() string
func (*Verifiers_Tryjob_Builder_SkipFooter) Validate ¶
func (m *Verifiers_Tryjob_Builder_SkipFooter) Validate() error
Validate checks the field values on Verifiers_Tryjob_Builder_SkipFooter with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Verifiers_Tryjob_Builder_SkipFooter) ValidateAll ¶
func (m *Verifiers_Tryjob_Builder_SkipFooter) ValidateAll() error
ValidateAll checks the field values on Verifiers_Tryjob_Builder_SkipFooter with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Verifiers_Tryjob_Builder_SkipFooterMultiError, or nil if none found.
type Verifiers_Tryjob_Builder_SkipFooterMultiError ¶
type Verifiers_Tryjob_Builder_SkipFooterMultiError []error
Verifiers_Tryjob_Builder_SkipFooterMultiError is an error wrapping multiple validation errors returned by Verifiers_Tryjob_Builder_SkipFooter.ValidateAll() if the designated constraints aren't met.
func (Verifiers_Tryjob_Builder_SkipFooterMultiError) AllErrors ¶
func (m Verifiers_Tryjob_Builder_SkipFooterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Verifiers_Tryjob_Builder_SkipFooterMultiError) Error ¶
func (m Verifiers_Tryjob_Builder_SkipFooterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Verifiers_Tryjob_Builder_SkipFooterValidationError ¶
type Verifiers_Tryjob_Builder_SkipFooterValidationError struct {
// contains filtered or unexported fields
}
Verifiers_Tryjob_Builder_SkipFooterValidationError is the validation error returned by Verifiers_Tryjob_Builder_SkipFooter.Validate if the designated constraints aren't met.
func (Verifiers_Tryjob_Builder_SkipFooterValidationError) Cause ¶
func (e Verifiers_Tryjob_Builder_SkipFooterValidationError) Cause() error
Cause function returns cause value.
func (Verifiers_Tryjob_Builder_SkipFooterValidationError) Error ¶
func (e Verifiers_Tryjob_Builder_SkipFooterValidationError) Error() string
Error satisfies the builtin error interface
func (Verifiers_Tryjob_Builder_SkipFooterValidationError) ErrorName ¶
func (e Verifiers_Tryjob_Builder_SkipFooterValidationError) ErrorName() string
ErrorName returns error name.
func (Verifiers_Tryjob_Builder_SkipFooterValidationError) Field ¶
func (e Verifiers_Tryjob_Builder_SkipFooterValidationError) Field() string
Field function returns field value.
func (Verifiers_Tryjob_Builder_SkipFooterValidationError) Key ¶
func (e Verifiers_Tryjob_Builder_SkipFooterValidationError) Key() bool
Key function returns key value.
func (Verifiers_Tryjob_Builder_SkipFooterValidationError) Reason ¶
func (e Verifiers_Tryjob_Builder_SkipFooterValidationError) Reason() string
Reason function returns reason value.
type Verifiers_Tryjob_EquivalentBuilder ¶
type Verifiers_Tryjob_EquivalentBuilder struct { // Required. Name of this builder. // Format is the same in the same format as Builder.name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Percentage expressing probability of CQ triggering this builder instead // of the builder to which this builder is equivalent to. // // A choice itself is made deterministically based on CL alone, hereby // all CQ attempts on all patchsets of a given CL will trigger the same // builder, assuming CQ config doesn't change in the mean time. // // Note that if `owner_whitelist_group` is also specified, the choice over // which of the two builders to trigger will be made only for CLs owned by // whitelisted group. // // If not specified, defaults to 0, meaning this builder is never // triggered by CQ, but an existing build can be re-used by CQ. // // To illustrate, suppose percentage=10. Then, // // Without owner_whitelist_group, // ~10% of all CQ attempts will trigger this builder. // With owner_whitelist_group set and, suppose, 1/5 of CQ attempts are // ran on CLs owned by this group, then only ~(1/10)*(1/5) or // ~2% of all CQ attempts will trigger this builder. Percentage float32 `protobuf:"fixed32,2,opt,name=percentage,proto3" json:"percentage,omitempty"` // If specified, limits the builder to CL owners in this group. OwnerWhitelistGroup string `protobuf:"bytes,3,opt,name=owner_whitelist_group,json=ownerWhitelistGroup,proto3" json:"owner_whitelist_group,omitempty"` // contains filtered or unexported fields }
func (*Verifiers_Tryjob_EquivalentBuilder) Descriptor
deprecated
func (*Verifiers_Tryjob_EquivalentBuilder) Descriptor() ([]byte, []int)
Deprecated: Use Verifiers_Tryjob_EquivalentBuilder.ProtoReflect.Descriptor instead.
func (*Verifiers_Tryjob_EquivalentBuilder) GetName ¶
func (x *Verifiers_Tryjob_EquivalentBuilder) GetName() string
func (*Verifiers_Tryjob_EquivalentBuilder) GetOwnerWhitelistGroup ¶
func (x *Verifiers_Tryjob_EquivalentBuilder) GetOwnerWhitelistGroup() string
func (*Verifiers_Tryjob_EquivalentBuilder) GetPercentage ¶
func (x *Verifiers_Tryjob_EquivalentBuilder) GetPercentage() float32
func (*Verifiers_Tryjob_EquivalentBuilder) ProtoMessage ¶
func (*Verifiers_Tryjob_EquivalentBuilder) ProtoMessage()
func (*Verifiers_Tryjob_EquivalentBuilder) ProtoReflect ¶
func (x *Verifiers_Tryjob_EquivalentBuilder) ProtoReflect() protoreflect.Message
func (*Verifiers_Tryjob_EquivalentBuilder) Reset ¶
func (x *Verifiers_Tryjob_EquivalentBuilder) Reset()
func (*Verifiers_Tryjob_EquivalentBuilder) String ¶
func (x *Verifiers_Tryjob_EquivalentBuilder) String() string
func (*Verifiers_Tryjob_EquivalentBuilder) Validate ¶
func (m *Verifiers_Tryjob_EquivalentBuilder) Validate() error
Validate checks the field values on Verifiers_Tryjob_EquivalentBuilder with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Verifiers_Tryjob_EquivalentBuilder) ValidateAll ¶
func (m *Verifiers_Tryjob_EquivalentBuilder) ValidateAll() error
ValidateAll checks the field values on Verifiers_Tryjob_EquivalentBuilder with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Verifiers_Tryjob_EquivalentBuilderMultiError, or nil if none found.
type Verifiers_Tryjob_EquivalentBuilderMultiError ¶
type Verifiers_Tryjob_EquivalentBuilderMultiError []error
Verifiers_Tryjob_EquivalentBuilderMultiError is an error wrapping multiple validation errors returned by Verifiers_Tryjob_EquivalentBuilder.ValidateAll() if the designated constraints aren't met.
func (Verifiers_Tryjob_EquivalentBuilderMultiError) AllErrors ¶
func (m Verifiers_Tryjob_EquivalentBuilderMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Verifiers_Tryjob_EquivalentBuilderMultiError) Error ¶
func (m Verifiers_Tryjob_EquivalentBuilderMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Verifiers_Tryjob_EquivalentBuilderValidationError ¶
type Verifiers_Tryjob_EquivalentBuilderValidationError struct {
// contains filtered or unexported fields
}
Verifiers_Tryjob_EquivalentBuilderValidationError is the validation error returned by Verifiers_Tryjob_EquivalentBuilder.Validate if the designated constraints aren't met.
func (Verifiers_Tryjob_EquivalentBuilderValidationError) Cause ¶
func (e Verifiers_Tryjob_EquivalentBuilderValidationError) Cause() error
Cause function returns cause value.
func (Verifiers_Tryjob_EquivalentBuilderValidationError) Error ¶
func (e Verifiers_Tryjob_EquivalentBuilderValidationError) Error() string
Error satisfies the builtin error interface
func (Verifiers_Tryjob_EquivalentBuilderValidationError) ErrorName ¶
func (e Verifiers_Tryjob_EquivalentBuilderValidationError) ErrorName() string
ErrorName returns error name.
func (Verifiers_Tryjob_EquivalentBuilderValidationError) Field ¶
func (e Verifiers_Tryjob_EquivalentBuilderValidationError) Field() string
Field function returns field value.
func (Verifiers_Tryjob_EquivalentBuilderValidationError) Key ¶
func (e Verifiers_Tryjob_EquivalentBuilderValidationError) Key() bool
Key function returns key value.
func (Verifiers_Tryjob_EquivalentBuilderValidationError) Reason ¶
func (e Verifiers_Tryjob_EquivalentBuilderValidationError) Reason() string
Reason function returns reason value.
type Verifiers_Tryjob_IncludableBuilder ¶
type Verifiers_Tryjob_IncludableBuilder struct { // Required. Name of this builder. // Format is the same in the same format as Builder.name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Builder which can be included via `CQ-Include-Trybots:` in CL description.
func (*Verifiers_Tryjob_IncludableBuilder) Descriptor
deprecated
func (*Verifiers_Tryjob_IncludableBuilder) Descriptor() ([]byte, []int)
Deprecated: Use Verifiers_Tryjob_IncludableBuilder.ProtoReflect.Descriptor instead.
func (*Verifiers_Tryjob_IncludableBuilder) GetName ¶
func (x *Verifiers_Tryjob_IncludableBuilder) GetName() string
func (*Verifiers_Tryjob_IncludableBuilder) ProtoMessage ¶
func (*Verifiers_Tryjob_IncludableBuilder) ProtoMessage()
func (*Verifiers_Tryjob_IncludableBuilder) ProtoReflect ¶
func (x *Verifiers_Tryjob_IncludableBuilder) ProtoReflect() protoreflect.Message
func (*Verifiers_Tryjob_IncludableBuilder) Reset ¶
func (x *Verifiers_Tryjob_IncludableBuilder) Reset()
func (*Verifiers_Tryjob_IncludableBuilder) String ¶
func (x *Verifiers_Tryjob_IncludableBuilder) String() string
func (*Verifiers_Tryjob_IncludableBuilder) Validate ¶
func (m *Verifiers_Tryjob_IncludableBuilder) Validate() error
Validate checks the field values on Verifiers_Tryjob_IncludableBuilder with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Verifiers_Tryjob_IncludableBuilder) ValidateAll ¶
func (m *Verifiers_Tryjob_IncludableBuilder) ValidateAll() error
ValidateAll checks the field values on Verifiers_Tryjob_IncludableBuilder with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Verifiers_Tryjob_IncludableBuilderMultiError, or nil if none found.
type Verifiers_Tryjob_IncludableBuilderMultiError ¶
type Verifiers_Tryjob_IncludableBuilderMultiError []error
Verifiers_Tryjob_IncludableBuilderMultiError is an error wrapping multiple validation errors returned by Verifiers_Tryjob_IncludableBuilder.ValidateAll() if the designated constraints aren't met.
func (Verifiers_Tryjob_IncludableBuilderMultiError) AllErrors ¶
func (m Verifiers_Tryjob_IncludableBuilderMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Verifiers_Tryjob_IncludableBuilderMultiError) Error ¶
func (m Verifiers_Tryjob_IncludableBuilderMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Verifiers_Tryjob_IncludableBuilderValidationError ¶
type Verifiers_Tryjob_IncludableBuilderValidationError struct {
// contains filtered or unexported fields
}
Verifiers_Tryjob_IncludableBuilderValidationError is the validation error returned by Verifiers_Tryjob_IncludableBuilder.Validate if the designated constraints aren't met.
func (Verifiers_Tryjob_IncludableBuilderValidationError) Cause ¶
func (e Verifiers_Tryjob_IncludableBuilderValidationError) Cause() error
Cause function returns cause value.
func (Verifiers_Tryjob_IncludableBuilderValidationError) Error ¶
func (e Verifiers_Tryjob_IncludableBuilderValidationError) Error() string
Error satisfies the builtin error interface
func (Verifiers_Tryjob_IncludableBuilderValidationError) ErrorName ¶
func (e Verifiers_Tryjob_IncludableBuilderValidationError) ErrorName() string
ErrorName returns error name.
func (Verifiers_Tryjob_IncludableBuilderValidationError) Field ¶
func (e Verifiers_Tryjob_IncludableBuilderValidationError) Field() string
Field function returns field value.
func (Verifiers_Tryjob_IncludableBuilderValidationError) Key ¶
func (e Verifiers_Tryjob_IncludableBuilderValidationError) Key() bool
Key function returns key value.
func (Verifiers_Tryjob_IncludableBuilderValidationError) Reason ¶
func (e Verifiers_Tryjob_IncludableBuilderValidationError) Reason() string
Reason function returns reason value.
type Verifiers_Tryjob_RetryConfig ¶
type Verifiers_Tryjob_RetryConfig struct { // Retry quota for a single tryjob. SingleQuota int32 `protobuf:"varint,1,opt,name=single_quota,json=singleQuota,proto3" json:"single_quota,omitempty"` // Retry quota for all tryjobs in a CL. GlobalQuota int32 `protobuf:"varint,2,opt,name=global_quota,json=globalQuota,proto3" json:"global_quota,omitempty"` // The weight assigned to each tryjob failure. A failure is as a // buildbucket build whose result == 'FAILURE'. FailureWeight int32 `protobuf:"varint,3,opt,name=failure_weight,json=failureWeight,proto3" json:"failure_weight,omitempty"` // The weight assigned to each transient failure. A transient failure is a // buildbucket build which has result == 'FAILURE' and 'failure_reason' in // ('BUILDBUCKET_FAILURE', 'INFRA_FAILURE'). TransientFailureWeight int32 `` /* 130-byte string literal not displayed */ // The weight assigned to tryjob timeouts. A tryjob timeout is as a // buildbucket build with result == 'CANCELED' and cancelation_reason == // 'TIMEOUT'. TimeoutWeight int32 `protobuf:"varint,5,opt,name=timeout_weight,json=timeoutWeight,proto3" json:"timeout_weight,omitempty"` // contains filtered or unexported fields }
Collection of parameters for deciding whether to retry a single build. If parameter is not specified, its value defaults to 0 (per proto3). Thus, omitting all parameters means no retries of any kind.
CQ's retry logic is as follows: All builds triggered during the lifetime of a CQ attempt for a tryjob are weighted according to the failure type, as described below. The resulting weights are then added together. Call this number W. If W > single_quota, then no more builds are scheduled for that tryjob.
W for every tryjob is then summed up. If that result is strictly greater than global_quota, then the CQ attempt fails, and no more builds are scheduled for the attempt.
func (*Verifiers_Tryjob_RetryConfig) Descriptor
deprecated
func (*Verifiers_Tryjob_RetryConfig) Descriptor() ([]byte, []int)
Deprecated: Use Verifiers_Tryjob_RetryConfig.ProtoReflect.Descriptor instead.
func (*Verifiers_Tryjob_RetryConfig) GetFailureWeight ¶
func (x *Verifiers_Tryjob_RetryConfig) GetFailureWeight() int32
func (*Verifiers_Tryjob_RetryConfig) GetGlobalQuota ¶
func (x *Verifiers_Tryjob_RetryConfig) GetGlobalQuota() int32
func (*Verifiers_Tryjob_RetryConfig) GetSingleQuota ¶
func (x *Verifiers_Tryjob_RetryConfig) GetSingleQuota() int32
func (*Verifiers_Tryjob_RetryConfig) GetTimeoutWeight ¶
func (x *Verifiers_Tryjob_RetryConfig) GetTimeoutWeight() int32
func (*Verifiers_Tryjob_RetryConfig) GetTransientFailureWeight ¶
func (x *Verifiers_Tryjob_RetryConfig) GetTransientFailureWeight() int32
func (*Verifiers_Tryjob_RetryConfig) ProtoMessage ¶
func (*Verifiers_Tryjob_RetryConfig) ProtoMessage()
func (*Verifiers_Tryjob_RetryConfig) ProtoReflect ¶
func (x *Verifiers_Tryjob_RetryConfig) ProtoReflect() protoreflect.Message
func (*Verifiers_Tryjob_RetryConfig) Reset ¶
func (x *Verifiers_Tryjob_RetryConfig) Reset()
func (*Verifiers_Tryjob_RetryConfig) String ¶
func (x *Verifiers_Tryjob_RetryConfig) String() string
func (*Verifiers_Tryjob_RetryConfig) Validate ¶
func (m *Verifiers_Tryjob_RetryConfig) Validate() error
Validate checks the field values on Verifiers_Tryjob_RetryConfig with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Verifiers_Tryjob_RetryConfig) ValidateAll ¶
func (m *Verifiers_Tryjob_RetryConfig) ValidateAll() error
ValidateAll checks the field values on Verifiers_Tryjob_RetryConfig with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Verifiers_Tryjob_RetryConfigMultiError, or nil if none found.
type Verifiers_Tryjob_RetryConfigMultiError ¶
type Verifiers_Tryjob_RetryConfigMultiError []error
Verifiers_Tryjob_RetryConfigMultiError is an error wrapping multiple validation errors returned by Verifiers_Tryjob_RetryConfig.ValidateAll() if the designated constraints aren't met.
func (Verifiers_Tryjob_RetryConfigMultiError) AllErrors ¶
func (m Verifiers_Tryjob_RetryConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Verifiers_Tryjob_RetryConfigMultiError) Error ¶
func (m Verifiers_Tryjob_RetryConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Verifiers_Tryjob_RetryConfigValidationError ¶
type Verifiers_Tryjob_RetryConfigValidationError struct {
// contains filtered or unexported fields
}
Verifiers_Tryjob_RetryConfigValidationError is the validation error returned by Verifiers_Tryjob_RetryConfig.Validate if the designated constraints aren't met.
func (Verifiers_Tryjob_RetryConfigValidationError) Cause ¶
func (e Verifiers_Tryjob_RetryConfigValidationError) Cause() error
Cause function returns cause value.
func (Verifiers_Tryjob_RetryConfigValidationError) Error ¶
func (e Verifiers_Tryjob_RetryConfigValidationError) Error() string
Error satisfies the builtin error interface
func (Verifiers_Tryjob_RetryConfigValidationError) ErrorName ¶
func (e Verifiers_Tryjob_RetryConfigValidationError) ErrorName() string
ErrorName returns error name.
func (Verifiers_Tryjob_RetryConfigValidationError) Field ¶
func (e Verifiers_Tryjob_RetryConfigValidationError) Field() string
Field function returns field value.
func (Verifiers_Tryjob_RetryConfigValidationError) Key ¶
func (e Verifiers_Tryjob_RetryConfigValidationError) Key() bool
Key function returns key value.
func (Verifiers_Tryjob_RetryConfigValidationError) Reason ¶
func (e Verifiers_Tryjob_RetryConfigValidationError) Reason() string
Reason function returns reason value.