plugin

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use IPAddress.ProtoReflect.Descriptor instead.

func (*IPAddress) GetAddress

func (m *IPAddress) GetAddress() isIPAddress_Address

func (*IPAddress) GetIPV4

func (x *IPAddress) GetIPV4() string

func (*IPAddress) GetIPV6

func (x *IPAddress) GetIPV6() string

func (*IPAddress) ProtoMessage

func (*IPAddress) ProtoMessage()

func (*IPAddress) ProtoReflect

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

func (*IPAddress) Reset

func (x *IPAddress) Reset()

func (*IPAddress) String

func (x *IPAddress) String() string

func (*IPAddress) Validate

func (m *IPAddress) Validate() error

Validate checks the field values on IPAddress with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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

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 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) Descriptor() ([]byte, []int)

Deprecated: Use Interface.ProtoReflect.Descriptor instead.

func (*Interface) GetAddresses

func (x *Interface) GetAddresses() []*IPAddress

func (*Interface) GetName

func (x *Interface) GetName() string

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) Reset

func (x *Interface) Reset()

func (*Interface) String

func (x *Interface) String() string

func (*Interface) Validate

func (m *Interface) Validate() error

Validate checks the field values on Interface with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type InterfaceStatus

type InterfaceStatus int32
const (
	StatusUnknown InterfaceStatus = 0
	StatusUp      InterfaceStatus = 1
	StatusDown    InterfaceStatus = 2
)

func (InterfaceStatus) Descriptor

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 (InterfaceStatus) String

func (x InterfaceStatus) String() string

func (InterfaceStatus) Type

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

Key function returns key value.

func (InterfaceValidationError) Reason

func (e InterfaceValidationError) 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