Documentation ¶
Index ¶
- Variables
- type Cap
- func (*Cap) Descriptor() ([]byte, []int)deprecated
- func (x *Cap) GetResourceCap() int64
- func (x *Cap) GetResourceRemaining() int64
- func (x *Cap) GetResourceType() string
- func (*Cap) ProtoMessage()
- func (x *Cap) ProtoReflect() protoreflect.Message
- func (x *Cap) Reset()
- func (x *Cap) String() string
- func (m *Cap) Validate() error
- func (m *Cap) ValidateAll() error
- type CapMultiError
- type CapValidationError
- type Caps
- type CapsMultiError
- type CapsValidationError
- type GetCapsRequest
- func (*GetCapsRequest) Descriptor() ([]byte, []int)deprecated
- func (*GetCapsRequest) ProtoMessage()
- func (x *GetCapsRequest) ProtoReflect() protoreflect.Message
- func (x *GetCapsRequest) Reset()
- func (x *GetCapsRequest) String() string
- func (m *GetCapsRequest) Validate() error
- func (m *GetCapsRequest) ValidateAll() error
- type GetCapsRequestMultiError
- type GetCapsRequestValidationError
- func (e GetCapsRequestValidationError) Cause() error
- func (e GetCapsRequestValidationError) Error() string
- func (e GetCapsRequestValidationError) ErrorName() string
- func (e GetCapsRequestValidationError) Field() string
- func (e GetCapsRequestValidationError) Key() bool
- func (e GetCapsRequestValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
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) GetResourceCap ¶ added in v0.4.1
func (*Cap) GetResourceRemaining ¶
func (*Cap) GetResourceType ¶
func (*Cap) ProtoMessage ¶
func (*Cap) ProtoMessage()
func (*Cap) ProtoReflect ¶
func (x *Cap) ProtoReflect() protoreflect.Message
func (*Cap) Validate ¶
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 ¶
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) ProtoMessage ¶
func (*Caps) ProtoMessage()
func (*Caps) ProtoReflect ¶
func (x *Caps) ProtoReflect() protoreflect.Message
func (*Caps) Validate ¶
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 ¶
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 ¶
func (e GetCapsRequestValidationError) Cause() error
Cause function returns cause value.
func (GetCapsRequestValidationError) Error ¶
func (e GetCapsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetCapsRequestValidationError) ErrorName ¶
func (e GetCapsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetCapsRequestValidationError) Field ¶
func (e GetCapsRequestValidationError) Field() string
Field function returns field value.
func (GetCapsRequestValidationError) Key ¶
func (e GetCapsRequestValidationError) Key() bool
Key function returns key value.
func (GetCapsRequestValidationError) Reason ¶
func (e GetCapsRequestValidationError) Reason() string
Reason function returns reason value.