plugin

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthPlugin        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPlugin          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPlugin = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Action_name = map[int32]string{
	0: "Select",
	1: "Reject",
	2: "Bypass",
}
View Source
var Action_value = map[string]int32{
	"Select": 0,
	"Reject": 1,
	"Bypass": 2,
}

Functions

This section is empty.

Types

type Action

type Action int32
const (
	Select Action = 0
	Reject Action = 1
	Bypass Action = 2
)

func (Action) EnumDescriptor

func (Action) EnumDescriptor() ([]byte, []int)

func (Action) String

func (x Action) String() string

type ClientInfo

type ClientInfo struct {
	Tenant               string            `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
	Username             string            `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	OriginIP             string            `protobuf:"bytes,3,opt,name=originIP,proto3" json:"originIP,omitempty"`
	LabelSelector        map[string]string `` /* 167-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*ClientInfo) Descriptor

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

func (*ClientInfo) GetLabelSelector

func (m *ClientInfo) GetLabelSelector() map[string]string

func (*ClientInfo) GetOriginIP

func (m *ClientInfo) GetOriginIP() string

func (*ClientInfo) GetTenant

func (m *ClientInfo) GetTenant() string

func (*ClientInfo) GetUsername

func (m *ClientInfo) GetUsername() string

func (*ClientInfo) Marshal

func (m *ClientInfo) Marshal() (dAtA []byte, err error)

func (*ClientInfo) MarshalTo

func (m *ClientInfo) MarshalTo(dAtA []byte) (int, error)

func (*ClientInfo) MarshalToSizedBuffer

func (m *ClientInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ClientInfo) ProtoMessage

func (*ClientInfo) ProtoMessage()

func (*ClientInfo) Reset

func (m *ClientInfo) Reset()

func (*ClientInfo) Size

func (m *ClientInfo) Size() (n int)

func (*ClientInfo) String

func (m *ClientInfo) String() string

func (*ClientInfo) Unmarshal

func (m *ClientInfo) Unmarshal(dAtA []byte) error

func (*ClientInfo) XXX_DiscardUnknown

func (m *ClientInfo) XXX_DiscardUnknown()

func (*ClientInfo) XXX_Marshal

func (m *ClientInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ClientInfo) XXX_Merge

func (m *ClientInfo) XXX_Merge(src proto.Message)

func (*ClientInfo) XXX_Size

func (m *ClientInfo) XXX_Size() int

func (*ClientInfo) XXX_Unmarshal

func (m *ClientInfo) XXX_Unmarshal(b []byte) error

type Recommendation

type Recommendation struct {
	Action               Action              `protobuf:"varint,1,opt,name=action,proto3,enum=plugin.Action" json:"action,omitempty"`
	CN                   *metadata.CNService `protobuf:"bytes,2,opt,name=CN,proto3" json:"CN,omitempty"`
	Message              string              `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	Updated              bool                `protobuf:"varint,4,opt,name=updated,proto3" json:"updated,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*Recommendation) Descriptor

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

func (*Recommendation) GetAction

func (m *Recommendation) GetAction() Action

func (*Recommendation) GetCN

func (m *Recommendation) GetCN() *metadata.CNService

func (*Recommendation) GetMessage

func (m *Recommendation) GetMessage() string

func (*Recommendation) GetUpdated added in v1.1.0

func (m *Recommendation) GetUpdated() bool

func (*Recommendation) Marshal

func (m *Recommendation) Marshal() (dAtA []byte, err error)

func (*Recommendation) MarshalTo

func (m *Recommendation) MarshalTo(dAtA []byte) (int, error)

func (*Recommendation) MarshalToSizedBuffer

func (m *Recommendation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Recommendation) ProtoMessage

func (*Recommendation) ProtoMessage()

func (*Recommendation) Reset

func (m *Recommendation) Reset()

func (*Recommendation) Size

func (m *Recommendation) Size() (n int)

func (*Recommendation) String

func (m *Recommendation) String() string

func (*Recommendation) Unmarshal

func (m *Recommendation) Unmarshal(dAtA []byte) error

func (*Recommendation) XXX_DiscardUnknown

func (m *Recommendation) XXX_DiscardUnknown()

func (*Recommendation) XXX_Marshal

func (m *Recommendation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Recommendation) XXX_Merge

func (m *Recommendation) XXX_Merge(src proto.Message)

func (*Recommendation) XXX_Size

func (m *Recommendation) XXX_Size() int

func (*Recommendation) XXX_Unmarshal

func (m *Recommendation) XXX_Unmarshal(b []byte) error

type Request

type Request struct {
	RequestID            uint64      `protobuf:"varint,1,opt,name=requestID,proto3" json:"requestID,omitempty"`
	ClientInfo           *ClientInfo `protobuf:"bytes,2,opt,name=clientInfo,proto3" json:"clientInfo,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*Request) DebugString

func (m *Request) DebugString() string

DebugString returns the debug string

func (*Request) Descriptor

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

func (*Request) GetClientInfo

func (m *Request) GetClientInfo() *ClientInfo

func (*Request) GetID

func (m *Request) GetID() uint64

GetID implement morpc Messgae

func (*Request) GetRequestID

func (m *Request) GetRequestID() uint64

func (*Request) Marshal

func (m *Request) Marshal() (dAtA []byte, err error)

func (*Request) MarshalTo

func (m *Request) MarshalTo(dAtA []byte) (int, error)

func (*Request) MarshalToSizedBuffer

func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) SetID

func (m *Request) SetID(id uint64)

SetID implement morpc Messgae

func (*Request) Size

func (m *Request) Size() (n int)

func (*Request) String

func (m *Request) String() string

func (*Request) Unmarshal

func (m *Request) Unmarshal(dAtA []byte) error

func (*Request) XXX_DiscardUnknown

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal

func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Request) XXX_Merge

func (m *Request) XXX_Merge(src proto.Message)

func (*Request) XXX_Size

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal

func (m *Request) XXX_Unmarshal(b []byte) error

type Response

type Response struct {
	RequestID            uint64          `protobuf:"varint,1,opt,name=requestID,proto3" json:"requestID,omitempty"`
	Recommendation       *Recommendation `protobuf:"bytes,2,opt,name=recommendation,proto3" json:"recommendation,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*Response) DebugString

func (m *Response) DebugString() string

func (*Response) Descriptor

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

func (*Response) GetID

func (m *Response) GetID() uint64

GetID implement morpc Messgae

func (*Response) GetRecommendation

func (m *Response) GetRecommendation() *Recommendation

func (*Response) GetRequestID

func (m *Response) GetRequestID() uint64

func (*Response) Marshal

func (m *Response) Marshal() (dAtA []byte, err error)

func (*Response) MarshalTo

func (m *Response) MarshalTo(dAtA []byte) (int, error)

func (*Response) MarshalToSizedBuffer

func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) SetID

func (m *Response) SetID(id uint64)

func (*Response) Size

func (m *Response) Size() (n int)

func (*Response) String

func (m *Response) String() string

func (*Response) Unmarshal

func (m *Response) Unmarshal(dAtA []byte) error

func (*Response) XXX_DiscardUnknown

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal

func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Response) XXX_Merge

func (m *Response) XXX_Merge(src proto.Message)

func (*Response) XXX_Size

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal

func (m *Response) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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