Documentation ¶
Index ¶
- Variables
- type IPAddress
- func (*IPAddress) Descriptor() ([]byte, []int)deprecated
- func (m *IPAddress) GetAddress() isIPAddress_Address
- func (x *IPAddress) GetIPV4() string
- func (x *IPAddress) GetIPV6() string
- func (*IPAddress) ProtoMessage()
- func (x *IPAddress) ProtoReflect() protoreflect.Message
- func (x *IPAddress) Reset()
- func (x *IPAddress) String() string
- func (m *IPAddress) Validate() error
- func (m *IPAddress) ValidateAll() error
- type IPAddressMultiError
- type IPAddressValidationError
- type IPAddress_IPV4
- type IPAddress_IPV6
- type IPAddresses
- type Interface
- func (*Interface) Descriptor() ([]byte, []int)deprecated
- func (x *Interface) GetAddresses() []*IPAddress
- func (x *Interface) GetName() string
- func (x *Interface) GetStatus() InterfaceStatus
- func (*Interface) ProtoMessage()
- func (x *Interface) ProtoReflect() protoreflect.Message
- func (x *Interface) Reset()
- func (x *Interface) String() string
- func (m *Interface) Validate() error
- func (m *Interface) ValidateAll() error
- type InterfaceMultiError
- type InterfaceStatus
- func (InterfaceStatus) Descriptor() protoreflect.EnumDescriptor
- func (x InterfaceStatus) Enum() *InterfaceStatus
- func (InterfaceStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x InterfaceStatus) Number() protoreflect.EnumNumber
- func (x InterfaceStatus) String() string
- func (InterfaceStatus) Type() protoreflect.EnumType
- type InterfaceValidationError
- type InterfaceWithCustomTypes
- func (*InterfaceWithCustomTypes) Descriptor() ([]byte, []int)deprecated
- func (x *InterfaceWithCustomTypes) GetAddresses() IPAddresses
- func (x *InterfaceWithCustomTypes) GetAliases() Names
- func (x *InterfaceWithCustomTypes) GetName() Name
- func (*InterfaceWithCustomTypes) ProtoMessage()
- func (x *InterfaceWithCustomTypes) ProtoReflect() protoreflect.Message
- func (x *InterfaceWithCustomTypes) Reset()
- func (x *InterfaceWithCustomTypes) String() string
- func (m *InterfaceWithCustomTypes) Validate() error
- func (m *InterfaceWithCustomTypes) ValidateAll() error
- type InterfaceWithCustomTypesMultiError
- type InterfaceWithCustomTypesValidationError
- func (e InterfaceWithCustomTypesValidationError) Cause() error
- func (e InterfaceWithCustomTypesValidationError) Error() string
- func (e InterfaceWithCustomTypesValidationError) ErrorName() string
- func (e InterfaceWithCustomTypesValidationError) Field() string
- func (e InterfaceWithCustomTypesValidationError) Key() bool
- func (e InterfaceWithCustomTypesValidationError) Reason() string
- type Name
- type Names
Constants ¶
This section is empty.
Variables ¶
var ( InterfaceStatus_name = map[int32]string{ 0: "UNKNOWN", 1: "UP", 2: "DOWN", } InterfaceStatus_value = map[string]int32{ "UNKNOWN": 0, "UP": 1, "DOWN": 2, } )
Enum value maps for Interface_Status.
var File_tests_plugin_validate_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type IPAddress ¶
type IPAddress struct { // Types that are assignable to Address: // // *IPAddress_Ipv4 // *IPAddress_Ipv6 Address isIPAddress_Address `protobuf_oneof:"Address"` // contains filtered or unexported fields }
func (*IPAddress) Descriptor
deprecated
func (*IPAddress) GetAddress ¶
func (m *IPAddress) GetAddress() isIPAddress_Address
func (*IPAddress) ProtoMessage ¶
func (*IPAddress) ProtoMessage()
func (*IPAddress) ProtoReflect ¶
func (x *IPAddress) ProtoReflect() protoreflect.Message
func (*IPAddress) Validate ¶
Validate checks the field values on IPAddress 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 (*IPAddress) ValidateAll ¶
ValidateAll checks the field values on IPAddress 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 IPAddressMultiError, or nil if none found.
type IPAddressMultiError ¶
type IPAddressMultiError []error
IPAddressMultiError is an error wrapping multiple validation errors returned by IPAddress.ValidateAll() if the designated constraints aren't met.
func (IPAddressMultiError) AllErrors ¶
func (m IPAddressMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (IPAddressMultiError) Error ¶
func (m IPAddressMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type IPAddressValidationError ¶
type IPAddressValidationError struct {
// contains filtered or unexported fields
}
IPAddressValidationError is the validation error returned by IPAddress.Validate if the designated constraints aren't met.
func (IPAddressValidationError) Cause ¶
func (e IPAddressValidationError) Cause() error
Cause function returns cause value.
func (IPAddressValidationError) Error ¶
func (e IPAddressValidationError) Error() string
Error satisfies the builtin error interface
func (IPAddressValidationError) ErrorName ¶
func (e IPAddressValidationError) ErrorName() string
ErrorName returns error name.
func (IPAddressValidationError) Field ¶
func (e IPAddressValidationError) Field() string
Field function returns field value.
func (IPAddressValidationError) Key ¶
func (e IPAddressValidationError) Key() bool
Key function returns key value.
func (IPAddressValidationError) Reason ¶
func (e IPAddressValidationError) Reason() string
Reason function returns reason value.
type IPAddress_IPV4 ¶
type IPAddress_IPV4 struct {
IPV4 string `protobuf:"bytes,3,opt,name=ipv4,proto3,oneof"`
}
type IPAddress_IPV6 ¶
type IPAddress_IPV6 struct {
IPV6 string `protobuf:"bytes,4,opt,name=ipv6,proto3,oneof"`
}
type IPAddresses ¶
type IPAddresses []*IPAddress
type Interface ¶
type Interface struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Status InterfaceStatus `protobuf:"varint,2,opt,name=status,proto3,enum=tests.plugin.Interface_Status" json:"status,omitempty"` Addresses []*IPAddress `protobuf:"bytes,3,rep,name=addresses,proto3" json:"addresses,omitempty"` // contains filtered or unexported fields }
func (*Interface) Descriptor
deprecated
func (*Interface) GetAddresses ¶
func (*Interface) GetStatus ¶
func (x *Interface) GetStatus() InterfaceStatus
func (*Interface) ProtoMessage ¶
func (*Interface) ProtoMessage()
func (*Interface) ProtoReflect ¶
func (x *Interface) ProtoReflect() protoreflect.Message
func (*Interface) Validate ¶
Validate checks the field values on Interface 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 (*Interface) ValidateAll ¶
ValidateAll checks the field values on Interface 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 InterfaceMultiError, or nil if none found.
type InterfaceMultiError ¶
type InterfaceMultiError []error
InterfaceMultiError is an error wrapping multiple validation errors returned by Interface.ValidateAll() if the designated constraints aren't met.
func (InterfaceMultiError) AllErrors ¶
func (m InterfaceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (InterfaceMultiError) Error ¶
func (m InterfaceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type InterfaceStatus ¶
type InterfaceStatus int32
const ( StatusUnknown InterfaceStatus = 0 StatusUp InterfaceStatus = 1 StatusDown InterfaceStatus = 2 )
func (InterfaceStatus) Descriptor ¶
func (InterfaceStatus) Descriptor() protoreflect.EnumDescriptor
func (InterfaceStatus) Enum ¶
func (x InterfaceStatus) Enum() *InterfaceStatus
func (InterfaceStatus) EnumDescriptor
deprecated
func (InterfaceStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use Interface_Status.Descriptor instead.
func (InterfaceStatus) Number ¶
func (x InterfaceStatus) Number() protoreflect.EnumNumber
func (InterfaceStatus) String ¶
func (x InterfaceStatus) String() string
func (InterfaceStatus) Type ¶
func (InterfaceStatus) Type() protoreflect.EnumType
type InterfaceValidationError ¶
type InterfaceValidationError struct {
// contains filtered or unexported fields
}
InterfaceValidationError is the validation error returned by Interface.Validate if the designated constraints aren't met.
func (InterfaceValidationError) Cause ¶
func (e InterfaceValidationError) Cause() error
Cause function returns cause value.
func (InterfaceValidationError) Error ¶
func (e InterfaceValidationError) Error() string
Error satisfies the builtin error interface
func (InterfaceValidationError) ErrorName ¶
func (e InterfaceValidationError) ErrorName() string
ErrorName returns error name.
func (InterfaceValidationError) Field ¶
func (e InterfaceValidationError) Field() string
Field function returns field value.
func (InterfaceValidationError) Key ¶
func (e InterfaceValidationError) Key() bool
Key function returns key value.
func (InterfaceValidationError) Reason ¶
func (e InterfaceValidationError) Reason() string
Reason function returns reason value.
type InterfaceWithCustomTypes ¶
type InterfaceWithCustomTypes struct { Name Name `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Addresses IPAddresses `protobuf:"bytes,3,rep,name=addresses,proto3" json:"addresses,omitempty"` Aliases Names `protobuf:"bytes,4,rep,name=aliases,proto3" json:"aliases,omitempty"` // contains filtered or unexported fields }
func (*InterfaceWithCustomTypes) Descriptor
deprecated
func (*InterfaceWithCustomTypes) Descriptor() ([]byte, []int)
Deprecated: Use InterfaceWithCustomTypes.ProtoReflect.Descriptor instead.
func (*InterfaceWithCustomTypes) GetAddresses ¶
func (x *InterfaceWithCustomTypes) GetAddresses() IPAddresses
func (*InterfaceWithCustomTypes) GetAliases ¶
func (x *InterfaceWithCustomTypes) GetAliases() Names
func (*InterfaceWithCustomTypes) GetName ¶
func (x *InterfaceWithCustomTypes) GetName() Name
func (*InterfaceWithCustomTypes) ProtoMessage ¶
func (*InterfaceWithCustomTypes) ProtoMessage()
func (*InterfaceWithCustomTypes) ProtoReflect ¶
func (x *InterfaceWithCustomTypes) ProtoReflect() protoreflect.Message
func (*InterfaceWithCustomTypes) Reset ¶
func (x *InterfaceWithCustomTypes) Reset()
func (*InterfaceWithCustomTypes) String ¶
func (x *InterfaceWithCustomTypes) String() string
func (*InterfaceWithCustomTypes) Validate ¶
func (m *InterfaceWithCustomTypes) Validate() error
Validate checks the field values on InterfaceWithCustomTypes 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 (*InterfaceWithCustomTypes) ValidateAll ¶
func (m *InterfaceWithCustomTypes) ValidateAll() error
ValidateAll checks the field values on InterfaceWithCustomTypes 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 InterfaceWithCustomTypesMultiError, or nil if none found.
type InterfaceWithCustomTypesMultiError ¶
type InterfaceWithCustomTypesMultiError []error
InterfaceWithCustomTypesMultiError is an error wrapping multiple validation errors returned by InterfaceWithCustomTypes.ValidateAll() if the designated constraints aren't met.
func (InterfaceWithCustomTypesMultiError) AllErrors ¶
func (m InterfaceWithCustomTypesMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (InterfaceWithCustomTypesMultiError) Error ¶
func (m InterfaceWithCustomTypesMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type InterfaceWithCustomTypesValidationError ¶
type InterfaceWithCustomTypesValidationError struct {
// contains filtered or unexported fields
}
InterfaceWithCustomTypesValidationError is the validation error returned by InterfaceWithCustomTypes.Validate if the designated constraints aren't met.
func (InterfaceWithCustomTypesValidationError) Cause ¶
func (e InterfaceWithCustomTypesValidationError) Cause() error
Cause function returns cause value.
func (InterfaceWithCustomTypesValidationError) Error ¶
func (e InterfaceWithCustomTypesValidationError) Error() string
Error satisfies the builtin error interface
func (InterfaceWithCustomTypesValidationError) ErrorName ¶
func (e InterfaceWithCustomTypesValidationError) ErrorName() string
ErrorName returns error name.
func (InterfaceWithCustomTypesValidationError) Field ¶
func (e InterfaceWithCustomTypesValidationError) Field() string
Field function returns field value.
func (InterfaceWithCustomTypesValidationError) Key ¶
func (e InterfaceWithCustomTypesValidationError) Key() bool
Key function returns key value.
func (InterfaceWithCustomTypesValidationError) Reason ¶
func (e InterfaceWithCustomTypesValidationError) Reason() string
Reason function returns reason value.