caps

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_datatrails_common_api_caps_v1_caps_caps_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Cap

type Cap struct {
	ResourceType      string `protobuf:"bytes,1,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
	ResourceRemaining int64  `protobuf:"varint,2,opt,name=resource_remaining,json=resourceRemaining,proto3" json:"resource_remaining,omitempty"`
	ResourceCap       int64  `protobuf:"varint,3,opt,name=resource_cap,json=resourceCap,proto3" json:"resource_cap,omitempty"`
	// contains filtered or unexported fields
}

func (*Cap) Descriptor deprecated

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

Deprecated: Use Cap.ProtoReflect.Descriptor instead.

func (*Cap) GetResourceCap added in v0.4.1

func (x *Cap) GetResourceCap() int64

func (*Cap) GetResourceRemaining

func (x *Cap) GetResourceRemaining() int64

func (*Cap) GetResourceType

func (x *Cap) GetResourceType() string

func (*Cap) ProtoMessage

func (*Cap) ProtoMessage()

func (*Cap) ProtoReflect

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

func (*Cap) Reset

func (x *Cap) Reset()

func (*Cap) String

func (x *Cap) String() string

func (*Cap) Validate

func (m *Cap) Validate() error

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

func (m *Cap) ValidateAll() error

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

type CapMultiError

type CapMultiError []error

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

func (CapMultiError) AllErrors

func (m CapMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CapMultiError) Error

func (m CapMultiError) Error() string

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

type CapValidationError

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

CapValidationError is the validation error returned by Cap.Validate if the designated constraints aren't met.

func (CapValidationError) Cause

func (e CapValidationError) Cause() error

Cause function returns cause value.

func (CapValidationError) Error

func (e CapValidationError) Error() string

Error satisfies the builtin error interface

func (CapValidationError) ErrorName

func (e CapValidationError) ErrorName() string

ErrorName returns error name.

func (CapValidationError) Field

func (e CapValidationError) Field() string

Field function returns field value.

func (CapValidationError) Key

func (e CapValidationError) Key() bool

Key function returns key value.

func (CapValidationError) Reason

func (e CapValidationError) Reason() string

Reason function returns reason value.

type Caps

type Caps struct {
	Caps []*Cap `protobuf:"bytes,1,rep,name=caps,proto3" json:"caps,omitempty"`
	// contains filtered or unexported fields
}

func (*Caps) Descriptor deprecated

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

Deprecated: Use Caps.ProtoReflect.Descriptor instead.

func (*Caps) GetCaps

func (x *Caps) GetCaps() []*Cap

func (*Caps) ProtoMessage

func (*Caps) ProtoMessage()

func (*Caps) ProtoReflect

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

func (*Caps) Reset

func (x *Caps) Reset()

func (*Caps) String

func (x *Caps) String() string

func (*Caps) Validate

func (m *Caps) Validate() error

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

func (m *Caps) ValidateAll() error

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

type CapsMultiError

type CapsMultiError []error

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

func (CapsMultiError) AllErrors

func (m CapsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CapsMultiError) Error

func (m CapsMultiError) Error() string

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

type CapsValidationError

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

CapsValidationError is the validation error returned by Caps.Validate if the designated constraints aren't met.

func (CapsValidationError) Cause

func (e CapsValidationError) Cause() error

Cause function returns cause value.

func (CapsValidationError) Error

func (e CapsValidationError) Error() string

Error satisfies the builtin error interface

func (CapsValidationError) ErrorName

func (e CapsValidationError) ErrorName() string

ErrorName returns error name.

func (CapsValidationError) Field

func (e CapsValidationError) Field() string

Field function returns field value.

func (CapsValidationError) Key

func (e CapsValidationError) Key() bool

Key function returns key value.

func (CapsValidationError) Reason

func (e CapsValidationError) Reason() string

Reason function returns reason value.

type GetCapsRequest

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

func (*GetCapsRequest) Descriptor deprecated

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

Deprecated: Use GetCapsRequest.ProtoReflect.Descriptor instead.

func (*GetCapsRequest) ProtoMessage

func (*GetCapsRequest) ProtoMessage()

func (*GetCapsRequest) ProtoReflect

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

func (*GetCapsRequest) Reset

func (x *GetCapsRequest) Reset()

func (*GetCapsRequest) String

func (x *GetCapsRequest) String() string

func (*GetCapsRequest) Validate

func (m *GetCapsRequest) Validate() error

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

func (m *GetCapsRequest) ValidateAll() error

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

type GetCapsRequestMultiError

type GetCapsRequestMultiError []error

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

func (GetCapsRequestMultiError) AllErrors

func (m GetCapsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetCapsRequestMultiError) Error

func (m GetCapsRequestMultiError) Error() string

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

type GetCapsRequestValidationError

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

GetCapsRequestValidationError is the validation error returned by GetCapsRequest.Validate if the designated constraints aren't met.

func (GetCapsRequestValidationError) Cause

Cause function returns cause value.

func (GetCapsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetCapsRequestValidationError) ErrorName

func (e GetCapsRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetCapsRequestValidationError) Field

Field function returns field value.

func (GetCapsRequestValidationError) Key

Key function returns key value.

func (GetCapsRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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