Documentation ¶
Index ¶
- Variables
- type Action
- type ClientInfo
- func (*ClientInfo) Descriptor() ([]byte, []int)
- func (m *ClientInfo) GetLabelSelector() map[string]string
- func (m *ClientInfo) GetOriginIP() string
- func (m *ClientInfo) GetTenant() string
- func (m *ClientInfo) GetUsername() string
- func (m *ClientInfo) Marshal() (dAtA []byte, err error)
- func (m *ClientInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *ClientInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClientInfo) ProtoMessage()
- func (m *ClientInfo) Reset()
- func (m *ClientInfo) Size() (n int)
- func (m *ClientInfo) String() string
- func (m *ClientInfo) Unmarshal(dAtA []byte) error
- func (m *ClientInfo) XXX_DiscardUnknown()
- func (m *ClientInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientInfo) XXX_Merge(src proto.Message)
- func (m *ClientInfo) XXX_Size() int
- func (m *ClientInfo) XXX_Unmarshal(b []byte) error
- type Recommendation
- func (*Recommendation) Descriptor() ([]byte, []int)
- func (m *Recommendation) GetAction() Action
- func (m *Recommendation) GetCN() *metadata.CNService
- func (m *Recommendation) GetMessage() string
- func (m *Recommendation) GetUpdated() bool
- func (m *Recommendation) Marshal() (dAtA []byte, err error)
- func (m *Recommendation) MarshalTo(dAtA []byte) (int, error)
- func (m *Recommendation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Recommendation) ProtoMessage()
- func (m *Recommendation) Reset()
- func (m *Recommendation) Size() (n int)
- func (m *Recommendation) String() string
- func (m *Recommendation) Unmarshal(dAtA []byte) error
- func (m *Recommendation) XXX_DiscardUnknown()
- func (m *Recommendation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Recommendation) XXX_Merge(src proto.Message)
- func (m *Recommendation) XXX_Size() int
- func (m *Recommendation) XXX_Unmarshal(b []byte) error
- type Request
- func (m *Request) DebugString() string
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetClientInfo() *ClientInfo
- func (m *Request) GetID() uint64
- func (m *Request) GetRequestID() uint64
- func (m *Request) Marshal() (dAtA []byte, err error)
- func (m *Request) MarshalTo(dAtA []byte) (int, error)
- func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) SetID(id uint64)
- func (m *Request) Size() (n int)
- func (m *Request) String() string
- func (m *Request) Unmarshal(dAtA []byte) error
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type Response
- func (m *Response) DebugString() string
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetID() uint64
- func (m *Response) GetRecommendation() *Recommendation
- func (m *Response) GetRequestID() uint64
- func (m *Response) Marshal() (dAtA []byte, err error)
- func (m *Response) MarshalTo(dAtA []byte) (int, error)
- func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) SetID(id uint64)
- func (m *Response) Size() (n int)
- func (m *Response) String() string
- func (m *Response) Unmarshal(dAtA []byte) error
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
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 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) 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) 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 ¶
DebugString returns the debug string
func (*Request) Descriptor ¶
func (*Request) GetClientInfo ¶
func (m *Request) GetClientInfo() *ClientInfo
func (*Request) GetRequestID ¶
func (*Request) MarshalToSizedBuffer ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
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 (*Response) Descriptor ¶
func (*Response) GetRecommendation ¶
func (m *Response) GetRecommendation() *Recommendation
func (*Response) GetRequestID ¶
func (*Response) MarshalToSizedBuffer ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.