object

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_prodvana_object_meta_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ObjectMeta

type ObjectMeta struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name    string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	// only set for objects who has configurations with parametrization support. At the time of this writing, only services.
	ConfigVersion  string                  `protobuf:"bytes,4,opt,name=config_version,json=configVersion,proto3" json:"config_version,omitempty"`
	Source         version.Source          `protobuf:"varint,5,opt,name=source,proto3,enum=prodvana.version.Source" json:"source,omitempty"`
	SourceMetadata *version.SourceMetadata `protobuf:"bytes,6,opt,name=source_metadata,json=sourceMetadata,proto3" json:"source_metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*ObjectMeta) Descriptor deprecated

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

Deprecated: Use ObjectMeta.ProtoReflect.Descriptor instead.

func (*ObjectMeta) GetConfigVersion

func (x *ObjectMeta) GetConfigVersion() string

func (*ObjectMeta) GetId

func (x *ObjectMeta) GetId() string

func (*ObjectMeta) GetName

func (x *ObjectMeta) GetName() string

func (*ObjectMeta) GetSource

func (x *ObjectMeta) GetSource() version.Source

func (*ObjectMeta) GetSourceMetadata

func (x *ObjectMeta) GetSourceMetadata() *version.SourceMetadata

func (*ObjectMeta) GetVersion

func (x *ObjectMeta) GetVersion() string

func (*ObjectMeta) ProtoMessage

func (*ObjectMeta) ProtoMessage()

func (*ObjectMeta) ProtoReflect

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

func (*ObjectMeta) Reset

func (x *ObjectMeta) Reset()

func (*ObjectMeta) String

func (x *ObjectMeta) String() string

func (*ObjectMeta) Validate

func (m *ObjectMeta) Validate() error

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

func (m *ObjectMeta) ValidateAll() error

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

type ObjectMetaMultiError

type ObjectMetaMultiError []error

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

func (ObjectMetaMultiError) AllErrors

func (m ObjectMetaMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ObjectMetaMultiError) Error

func (m ObjectMetaMultiError) Error() string

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

type ObjectMetaValidationError

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

ObjectMetaValidationError is the validation error returned by ObjectMeta.Validate if the designated constraints aren't met.

func (ObjectMetaValidationError) Cause

func (e ObjectMetaValidationError) Cause() error

Cause function returns cause value.

func (ObjectMetaValidationError) Error

Error satisfies the builtin error interface

func (ObjectMetaValidationError) ErrorName

func (e ObjectMetaValidationError) ErrorName() string

ErrorName returns error name.

func (ObjectMetaValidationError) Field

Field function returns field value.

func (ObjectMetaValidationError) Key

Key function returns key value.

func (ObjectMetaValidationError) Reason

func (e ObjectMetaValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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