model

package
v0.3.42 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DeploymentStatus_name = map[int32]string{
		0: "UNKNOWN_STATUS",
		1: "PENDING",
		2: "SUCCEEDED",
		3: "FAILED",
		4: "PREVIEW",
	}
	DeploymentStatus_value = map[string]int32{
		"UNKNOWN_STATUS": 0,
		"PENDING":        1,
		"SUCCEEDED":      2,
		"FAILED":         3,
		"PREVIEW":        4,
	}
)

Enum value maps for DeploymentStatus.

View Source
var File_prodvana_deployment_model_object_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CommitAnalysis

type CommitAnalysis struct {
	CommitsAdded   int64                     `protobuf:"varint,1,opt,name=commits_added,json=commitsAdded,proto3" json:"commits_added,omitempty"`
	CommitsRemoved int64                     `protobuf:"varint,2,opt,name=commits_removed,json=commitsRemoved,proto3" json:"commits_removed,omitempty"`
	ImpactAnalysis *ImpactAnalysisComparison `protobuf:"bytes,3,opt,name=impact_analysis,json=impactAnalysis,proto3" json:"impact_analysis,omitempty"`
	// contains filtered or unexported fields
}

func (*CommitAnalysis) Descriptor deprecated

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

Deprecated: Use CommitAnalysis.ProtoReflect.Descriptor instead.

func (*CommitAnalysis) GetCommitsAdded

func (x *CommitAnalysis) GetCommitsAdded() int64

func (*CommitAnalysis) GetCommitsRemoved

func (x *CommitAnalysis) GetCommitsRemoved() int64

func (*CommitAnalysis) GetImpactAnalysis

func (x *CommitAnalysis) GetImpactAnalysis() *ImpactAnalysisComparison

func (*CommitAnalysis) ProtoMessage

func (*CommitAnalysis) ProtoMessage()

func (*CommitAnalysis) ProtoReflect

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

func (*CommitAnalysis) Reset

func (x *CommitAnalysis) Reset()

func (*CommitAnalysis) String

func (x *CommitAnalysis) String() string

func (*CommitAnalysis) Validate

func (m *CommitAnalysis) Validate() error

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

func (m *CommitAnalysis) ValidateAll() error

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

type CommitAnalysisMultiError

type CommitAnalysisMultiError []error

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

func (CommitAnalysisMultiError) AllErrors

func (m CommitAnalysisMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CommitAnalysisMultiError) Error

func (m CommitAnalysisMultiError) Error() string

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

type CommitAnalysisValidationError

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

CommitAnalysisValidationError is the validation error returned by CommitAnalysis.Validate if the designated constraints aren't met.

func (CommitAnalysisValidationError) Cause

Cause function returns cause value.

func (CommitAnalysisValidationError) Error

Error satisfies the builtin error interface

func (CommitAnalysisValidationError) ErrorName

func (e CommitAnalysisValidationError) ErrorName() string

ErrorName returns error name.

func (CommitAnalysisValidationError) Field

Field function returns field value.

func (CommitAnalysisValidationError) Key

Key function returns key value.

func (CommitAnalysisValidationError) Reason

Reason function returns reason value.

type Deployment

type Deployment struct {
	Meta   *object.ObjectMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	Config *DeploymentConfig  `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	// TODO(naphat) should this really be part of the proto here, or should it be a separate endpoint so we can request arbitrary comparison?
	Comparison *DeploymentComparison `protobuf:"bytes,3,opt,name=comparison,proto3" json:"comparison,omitempty"`
	State      *DeploymentState      `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*Deployment) Descriptor deprecated

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

Deprecated: Use Deployment.ProtoReflect.Descriptor instead.

func (*Deployment) GetComparison

func (x *Deployment) GetComparison() *DeploymentComparison

func (*Deployment) GetConfig

func (x *Deployment) GetConfig() *DeploymentConfig

func (*Deployment) GetMeta

func (x *Deployment) GetMeta() *object.ObjectMeta

func (*Deployment) GetState

func (x *Deployment) GetState() *DeploymentState

func (*Deployment) ProtoMessage

func (*Deployment) ProtoMessage()

func (*Deployment) ProtoReflect

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

func (*Deployment) Reset

func (x *Deployment) Reset()

func (*Deployment) String

func (x *Deployment) String() string

func (*Deployment) Validate

func (m *Deployment) Validate() error

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

func (m *Deployment) ValidateAll() error

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

type DeploymentComparison

type DeploymentComparison struct {
	Prev           *object.ObjectMeta `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
	PrevRepository string             `protobuf:"bytes,2,opt,name=prev_repository,json=prevRepository,proto3" json:"prev_repository,omitempty"`
	NewRepository  string             `protobuf:"bytes,3,opt,name=new_repository,json=newRepository,proto3" json:"new_repository,omitempty"`
	PrevCommitId   string             `protobuf:"bytes,4,opt,name=prev_commit_id,json=prevCommitId,proto3" json:"prev_commit_id,omitempty"`
	NewCommitId    string             `protobuf:"bytes,5,opt,name=new_commit_id,json=newCommitId,proto3" json:"new_commit_id,omitempty"`
	CommitAnalysis *CommitAnalysis    `protobuf:"bytes,14,opt,name=commit_analysis,json=commitAnalysis,proto3" json:"commit_analysis,omitempty"` // only set if the previous commit is set and is from the same repo, and the repo is linked to prodvana
	// only set for Prodvana managed deployments
	PrevServiceId        string `protobuf:"bytes,8,opt,name=prev_service_id,json=prevServiceId,proto3" json:"prev_service_id,omitempty"`
	PrevReleaseChannelId string `protobuf:"bytes,9,opt,name=prev_release_channel_id,json=prevReleaseChannelId,proto3" json:"prev_release_channel_id,omitempty"`
	PrevServiceVersion   string `protobuf:"bytes,10,opt,name=prev_service_version,json=prevServiceVersion,proto3" json:"prev_service_version,omitempty"`
	NewServiceId         string `protobuf:"bytes,11,opt,name=new_service_id,json=newServiceId,proto3" json:"new_service_id,omitempty"`
	NewReleaseChannelId  string `protobuf:"bytes,12,opt,name=new_release_channel_id,json=newReleaseChannelId,proto3" json:"new_release_channel_id,omitempty"`
	NewServiceVersion    string `protobuf:"bytes,13,opt,name=new_service_version,json=newServiceVersion,proto3" json:"new_service_version,omitempty"`
	// contains filtered or unexported fields
}

func (*DeploymentComparison) Descriptor deprecated

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

Deprecated: Use DeploymentComparison.ProtoReflect.Descriptor instead.

func (*DeploymentComparison) GetCommitAnalysis

func (x *DeploymentComparison) GetCommitAnalysis() *CommitAnalysis

func (*DeploymentComparison) GetNewCommitId

func (x *DeploymentComparison) GetNewCommitId() string

func (*DeploymentComparison) GetNewReleaseChannelId

func (x *DeploymentComparison) GetNewReleaseChannelId() string

func (*DeploymentComparison) GetNewRepository

func (x *DeploymentComparison) GetNewRepository() string

func (*DeploymentComparison) GetNewServiceId

func (x *DeploymentComparison) GetNewServiceId() string

func (*DeploymentComparison) GetNewServiceVersion

func (x *DeploymentComparison) GetNewServiceVersion() string

func (*DeploymentComparison) GetPrev

func (x *DeploymentComparison) GetPrev() *object.ObjectMeta

func (*DeploymentComparison) GetPrevCommitId

func (x *DeploymentComparison) GetPrevCommitId() string

func (*DeploymentComparison) GetPrevReleaseChannelId

func (x *DeploymentComparison) GetPrevReleaseChannelId() string

func (*DeploymentComparison) GetPrevRepository

func (x *DeploymentComparison) GetPrevRepository() string

func (*DeploymentComparison) GetPrevServiceId

func (x *DeploymentComparison) GetPrevServiceId() string

func (*DeploymentComparison) GetPrevServiceVersion

func (x *DeploymentComparison) GetPrevServiceVersion() string

func (*DeploymentComparison) ProtoMessage

func (*DeploymentComparison) ProtoMessage()

func (*DeploymentComparison) ProtoReflect

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

func (*DeploymentComparison) Reset

func (x *DeploymentComparison) Reset()

func (*DeploymentComparison) String

func (x *DeploymentComparison) String() string

func (*DeploymentComparison) Validate

func (m *DeploymentComparison) Validate() error

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

func (m *DeploymentComparison) ValidateAll() error

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

type DeploymentComparisonMultiError

type DeploymentComparisonMultiError []error

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

func (DeploymentComparisonMultiError) AllErrors

func (m DeploymentComparisonMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeploymentComparisonMultiError) Error

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

type DeploymentComparisonValidationError

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

DeploymentComparisonValidationError is the validation error returned by DeploymentComparison.Validate if the designated constraints aren't met.

func (DeploymentComparisonValidationError) Cause

Cause function returns cause value.

func (DeploymentComparisonValidationError) Error

Error satisfies the builtin error interface

func (DeploymentComparisonValidationError) ErrorName

ErrorName returns error name.

func (DeploymentComparisonValidationError) Field

Field function returns field value.

func (DeploymentComparisonValidationError) Key

Key function returns key value.

func (DeploymentComparisonValidationError) Reason

Reason function returns reason value.

type DeploymentConfig

type DeploymentConfig struct {
	CreationTimestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=creation_timestamp,json=creationTimestamp,proto3" json:"creation_timestamp,omitempty"` // must be unset on input
	DeploymentSystem  string                 `protobuf:"bytes,2,opt,name=deployment_system,json=deploymentSystem,proto3" json:"deployment_system,omitempty"`
	// required when recording deployments from external systems
	Service string `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"`
	// required when recording deployments from external systems
	ReleaseChannel string `protobuf:"bytes,4,opt,name=release_channel,json=releaseChannel,proto3" json:"release_channel,omitempty"`
	// required when recording deployments from external systems
	Application      string `protobuf:"bytes,8,opt,name=application,proto3" json:"application,omitempty"`
	Repository       string `protobuf:"bytes,5,opt,name=repository,proto3" json:"repository,omitempty"`             // e.g. github.com/foo/bar
	CommitId         string `protobuf:"bytes,6,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` // commit hash
	User             string `protobuf:"bytes,7,opt,name=user,proto3" json:"user,omitempty"`                         // if known
	ApplicationId    string `protobuf:"bytes,9,opt,name=application_id,json=applicationId,proto3" json:"application_id,omitempty"`
	ServiceId        string `protobuf:"bytes,10,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	ReleaseChannelId string `protobuf:"bytes,11,opt,name=release_channel_id,json=releaseChannelId,proto3" json:"release_channel_id,omitempty"`
	ServiceVersion   string `protobuf:"bytes,12,opt,name=service_version,json=serviceVersion,proto3" json:"service_version,omitempty"`
	DesiredStateId   string `protobuf:"bytes,13,opt,name=desired_state_id,json=desiredStateId,proto3" json:"desired_state_id,omitempty"`
	ReleaseId        string `protobuf:"bytes,14,opt,name=release_id,json=releaseId,proto3" json:"release_id,omitempty"` // next tag: 15
	// contains filtered or unexported fields
}

func (*DeploymentConfig) Descriptor deprecated

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

Deprecated: Use DeploymentConfig.ProtoReflect.Descriptor instead.

func (*DeploymentConfig) GetApplication

func (x *DeploymentConfig) GetApplication() string

func (*DeploymentConfig) GetApplicationId

func (x *DeploymentConfig) GetApplicationId() string

func (*DeploymentConfig) GetCommitId

func (x *DeploymentConfig) GetCommitId() string

func (*DeploymentConfig) GetCreationTimestamp

func (x *DeploymentConfig) GetCreationTimestamp() *timestamppb.Timestamp

func (*DeploymentConfig) GetDeploymentSystem

func (x *DeploymentConfig) GetDeploymentSystem() string

func (*DeploymentConfig) GetDesiredStateId

func (x *DeploymentConfig) GetDesiredStateId() string

func (*DeploymentConfig) GetReleaseChannel

func (x *DeploymentConfig) GetReleaseChannel() string

func (*DeploymentConfig) GetReleaseChannelId

func (x *DeploymentConfig) GetReleaseChannelId() string

func (*DeploymentConfig) GetReleaseId

func (x *DeploymentConfig) GetReleaseId() string

func (*DeploymentConfig) GetRepository

func (x *DeploymentConfig) GetRepository() string

func (*DeploymentConfig) GetService

func (x *DeploymentConfig) GetService() string

func (*DeploymentConfig) GetServiceId

func (x *DeploymentConfig) GetServiceId() string

func (*DeploymentConfig) GetServiceVersion

func (x *DeploymentConfig) GetServiceVersion() string

func (*DeploymentConfig) GetUser

func (x *DeploymentConfig) GetUser() string

func (*DeploymentConfig) ProtoMessage

func (*DeploymentConfig) ProtoMessage()

func (*DeploymentConfig) ProtoReflect

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

func (*DeploymentConfig) Reset

func (x *DeploymentConfig) Reset()

func (*DeploymentConfig) String

func (x *DeploymentConfig) String() string

func (*DeploymentConfig) Validate

func (m *DeploymentConfig) Validate() error

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

func (m *DeploymentConfig) ValidateAll() error

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

type DeploymentConfigMultiError

type DeploymentConfigMultiError []error

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

func (DeploymentConfigMultiError) AllErrors

func (m DeploymentConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeploymentConfigMultiError) Error

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

type DeploymentConfigValidationError

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

DeploymentConfigValidationError is the validation error returned by DeploymentConfig.Validate if the designated constraints aren't met.

func (DeploymentConfigValidationError) Cause

Cause function returns cause value.

func (DeploymentConfigValidationError) Error

Error satisfies the builtin error interface

func (DeploymentConfigValidationError) ErrorName

ErrorName returns error name.

func (DeploymentConfigValidationError) Field

Field function returns field value.

func (DeploymentConfigValidationError) Key

Key function returns key value.

func (DeploymentConfigValidationError) Reason

Reason function returns reason value.

type DeploymentMultiError

type DeploymentMultiError []error

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

func (DeploymentMultiError) AllErrors

func (m DeploymentMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeploymentMultiError) Error

func (m DeploymentMultiError) Error() string

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

type DeploymentState

type DeploymentState struct {
	Status              DeploymentStatus       `protobuf:"varint,1,opt,name=status,proto3,enum=prodvana.deployment.model.DeploymentStatus" json:"status,omitempty"`
	LastUpdateTimestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_update_timestamp,json=lastUpdateTimestamp,proto3" json:"last_update_timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*DeploymentState) Descriptor deprecated

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

Deprecated: Use DeploymentState.ProtoReflect.Descriptor instead.

func (*DeploymentState) GetLastUpdateTimestamp

func (x *DeploymentState) GetLastUpdateTimestamp() *timestamppb.Timestamp

func (*DeploymentState) GetStatus

func (x *DeploymentState) GetStatus() DeploymentStatus

func (*DeploymentState) ProtoMessage

func (*DeploymentState) ProtoMessage()

func (*DeploymentState) ProtoReflect

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

func (*DeploymentState) Reset

func (x *DeploymentState) Reset()

func (*DeploymentState) String

func (x *DeploymentState) String() string

func (*DeploymentState) Validate

func (m *DeploymentState) Validate() error

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

func (m *DeploymentState) ValidateAll() error

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

type DeploymentStateMultiError

type DeploymentStateMultiError []error

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

func (DeploymentStateMultiError) AllErrors

func (m DeploymentStateMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeploymentStateMultiError) Error

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

type DeploymentStateValidationError

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

DeploymentStateValidationError is the validation error returned by DeploymentState.Validate if the designated constraints aren't met.

func (DeploymentStateValidationError) Cause

Cause function returns cause value.

func (DeploymentStateValidationError) Error

Error satisfies the builtin error interface

func (DeploymentStateValidationError) ErrorName

func (e DeploymentStateValidationError) ErrorName() string

ErrorName returns error name.

func (DeploymentStateValidationError) Field

Field function returns field value.

func (DeploymentStateValidationError) Key

Key function returns key value.

func (DeploymentStateValidationError) Reason

Reason function returns reason value.

type DeploymentStatus

type DeploymentStatus int32
const (
	DeploymentStatus_UNKNOWN_STATUS DeploymentStatus = 0
	DeploymentStatus_PENDING        DeploymentStatus = 1
	DeploymentStatus_SUCCEEDED      DeploymentStatus = 2
	DeploymentStatus_FAILED         DeploymentStatus = 3
	DeploymentStatus_PREVIEW        DeploymentStatus = 4
)

func (DeploymentStatus) Descriptor

func (DeploymentStatus) Enum

func (DeploymentStatus) EnumDescriptor deprecated

func (DeploymentStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use DeploymentStatus.Descriptor instead.

func (DeploymentStatus) Number

func (DeploymentStatus) String

func (x DeploymentStatus) String() string

func (DeploymentStatus) Type

type DeploymentValidationError

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

DeploymentValidationError is the validation error returned by Deployment.Validate if the designated constraints aren't met.

func (DeploymentValidationError) Cause

func (e DeploymentValidationError) Cause() error

Cause function returns cause value.

func (DeploymentValidationError) Error

Error satisfies the builtin error interface

func (DeploymentValidationError) ErrorName

func (e DeploymentValidationError) ErrorName() string

ErrorName returns error name.

func (DeploymentValidationError) Field

Field function returns field value.

func (DeploymentValidationError) Key

Key function returns key value.

func (DeploymentValidationError) Reason

func (e DeploymentValidationError) Reason() string

Reason function returns reason value.

type ImpactAnalysisComparison

type ImpactAnalysisComparison struct {

	// commits likely to be impactful, prev_commit_id and new_commit_id have a merge base
	RelevantAddedCommits   []*repo.Commit `protobuf:"bytes,1,rep,name=relevant_added_commits,json=relevantAddedCommits,proto3" json:"relevant_added_commits,omitempty"`
	RelevantRemovedCommits []*repo.Commit `` /* 129-byte string literal not displayed */
	UnanalyzedCommits      int64          `protobuf:"varint,2,opt,name=unanalyzed_commits,json=unanalyzedCommits,proto3" json:"unanalyzed_commits,omitempty"`
	// contains filtered or unexported fields
}

func (*ImpactAnalysisComparison) Descriptor deprecated

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

Deprecated: Use ImpactAnalysisComparison.ProtoReflect.Descriptor instead.

func (*ImpactAnalysisComparison) GetRelevantAddedCommits

func (x *ImpactAnalysisComparison) GetRelevantAddedCommits() []*repo.Commit

func (*ImpactAnalysisComparison) GetRelevantRemovedCommits

func (x *ImpactAnalysisComparison) GetRelevantRemovedCommits() []*repo.Commit

func (*ImpactAnalysisComparison) GetUnanalyzedCommits

func (x *ImpactAnalysisComparison) GetUnanalyzedCommits() int64

func (*ImpactAnalysisComparison) ProtoMessage

func (*ImpactAnalysisComparison) ProtoMessage()

func (*ImpactAnalysisComparison) ProtoReflect

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

func (*ImpactAnalysisComparison) Reset

func (x *ImpactAnalysisComparison) Reset()

func (*ImpactAnalysisComparison) String

func (x *ImpactAnalysisComparison) String() string

func (*ImpactAnalysisComparison) Validate

func (m *ImpactAnalysisComparison) Validate() error

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

func (m *ImpactAnalysisComparison) ValidateAll() error

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

type ImpactAnalysisComparisonMultiError

type ImpactAnalysisComparisonMultiError []error

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

func (ImpactAnalysisComparisonMultiError) AllErrors

func (m ImpactAnalysisComparisonMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ImpactAnalysisComparisonMultiError) Error

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

type ImpactAnalysisComparisonValidationError

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

ImpactAnalysisComparisonValidationError is the validation error returned by ImpactAnalysisComparison.Validate if the designated constraints aren't met.

func (ImpactAnalysisComparisonValidationError) Cause

Cause function returns cause value.

func (ImpactAnalysisComparisonValidationError) Error

Error satisfies the builtin error interface

func (ImpactAnalysisComparisonValidationError) ErrorName

ErrorName returns error name.

func (ImpactAnalysisComparisonValidationError) Field

Field function returns field value.

func (ImpactAnalysisComparisonValidationError) Key

Key function returns key value.

func (ImpactAnalysisComparisonValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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