Versions in this module Expand all Collapse all v0 v0.6.1 Oct 15, 2018 v0.6.0 Sep 25, 2018 v0.5.0 Aug 14, 2018 Changes in this version + var ErrIntOverflowAttributeContext = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowExternalAuth = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthAttributeContext = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthExternalAuth = fmt.Errorf("proto: negative length found during unmarshaling") + func RegisterAuthorizationServer(s *grpc.Server, srv AuthorizationServer) + type AttributeContext struct + ContextExtensions map[string]string + Destination *AttributeContext_Peer + Request *AttributeContext_Request + Source *AttributeContext_Peer + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*AttributeContext) Descriptor() ([]byte, []int) + func (*AttributeContext) ProtoMessage() + func (dst *AttributeContext) XXX_Merge(src proto.Message) + func (m *AttributeContext) GetContextExtensions() map[string]string + func (m *AttributeContext) GetDestination() *AttributeContext_Peer + func (m *AttributeContext) GetRequest() *AttributeContext_Request + func (m *AttributeContext) GetSource() *AttributeContext_Peer + func (m *AttributeContext) Marshal() (dAtA []byte, err error) + func (m *AttributeContext) MarshalTo(dAtA []byte) (int, error) + func (m *AttributeContext) Reset() + func (m *AttributeContext) Size() (n int) + func (m *AttributeContext) String() string + func (m *AttributeContext) Unmarshal(dAtA []byte) error + func (m *AttributeContext) Validate() error + func (m *AttributeContext) XXX_DiscardUnknown() + func (m *AttributeContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AttributeContext) XXX_Size() int + func (m *AttributeContext) XXX_Unmarshal(b []byte) error + type AttributeContextValidationError struct + Cause error + Field string + Key bool + Reason string + func (e AttributeContextValidationError) Error() string + type AttributeContext_HttpRequest struct + Fragment string + Headers map[string]string + Host string + Id string + Method string + Path string + Protocol string + Query string + Scheme string + Size_ int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*AttributeContext_HttpRequest) Descriptor() ([]byte, []int) + func (*AttributeContext_HttpRequest) ProtoMessage() + func (dst *AttributeContext_HttpRequest) XXX_Merge(src proto.Message) + func (m *AttributeContext_HttpRequest) GetFragment() string + func (m *AttributeContext_HttpRequest) GetHeaders() map[string]string + func (m *AttributeContext_HttpRequest) GetHost() string + func (m *AttributeContext_HttpRequest) GetId() string + func (m *AttributeContext_HttpRequest) GetMethod() string + func (m *AttributeContext_HttpRequest) GetPath() string + func (m *AttributeContext_HttpRequest) GetProtocol() string + func (m *AttributeContext_HttpRequest) GetQuery() string + func (m *AttributeContext_HttpRequest) GetScheme() string + func (m *AttributeContext_HttpRequest) GetSize_() int64 + func (m *AttributeContext_HttpRequest) Marshal() (dAtA []byte, err error) + func (m *AttributeContext_HttpRequest) MarshalTo(dAtA []byte) (int, error) + func (m *AttributeContext_HttpRequest) Reset() + func (m *AttributeContext_HttpRequest) Size() (n int) + func (m *AttributeContext_HttpRequest) String() string + func (m *AttributeContext_HttpRequest) Unmarshal(dAtA []byte) error + func (m *AttributeContext_HttpRequest) Validate() error + func (m *AttributeContext_HttpRequest) XXX_DiscardUnknown() + func (m *AttributeContext_HttpRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AttributeContext_HttpRequest) XXX_Size() int + func (m *AttributeContext_HttpRequest) XXX_Unmarshal(b []byte) error + type AttributeContext_HttpRequestValidationError struct + Cause error + Field string + Key bool + Reason string + func (e AttributeContext_HttpRequestValidationError) Error() string + type AttributeContext_Peer struct + Address *core.Address + Labels map[string]string + Principal string + Service string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*AttributeContext_Peer) Descriptor() ([]byte, []int) + func (*AttributeContext_Peer) ProtoMessage() + func (dst *AttributeContext_Peer) XXX_Merge(src proto.Message) + func (m *AttributeContext_Peer) GetAddress() *core.Address + func (m *AttributeContext_Peer) GetLabels() map[string]string + func (m *AttributeContext_Peer) GetPrincipal() string + func (m *AttributeContext_Peer) GetService() string + func (m *AttributeContext_Peer) Marshal() (dAtA []byte, err error) + func (m *AttributeContext_Peer) MarshalTo(dAtA []byte) (int, error) + func (m *AttributeContext_Peer) Reset() + func (m *AttributeContext_Peer) Size() (n int) + func (m *AttributeContext_Peer) String() string + func (m *AttributeContext_Peer) Unmarshal(dAtA []byte) error + func (m *AttributeContext_Peer) Validate() error + func (m *AttributeContext_Peer) XXX_DiscardUnknown() + func (m *AttributeContext_Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AttributeContext_Peer) XXX_Size() int + func (m *AttributeContext_Peer) XXX_Unmarshal(b []byte) error + type AttributeContext_PeerValidationError struct + Cause error + Field string + Key bool + Reason string + func (e AttributeContext_PeerValidationError) Error() string + type AttributeContext_Request struct + Http *AttributeContext_HttpRequest + Time *types.Timestamp + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*AttributeContext_Request) Descriptor() ([]byte, []int) + func (*AttributeContext_Request) ProtoMessage() + func (dst *AttributeContext_Request) XXX_Merge(src proto.Message) + func (m *AttributeContext_Request) GetHttp() *AttributeContext_HttpRequest + func (m *AttributeContext_Request) GetTime() *types.Timestamp + func (m *AttributeContext_Request) Marshal() (dAtA []byte, err error) + func (m *AttributeContext_Request) MarshalTo(dAtA []byte) (int, error) + func (m *AttributeContext_Request) Reset() + func (m *AttributeContext_Request) Size() (n int) + func (m *AttributeContext_Request) String() string + func (m *AttributeContext_Request) Unmarshal(dAtA []byte) error + func (m *AttributeContext_Request) Validate() error + func (m *AttributeContext_Request) XXX_DiscardUnknown() + func (m *AttributeContext_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AttributeContext_Request) XXX_Size() int + func (m *AttributeContext_Request) XXX_Unmarshal(b []byte) error + type AttributeContext_RequestValidationError struct + Cause error + Field string + Key bool + Reason string + func (e AttributeContext_RequestValidationError) Error() string + type AuthorizationClient interface + Check func(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error) + func NewAuthorizationClient(cc *grpc.ClientConn) AuthorizationClient + type AuthorizationServer interface + Check func(context.Context, *CheckRequest) (*CheckResponse, error) + type CheckRequest struct + Attributes *AttributeContext + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*CheckRequest) Descriptor() ([]byte, []int) + func (*CheckRequest) ProtoMessage() + func (dst *CheckRequest) XXX_Merge(src proto.Message) + func (m *CheckRequest) GetAttributes() *AttributeContext + func (m *CheckRequest) Marshal() (dAtA []byte, err error) + func (m *CheckRequest) MarshalTo(dAtA []byte) (int, error) + func (m *CheckRequest) Reset() + func (m *CheckRequest) Size() (n int) + func (m *CheckRequest) String() string + func (m *CheckRequest) Unmarshal(dAtA []byte) error + func (m *CheckRequest) Validate() error + func (m *CheckRequest) XXX_DiscardUnknown() + func (m *CheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CheckRequest) XXX_Size() int + func (m *CheckRequest) XXX_Unmarshal(b []byte) error + type CheckRequestValidationError struct + Cause error + Field string + Key bool + Reason string + func (e CheckRequestValidationError) Error() string + type CheckResponse struct + HttpResponse isCheckResponse_HttpResponse + Status *rpc.Status + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*CheckResponse) Descriptor() ([]byte, []int) + func (*CheckResponse) ProtoMessage() + func (*CheckResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...) + func (dst *CheckResponse) XXX_Merge(src proto.Message) + func (m *CheckResponse) GetDeniedResponse() *DeniedHttpResponse + func (m *CheckResponse) GetHttpResponse() isCheckResponse_HttpResponse + func (m *CheckResponse) GetOkResponse() *OkHttpResponse + func (m *CheckResponse) GetStatus() *rpc.Status + func (m *CheckResponse) Marshal() (dAtA []byte, err error) + func (m *CheckResponse) MarshalTo(dAtA []byte) (int, error) + func (m *CheckResponse) Reset() + func (m *CheckResponse) Size() (n int) + func (m *CheckResponse) String() string + func (m *CheckResponse) Unmarshal(dAtA []byte) error + func (m *CheckResponse) Validate() error + func (m *CheckResponse) XXX_DiscardUnknown() + func (m *CheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CheckResponse) XXX_Size() int + func (m *CheckResponse) XXX_Unmarshal(b []byte) error + type CheckResponseValidationError struct + Cause error + Field string + Key bool + Reason string + func (e CheckResponseValidationError) Error() string + type CheckResponse_DeniedResponse struct + DeniedResponse *DeniedHttpResponse + func (m *CheckResponse_DeniedResponse) MarshalTo(dAtA []byte) (int, error) + func (m *CheckResponse_DeniedResponse) Size() (n int) + type CheckResponse_OkResponse struct + OkResponse *OkHttpResponse + func (m *CheckResponse_OkResponse) MarshalTo(dAtA []byte) (int, error) + func (m *CheckResponse_OkResponse) Size() (n int) + type DeniedHttpResponse struct + Body string + Headers []*core.HeaderValueOption + Status *_type.HttpStatus + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*DeniedHttpResponse) Descriptor() ([]byte, []int) + func (*DeniedHttpResponse) ProtoMessage() + func (dst *DeniedHttpResponse) XXX_Merge(src proto.Message) + func (m *DeniedHttpResponse) GetBody() string + func (m *DeniedHttpResponse) GetHeaders() []*core.HeaderValueOption + func (m *DeniedHttpResponse) GetStatus() *_type.HttpStatus + func (m *DeniedHttpResponse) Marshal() (dAtA []byte, err error) + func (m *DeniedHttpResponse) MarshalTo(dAtA []byte) (int, error) + func (m *DeniedHttpResponse) Reset() + func (m *DeniedHttpResponse) Size() (n int) + func (m *DeniedHttpResponse) String() string + func (m *DeniedHttpResponse) Unmarshal(dAtA []byte) error + func (m *DeniedHttpResponse) Validate() error + func (m *DeniedHttpResponse) XXX_DiscardUnknown() + func (m *DeniedHttpResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *DeniedHttpResponse) XXX_Size() int + func (m *DeniedHttpResponse) XXX_Unmarshal(b []byte) error + type DeniedHttpResponseValidationError struct + Cause error + Field string + Key bool + Reason string + func (e DeniedHttpResponseValidationError) Error() string + type OkHttpResponse struct + Headers []*core.HeaderValueOption + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*OkHttpResponse) Descriptor() ([]byte, []int) + func (*OkHttpResponse) ProtoMessage() + func (dst *OkHttpResponse) XXX_Merge(src proto.Message) + func (m *OkHttpResponse) GetHeaders() []*core.HeaderValueOption + func (m *OkHttpResponse) Marshal() (dAtA []byte, err error) + func (m *OkHttpResponse) MarshalTo(dAtA []byte) (int, error) + func (m *OkHttpResponse) Reset() + func (m *OkHttpResponse) Size() (n int) + func (m *OkHttpResponse) String() string + func (m *OkHttpResponse) Unmarshal(dAtA []byte) error + func (m *OkHttpResponse) Validate() error + func (m *OkHttpResponse) XXX_DiscardUnknown() + func (m *OkHttpResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *OkHttpResponse) XXX_Size() int + func (m *OkHttpResponse) XXX_Unmarshal(b []byte) error + type OkHttpResponseValidationError struct + Cause error + Field string + Key bool + Reason string + func (e OkHttpResponseValidationError) Error() string