delivery

package
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_prodvana_delivery_delivery_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CanaryProgress

type CanaryProgress struct {

	// weight to advance canary to, percentage 0-100
	CanaryWeight int32 `protobuf:"varint,1,opt,name=canary_weight,json=canaryWeight,proto3" json:"canary_weight,omitempty"`
	// duration to pause at this weight before advancing
	Duration *durationpb.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"`
	// contains filtered or unexported fields
}

func (*CanaryProgress) Descriptor deprecated

func (*CanaryProgress) Descriptor() ([]byte, []int)

Deprecated: Use CanaryProgress.ProtoReflect.Descriptor instead.

func (*CanaryProgress) GetCanaryWeight

func (x *CanaryProgress) GetCanaryWeight() int32

func (*CanaryProgress) GetDuration

func (x *CanaryProgress) GetDuration() *durationpb.Duration

func (*CanaryProgress) ProtoMessage

func (*CanaryProgress) ProtoMessage()

func (*CanaryProgress) ProtoReflect

func (x *CanaryProgress) ProtoReflect() protoreflect.Message

func (*CanaryProgress) Reset

func (x *CanaryProgress) Reset()

func (*CanaryProgress) String

func (x *CanaryProgress) String() string

func (*CanaryProgress) Validate

func (m *CanaryProgress) Validate() error

Validate checks the field values on CanaryProgress 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 (*CanaryProgress) ValidateAll

func (m *CanaryProgress) ValidateAll() error

ValidateAll checks the field values on CanaryProgress 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 CanaryProgressMultiError, or nil if none found.

type CanaryProgressMultiError

type CanaryProgressMultiError []error

CanaryProgressMultiError is an error wrapping multiple validation errors returned by CanaryProgress.ValidateAll() if the designated constraints aren't met.

func (CanaryProgressMultiError) AllErrors

func (m CanaryProgressMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CanaryProgressMultiError) Error

func (m CanaryProgressMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CanaryProgressValidationError

type CanaryProgressValidationError struct {
	// contains filtered or unexported fields
}

CanaryProgressValidationError is the validation error returned by CanaryProgress.Validate if the designated constraints aren't met.

func (CanaryProgressValidationError) Cause

Cause function returns cause value.

func (CanaryProgressValidationError) Error

Error satisfies the builtin error interface

func (CanaryProgressValidationError) ErrorName

func (e CanaryProgressValidationError) ErrorName() string

ErrorName returns error name.

func (CanaryProgressValidationError) Field

Field function returns field value.

func (CanaryProgressValidationError) Key

Key function returns key value.

func (CanaryProgressValidationError) Reason

Reason function returns reason value.

type DeliveryConfig

type DeliveryConfig struct {

	// progression of canary as delivery occurs
	CanaryProgress    []*CanaryProgress `protobuf:"bytes,1,rep,name=canary_progress,json=canaryProgress,proto3" json:"canary_progress,omitempty"`
	AnalysisTemplates []string          `protobuf:"bytes,2,rep,name=analysis_templates,json=analysisTemplates,proto3" json:"analysis_templates,omitempty"`
	// contains filtered or unexported fields
}

func (*DeliveryConfig) Descriptor deprecated

func (*DeliveryConfig) Descriptor() ([]byte, []int)

Deprecated: Use DeliveryConfig.ProtoReflect.Descriptor instead.

func (*DeliveryConfig) GetAnalysisTemplates

func (x *DeliveryConfig) GetAnalysisTemplates() []string

func (*DeliveryConfig) GetCanaryProgress

func (x *DeliveryConfig) GetCanaryProgress() []*CanaryProgress

func (*DeliveryConfig) ProtoMessage

func (*DeliveryConfig) ProtoMessage()

func (*DeliveryConfig) ProtoReflect

func (x *DeliveryConfig) ProtoReflect() protoreflect.Message

func (*DeliveryConfig) Reset

func (x *DeliveryConfig) Reset()

func (*DeliveryConfig) String

func (x *DeliveryConfig) String() string

func (*DeliveryConfig) Validate

func (m *DeliveryConfig) Validate() error

Validate checks the field values on DeliveryConfig 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 (*DeliveryConfig) ValidateAll

func (m *DeliveryConfig) ValidateAll() error

ValidateAll checks the field values on DeliveryConfig 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 DeliveryConfigMultiError, or nil if none found.

type DeliveryConfigMultiError

type DeliveryConfigMultiError []error

DeliveryConfigMultiError is an error wrapping multiple validation errors returned by DeliveryConfig.ValidateAll() if the designated constraints aren't met.

func (DeliveryConfigMultiError) AllErrors

func (m DeliveryConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeliveryConfigMultiError) Error

func (m DeliveryConfigMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DeliveryConfigValidationError

type DeliveryConfigValidationError struct {
	// contains filtered or unexported fields
}

DeliveryConfigValidationError is the validation error returned by DeliveryConfig.Validate if the designated constraints aren't met.

func (DeliveryConfigValidationError) Cause

Cause function returns cause value.

func (DeliveryConfigValidationError) Error

Error satisfies the builtin error interface

func (DeliveryConfigValidationError) ErrorName

func (e DeliveryConfigValidationError) ErrorName() string

ErrorName returns error name.

func (DeliveryConfigValidationError) Field

Field function returns field value.

func (DeliveryConfigValidationError) Key

Key function returns key value.

func (DeliveryConfigValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL