labels

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_prodvana_labels_labels_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type LabelDefinition

type LabelDefinition struct {
	Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*LabelDefinition) Descriptor deprecated

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

Deprecated: Use LabelDefinition.ProtoReflect.Descriptor instead.

func (*LabelDefinition) GetLabel

func (x *LabelDefinition) GetLabel() string

func (*LabelDefinition) GetValue

func (x *LabelDefinition) GetValue() string

func (*LabelDefinition) ProtoMessage

func (*LabelDefinition) ProtoMessage()

func (*LabelDefinition) ProtoReflect

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

func (*LabelDefinition) Reset

func (x *LabelDefinition) Reset()

func (*LabelDefinition) String

func (x *LabelDefinition) String() string

func (*LabelDefinition) Validate

func (m *LabelDefinition) Validate() error

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

func (m *LabelDefinition) ValidateAll() error

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

type LabelDefinitionMultiError

type LabelDefinitionMultiError []error

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

func (LabelDefinitionMultiError) AllErrors

func (m LabelDefinitionMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LabelDefinitionMultiError) Error

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

type LabelDefinitionValidationError

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

LabelDefinitionValidationError is the validation error returned by LabelDefinition.Validate if the designated constraints aren't met.

func (LabelDefinitionValidationError) Cause

Cause function returns cause value.

func (LabelDefinitionValidationError) Error

Error satisfies the builtin error interface

func (LabelDefinitionValidationError) ErrorName

func (e LabelDefinitionValidationError) ErrorName() string

ErrorName returns error name.

func (LabelDefinitionValidationError) Field

Field function returns field value.

func (LabelDefinitionValidationError) Key

Key function returns key value.

func (LabelDefinitionValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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