Documentation ¶
Index ¶
- func RegisterAuthorizationServer(s *grpc.Server, srv AuthorizationServer)
- type AttributeContext
- func (*AttributeContext) Descriptor() ([]byte, []int)
- func (m *AttributeContext) GetContextExtensions() map[string]string
- func (m *AttributeContext) GetDestination() *AttributeContext_Peer
- func (m *AttributeContext) GetMetadataContext() *core.Metadata
- func (m *AttributeContext) GetRequest() *AttributeContext_Request
- func (m *AttributeContext) GetSource() *AttributeContext_Peer
- func (*AttributeContext) ProtoMessage()
- func (m *AttributeContext) Reset()
- func (m *AttributeContext) String() string
- 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_Merge(src proto.Message)
- func (m *AttributeContext) XXX_Size() int
- func (m *AttributeContext) XXX_Unmarshal(b []byte) error
- type AttributeContextValidationError
- func (e AttributeContextValidationError) Cause() error
- func (e AttributeContextValidationError) Error() string
- func (e AttributeContextValidationError) ErrorName() string
- func (e AttributeContextValidationError) Field() string
- func (e AttributeContextValidationError) Key() bool
- func (e AttributeContextValidationError) Reason() string
- type AttributeContext_HttpRequest
- func (*AttributeContext_HttpRequest) Descriptor() ([]byte, []int)
- func (m *AttributeContext_HttpRequest) GetBody() string
- 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 (*AttributeContext_HttpRequest) ProtoMessage()
- func (m *AttributeContext_HttpRequest) Reset()
- func (m *AttributeContext_HttpRequest) String() string
- 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_Merge(src proto.Message)
- func (m *AttributeContext_HttpRequest) XXX_Size() int
- func (m *AttributeContext_HttpRequest) XXX_Unmarshal(b []byte) error
- type AttributeContext_HttpRequestValidationError
- func (e AttributeContext_HttpRequestValidationError) Cause() error
- func (e AttributeContext_HttpRequestValidationError) Error() string
- func (e AttributeContext_HttpRequestValidationError) ErrorName() string
- func (e AttributeContext_HttpRequestValidationError) Field() string
- func (e AttributeContext_HttpRequestValidationError) Key() bool
- func (e AttributeContext_HttpRequestValidationError) Reason() string
- type AttributeContext_Peer
- func (*AttributeContext_Peer) Descriptor() ([]byte, []int)
- func (m *AttributeContext_Peer) GetAddress() *core.Address
- func (m *AttributeContext_Peer) GetCertificate() string
- func (m *AttributeContext_Peer) GetLabels() map[string]string
- func (m *AttributeContext_Peer) GetPrincipal() string
- func (m *AttributeContext_Peer) GetService() string
- func (*AttributeContext_Peer) ProtoMessage()
- func (m *AttributeContext_Peer) Reset()
- func (m *AttributeContext_Peer) String() string
- 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_Merge(src proto.Message)
- func (m *AttributeContext_Peer) XXX_Size() int
- func (m *AttributeContext_Peer) XXX_Unmarshal(b []byte) error
- type AttributeContext_PeerValidationError
- func (e AttributeContext_PeerValidationError) Cause() error
- func (e AttributeContext_PeerValidationError) Error() string
- func (e AttributeContext_PeerValidationError) ErrorName() string
- func (e AttributeContext_PeerValidationError) Field() string
- func (e AttributeContext_PeerValidationError) Key() bool
- func (e AttributeContext_PeerValidationError) Reason() string
- type AttributeContext_Request
- func (*AttributeContext_Request) Descriptor() ([]byte, []int)
- func (m *AttributeContext_Request) GetHttp() *AttributeContext_HttpRequest
- func (m *AttributeContext_Request) GetTime() *timestamp.Timestamp
- func (*AttributeContext_Request) ProtoMessage()
- func (m *AttributeContext_Request) Reset()
- func (m *AttributeContext_Request) String() string
- 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_Merge(src proto.Message)
- func (m *AttributeContext_Request) XXX_Size() int
- func (m *AttributeContext_Request) XXX_Unmarshal(b []byte) error
- type AttributeContext_RequestValidationError
- func (e AttributeContext_RequestValidationError) Cause() error
- func (e AttributeContext_RequestValidationError) Error() string
- func (e AttributeContext_RequestValidationError) ErrorName() string
- func (e AttributeContext_RequestValidationError) Field() string
- func (e AttributeContext_RequestValidationError) Key() bool
- func (e AttributeContext_RequestValidationError) Reason() string
- type AuthorizationClient
- type AuthorizationServer
- type CheckRequest
- func (*CheckRequest) Descriptor() ([]byte, []int)
- func (m *CheckRequest) GetAttributes() *AttributeContext
- func (*CheckRequest) ProtoMessage()
- func (m *CheckRequest) Reset()
- func (m *CheckRequest) String() string
- 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_Merge(src proto.Message)
- func (m *CheckRequest) XXX_Size() int
- func (m *CheckRequest) XXX_Unmarshal(b []byte) error
- type CheckRequestValidationError
- func (e CheckRequestValidationError) Cause() error
- func (e CheckRequestValidationError) Error() string
- func (e CheckRequestValidationError) ErrorName() string
- func (e CheckRequestValidationError) Field() string
- func (e CheckRequestValidationError) Key() bool
- func (e CheckRequestValidationError) Reason() string
- type CheckResponse
- func (*CheckResponse) Descriptor() ([]byte, []int)
- func (m *CheckResponse) GetDeniedResponse() *DeniedHttpResponse
- func (m *CheckResponse) GetHttpResponse() isCheckResponse_HttpResponse
- func (m *CheckResponse) GetOkResponse() *OkHttpResponse
- func (m *CheckResponse) GetStatus() *status.Status
- func (*CheckResponse) ProtoMessage()
- func (m *CheckResponse) Reset()
- func (m *CheckResponse) String() string
- 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_Merge(src proto.Message)
- func (*CheckResponse) XXX_OneofWrappers() []interface{}
- func (m *CheckResponse) XXX_Size() int
- func (m *CheckResponse) XXX_Unmarshal(b []byte) error
- type CheckResponseValidationError
- func (e CheckResponseValidationError) Cause() error
- func (e CheckResponseValidationError) Error() string
- func (e CheckResponseValidationError) ErrorName() string
- func (e CheckResponseValidationError) Field() string
- func (e CheckResponseValidationError) Key() bool
- func (e CheckResponseValidationError) Reason() string
- type CheckResponse_DeniedResponse
- type CheckResponse_OkResponse
- type DeniedHttpResponse
- func (*DeniedHttpResponse) Descriptor() ([]byte, []int)
- func (m *DeniedHttpResponse) GetBody() string
- func (m *DeniedHttpResponse) GetHeaders() []*core.HeaderValueOption
- func (m *DeniedHttpResponse) GetStatus() *_type.HttpStatus
- func (*DeniedHttpResponse) ProtoMessage()
- func (m *DeniedHttpResponse) Reset()
- func (m *DeniedHttpResponse) String() string
- 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_Merge(src proto.Message)
- func (m *DeniedHttpResponse) XXX_Size() int
- func (m *DeniedHttpResponse) XXX_Unmarshal(b []byte) error
- type DeniedHttpResponseValidationError
- func (e DeniedHttpResponseValidationError) Cause() error
- func (e DeniedHttpResponseValidationError) Error() string
- func (e DeniedHttpResponseValidationError) ErrorName() string
- func (e DeniedHttpResponseValidationError) Field() string
- func (e DeniedHttpResponseValidationError) Key() bool
- func (e DeniedHttpResponseValidationError) Reason() string
- type OkHttpResponse
- func (*OkHttpResponse) Descriptor() ([]byte, []int)
- func (m *OkHttpResponse) GetHeaders() []*core.HeaderValueOption
- func (*OkHttpResponse) ProtoMessage()
- func (m *OkHttpResponse) Reset()
- func (m *OkHttpResponse) String() string
- 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_Merge(src proto.Message)
- func (m *OkHttpResponse) XXX_Size() int
- func (m *OkHttpResponse) XXX_Unmarshal(b []byte) error
- type OkHttpResponseValidationError
- func (e OkHttpResponseValidationError) Cause() error
- func (e OkHttpResponseValidationError) Error() string
- func (e OkHttpResponseValidationError) ErrorName() string
- func (e OkHttpResponseValidationError) Field() string
- func (e OkHttpResponseValidationError) Key() bool
- func (e OkHttpResponseValidationError) Reason() string
- type UnimplementedAuthorizationServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAuthorizationServer ¶
func RegisterAuthorizationServer(s *grpc.Server, srv AuthorizationServer)
Types ¶
type AttributeContext ¶
type AttributeContext struct { Source *AttributeContext_Peer `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` Destination *AttributeContext_Peer `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` Request *AttributeContext_Request `protobuf:"bytes,4,opt,name=request,proto3" json:"request,omitempty"` ContextExtensions map[string]string `` /* 201-byte string literal not displayed */ MetadataContext *core.Metadata `protobuf:"bytes,11,opt,name=metadata_context,json=metadataContext,proto3" json:"metadata_context,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AttributeContext) Descriptor ¶
func (*AttributeContext) Descriptor() ([]byte, []int)
func (*AttributeContext) GetContextExtensions ¶
func (m *AttributeContext) GetContextExtensions() map[string]string
func (*AttributeContext) GetDestination ¶
func (m *AttributeContext) GetDestination() *AttributeContext_Peer
func (*AttributeContext) GetMetadataContext ¶ added in v0.9.0
func (m *AttributeContext) GetMetadataContext() *core.Metadata
func (*AttributeContext) GetRequest ¶
func (m *AttributeContext) GetRequest() *AttributeContext_Request
func (*AttributeContext) GetSource ¶
func (m *AttributeContext) GetSource() *AttributeContext_Peer
func (*AttributeContext) ProtoMessage ¶
func (*AttributeContext) ProtoMessage()
func (*AttributeContext) Reset ¶
func (m *AttributeContext) Reset()
func (*AttributeContext) String ¶
func (m *AttributeContext) String() string
func (*AttributeContext) Validate ¶
func (m *AttributeContext) Validate() error
Validate checks the field values on AttributeContext with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*AttributeContext) XXX_DiscardUnknown ¶
func (m *AttributeContext) XXX_DiscardUnknown()
func (*AttributeContext) XXX_Marshal ¶
func (m *AttributeContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AttributeContext) XXX_Merge ¶
func (m *AttributeContext) XXX_Merge(src proto.Message)
func (*AttributeContext) XXX_Size ¶
func (m *AttributeContext) XXX_Size() int
func (*AttributeContext) XXX_Unmarshal ¶
func (m *AttributeContext) XXX_Unmarshal(b []byte) error
type AttributeContextValidationError ¶
type AttributeContextValidationError struct {
// contains filtered or unexported fields
}
AttributeContextValidationError is the validation error returned by AttributeContext.Validate if the designated constraints aren't met.
func (AttributeContextValidationError) Cause ¶
func (e AttributeContextValidationError) Cause() error
Cause function returns cause value.
func (AttributeContextValidationError) Error ¶
func (e AttributeContextValidationError) Error() string
Error satisfies the builtin error interface
func (AttributeContextValidationError) ErrorName ¶ added in v0.7.0
func (e AttributeContextValidationError) ErrorName() string
ErrorName returns error name.
func (AttributeContextValidationError) Field ¶
func (e AttributeContextValidationError) Field() string
Field function returns field value.
func (AttributeContextValidationError) Key ¶
func (e AttributeContextValidationError) Key() bool
Key function returns key value.
func (AttributeContextValidationError) Reason ¶
func (e AttributeContextValidationError) Reason() string
Reason function returns reason value.
type AttributeContext_HttpRequest ¶
type AttributeContext_HttpRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` Headers map[string]string `` /* 155-byte string literal not displayed */ Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` Host string `protobuf:"bytes,5,opt,name=host,proto3" json:"host,omitempty"` Scheme string `protobuf:"bytes,6,opt,name=scheme,proto3" json:"scheme,omitempty"` Query string `protobuf:"bytes,7,opt,name=query,proto3" json:"query,omitempty"` Fragment string `protobuf:"bytes,8,opt,name=fragment,proto3" json:"fragment,omitempty"` Size int64 `protobuf:"varint,9,opt,name=size,proto3" json:"size,omitempty"` Protocol string `protobuf:"bytes,10,opt,name=protocol,proto3" json:"protocol,omitempty"` Body string `protobuf:"bytes,11,opt,name=body,proto3" json:"body,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AttributeContext_HttpRequest) Descriptor ¶
func (*AttributeContext_HttpRequest) Descriptor() ([]byte, []int)
func (*AttributeContext_HttpRequest) GetBody ¶ added in v0.7.0
func (m *AttributeContext_HttpRequest) GetBody() string
func (*AttributeContext_HttpRequest) GetFragment ¶
func (m *AttributeContext_HttpRequest) GetFragment() string
func (*AttributeContext_HttpRequest) GetHeaders ¶
func (m *AttributeContext_HttpRequest) GetHeaders() map[string]string
func (*AttributeContext_HttpRequest) GetHost ¶
func (m *AttributeContext_HttpRequest) GetHost() string
func (*AttributeContext_HttpRequest) GetId ¶
func (m *AttributeContext_HttpRequest) GetId() string
func (*AttributeContext_HttpRequest) GetMethod ¶
func (m *AttributeContext_HttpRequest) GetMethod() string
func (*AttributeContext_HttpRequest) GetPath ¶
func (m *AttributeContext_HttpRequest) GetPath() string
func (*AttributeContext_HttpRequest) GetProtocol ¶
func (m *AttributeContext_HttpRequest) GetProtocol() string
func (*AttributeContext_HttpRequest) GetQuery ¶
func (m *AttributeContext_HttpRequest) GetQuery() string
func (*AttributeContext_HttpRequest) GetScheme ¶
func (m *AttributeContext_HttpRequest) GetScheme() string
func (*AttributeContext_HttpRequest) GetSize ¶ added in v0.9.0
func (m *AttributeContext_HttpRequest) GetSize() int64
func (*AttributeContext_HttpRequest) ProtoMessage ¶
func (*AttributeContext_HttpRequest) ProtoMessage()
func (*AttributeContext_HttpRequest) Reset ¶
func (m *AttributeContext_HttpRequest) Reset()
func (*AttributeContext_HttpRequest) String ¶
func (m *AttributeContext_HttpRequest) String() string
func (*AttributeContext_HttpRequest) Validate ¶
func (m *AttributeContext_HttpRequest) Validate() error
Validate checks the field values on AttributeContext_HttpRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*AttributeContext_HttpRequest) XXX_DiscardUnknown ¶
func (m *AttributeContext_HttpRequest) XXX_DiscardUnknown()
func (*AttributeContext_HttpRequest) XXX_Marshal ¶
func (m *AttributeContext_HttpRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AttributeContext_HttpRequest) XXX_Merge ¶
func (m *AttributeContext_HttpRequest) XXX_Merge(src proto.Message)
func (*AttributeContext_HttpRequest) XXX_Size ¶
func (m *AttributeContext_HttpRequest) XXX_Size() int
func (*AttributeContext_HttpRequest) XXX_Unmarshal ¶
func (m *AttributeContext_HttpRequest) XXX_Unmarshal(b []byte) error
type AttributeContext_HttpRequestValidationError ¶
type AttributeContext_HttpRequestValidationError struct {
// contains filtered or unexported fields
}
AttributeContext_HttpRequestValidationError is the validation error returned by AttributeContext_HttpRequest.Validate if the designated constraints aren't met.
func (AttributeContext_HttpRequestValidationError) Cause ¶
func (e AttributeContext_HttpRequestValidationError) Cause() error
Cause function returns cause value.
func (AttributeContext_HttpRequestValidationError) Error ¶
func (e AttributeContext_HttpRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AttributeContext_HttpRequestValidationError) ErrorName ¶ added in v0.7.0
func (e AttributeContext_HttpRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AttributeContext_HttpRequestValidationError) Field ¶
func (e AttributeContext_HttpRequestValidationError) Field() string
Field function returns field value.
func (AttributeContext_HttpRequestValidationError) Key ¶
func (e AttributeContext_HttpRequestValidationError) Key() bool
Key function returns key value.
func (AttributeContext_HttpRequestValidationError) Reason ¶
func (e AttributeContext_HttpRequestValidationError) Reason() string
Reason function returns reason value.
type AttributeContext_Peer ¶
type AttributeContext_Peer struct { Address *core.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` Labels map[string]string `` /* 153-byte string literal not displayed */ Principal string `protobuf:"bytes,4,opt,name=principal,proto3" json:"principal,omitempty"` Certificate string `protobuf:"bytes,5,opt,name=certificate,proto3" json:"certificate,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AttributeContext_Peer) Descriptor ¶
func (*AttributeContext_Peer) Descriptor() ([]byte, []int)
func (*AttributeContext_Peer) GetAddress ¶
func (m *AttributeContext_Peer) GetAddress() *core.Address
func (*AttributeContext_Peer) GetCertificate ¶ added in v0.9.2
func (m *AttributeContext_Peer) GetCertificate() string
func (*AttributeContext_Peer) GetLabels ¶
func (m *AttributeContext_Peer) GetLabels() map[string]string
func (*AttributeContext_Peer) GetPrincipal ¶
func (m *AttributeContext_Peer) GetPrincipal() string
func (*AttributeContext_Peer) GetService ¶
func (m *AttributeContext_Peer) GetService() string
func (*AttributeContext_Peer) ProtoMessage ¶
func (*AttributeContext_Peer) ProtoMessage()
func (*AttributeContext_Peer) Reset ¶
func (m *AttributeContext_Peer) Reset()
func (*AttributeContext_Peer) String ¶
func (m *AttributeContext_Peer) String() string
func (*AttributeContext_Peer) Validate ¶
func (m *AttributeContext_Peer) Validate() error
Validate checks the field values on AttributeContext_Peer with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*AttributeContext_Peer) XXX_DiscardUnknown ¶
func (m *AttributeContext_Peer) XXX_DiscardUnknown()
func (*AttributeContext_Peer) XXX_Marshal ¶
func (m *AttributeContext_Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AttributeContext_Peer) XXX_Merge ¶
func (m *AttributeContext_Peer) XXX_Merge(src proto.Message)
func (*AttributeContext_Peer) XXX_Size ¶
func (m *AttributeContext_Peer) XXX_Size() int
func (*AttributeContext_Peer) XXX_Unmarshal ¶
func (m *AttributeContext_Peer) XXX_Unmarshal(b []byte) error
type AttributeContext_PeerValidationError ¶
type AttributeContext_PeerValidationError struct {
// contains filtered or unexported fields
}
AttributeContext_PeerValidationError is the validation error returned by AttributeContext_Peer.Validate if the designated constraints aren't met.
func (AttributeContext_PeerValidationError) Cause ¶
func (e AttributeContext_PeerValidationError) Cause() error
Cause function returns cause value.
func (AttributeContext_PeerValidationError) Error ¶
func (e AttributeContext_PeerValidationError) Error() string
Error satisfies the builtin error interface
func (AttributeContext_PeerValidationError) ErrorName ¶ added in v0.7.0
func (e AttributeContext_PeerValidationError) ErrorName() string
ErrorName returns error name.
func (AttributeContext_PeerValidationError) Field ¶
func (e AttributeContext_PeerValidationError) Field() string
Field function returns field value.
func (AttributeContext_PeerValidationError) Key ¶
func (e AttributeContext_PeerValidationError) Key() bool
Key function returns key value.
func (AttributeContext_PeerValidationError) Reason ¶
func (e AttributeContext_PeerValidationError) Reason() string
Reason function returns reason value.
type AttributeContext_Request ¶
type AttributeContext_Request struct { Time *timestamp.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` Http *AttributeContext_HttpRequest `protobuf:"bytes,2,opt,name=http,proto3" json:"http,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AttributeContext_Request) Descriptor ¶
func (*AttributeContext_Request) Descriptor() ([]byte, []int)
func (*AttributeContext_Request) GetHttp ¶
func (m *AttributeContext_Request) GetHttp() *AttributeContext_HttpRequest
func (*AttributeContext_Request) GetTime ¶
func (m *AttributeContext_Request) GetTime() *timestamp.Timestamp
func (*AttributeContext_Request) ProtoMessage ¶
func (*AttributeContext_Request) ProtoMessage()
func (*AttributeContext_Request) Reset ¶
func (m *AttributeContext_Request) Reset()
func (*AttributeContext_Request) String ¶
func (m *AttributeContext_Request) String() string
func (*AttributeContext_Request) Validate ¶
func (m *AttributeContext_Request) Validate() error
Validate checks the field values on AttributeContext_Request with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*AttributeContext_Request) XXX_DiscardUnknown ¶
func (m *AttributeContext_Request) XXX_DiscardUnknown()
func (*AttributeContext_Request) XXX_Marshal ¶
func (m *AttributeContext_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AttributeContext_Request) XXX_Merge ¶
func (m *AttributeContext_Request) XXX_Merge(src proto.Message)
func (*AttributeContext_Request) XXX_Size ¶
func (m *AttributeContext_Request) XXX_Size() int
func (*AttributeContext_Request) XXX_Unmarshal ¶
func (m *AttributeContext_Request) XXX_Unmarshal(b []byte) error
type AttributeContext_RequestValidationError ¶
type AttributeContext_RequestValidationError struct {
// contains filtered or unexported fields
}
AttributeContext_RequestValidationError is the validation error returned by AttributeContext_Request.Validate if the designated constraints aren't met.
func (AttributeContext_RequestValidationError) Cause ¶
func (e AttributeContext_RequestValidationError) Cause() error
Cause function returns cause value.
func (AttributeContext_RequestValidationError) Error ¶
func (e AttributeContext_RequestValidationError) Error() string
Error satisfies the builtin error interface
func (AttributeContext_RequestValidationError) ErrorName ¶ added in v0.7.0
func (e AttributeContext_RequestValidationError) ErrorName() string
ErrorName returns error name.
func (AttributeContext_RequestValidationError) Field ¶
func (e AttributeContext_RequestValidationError) Field() string
Field function returns field value.
func (AttributeContext_RequestValidationError) Key ¶
func (e AttributeContext_RequestValidationError) Key() bool
Key function returns key value.
func (AttributeContext_RequestValidationError) Reason ¶
func (e AttributeContext_RequestValidationError) Reason() string
Reason function returns reason value.
type AuthorizationClient ¶
type AuthorizationClient interface {
Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error)
}
AuthorizationClient is the client API for Authorization service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthorizationClient ¶
func NewAuthorizationClient(cc *grpc.ClientConn) AuthorizationClient
type AuthorizationServer ¶
type AuthorizationServer interface {
Check(context.Context, *CheckRequest) (*CheckResponse, error)
}
AuthorizationServer is the server API for Authorization service.
type CheckRequest ¶
type CheckRequest struct { Attributes *AttributeContext `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CheckRequest) Descriptor ¶
func (*CheckRequest) Descriptor() ([]byte, []int)
func (*CheckRequest) GetAttributes ¶
func (m *CheckRequest) GetAttributes() *AttributeContext
func (*CheckRequest) ProtoMessage ¶
func (*CheckRequest) ProtoMessage()
func (*CheckRequest) Reset ¶
func (m *CheckRequest) Reset()
func (*CheckRequest) String ¶
func (m *CheckRequest) String() string
func (*CheckRequest) Validate ¶
func (m *CheckRequest) Validate() error
Validate checks the field values on CheckRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*CheckRequest) XXX_DiscardUnknown ¶
func (m *CheckRequest) XXX_DiscardUnknown()
func (*CheckRequest) XXX_Marshal ¶
func (m *CheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CheckRequest) XXX_Merge ¶
func (m *CheckRequest) XXX_Merge(src proto.Message)
func (*CheckRequest) XXX_Size ¶
func (m *CheckRequest) XXX_Size() int
func (*CheckRequest) XXX_Unmarshal ¶
func (m *CheckRequest) XXX_Unmarshal(b []byte) error
type CheckRequestValidationError ¶
type CheckRequestValidationError struct {
// contains filtered or unexported fields
}
CheckRequestValidationError is the validation error returned by CheckRequest.Validate if the designated constraints aren't met.
func (CheckRequestValidationError) Cause ¶
func (e CheckRequestValidationError) Cause() error
Cause function returns cause value.
func (CheckRequestValidationError) Error ¶
func (e CheckRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CheckRequestValidationError) ErrorName ¶ added in v0.7.0
func (e CheckRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CheckRequestValidationError) Field ¶
func (e CheckRequestValidationError) Field() string
Field function returns field value.
func (CheckRequestValidationError) Key ¶
func (e CheckRequestValidationError) Key() bool
Key function returns key value.
func (CheckRequestValidationError) Reason ¶
func (e CheckRequestValidationError) Reason() string
Reason function returns reason value.
type CheckResponse ¶
type CheckResponse struct { Status *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // Types that are valid to be assigned to HttpResponse: // *CheckResponse_DeniedResponse // *CheckResponse_OkResponse HttpResponse isCheckResponse_HttpResponse `protobuf_oneof:"http_response"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CheckResponse) Descriptor ¶
func (*CheckResponse) Descriptor() ([]byte, []int)
func (*CheckResponse) GetDeniedResponse ¶
func (m *CheckResponse) GetDeniedResponse() *DeniedHttpResponse
func (*CheckResponse) GetHttpResponse ¶
func (m *CheckResponse) GetHttpResponse() isCheckResponse_HttpResponse
func (*CheckResponse) GetOkResponse ¶
func (m *CheckResponse) GetOkResponse() *OkHttpResponse
func (*CheckResponse) GetStatus ¶
func (m *CheckResponse) GetStatus() *status.Status
func (*CheckResponse) ProtoMessage ¶
func (*CheckResponse) ProtoMessage()
func (*CheckResponse) Reset ¶
func (m *CheckResponse) Reset()
func (*CheckResponse) String ¶
func (m *CheckResponse) String() string
func (*CheckResponse) Validate ¶
func (m *CheckResponse) Validate() error
Validate checks the field values on CheckResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*CheckResponse) XXX_DiscardUnknown ¶
func (m *CheckResponse) XXX_DiscardUnknown()
func (*CheckResponse) XXX_Marshal ¶
func (m *CheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CheckResponse) XXX_Merge ¶
func (m *CheckResponse) XXX_Merge(src proto.Message)
func (*CheckResponse) XXX_OneofWrappers ¶ added in v0.9.0
func (*CheckResponse) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*CheckResponse) XXX_Size ¶
func (m *CheckResponse) XXX_Size() int
func (*CheckResponse) XXX_Unmarshal ¶
func (m *CheckResponse) XXX_Unmarshal(b []byte) error
type CheckResponseValidationError ¶
type CheckResponseValidationError struct {
// contains filtered or unexported fields
}
CheckResponseValidationError is the validation error returned by CheckResponse.Validate if the designated constraints aren't met.
func (CheckResponseValidationError) Cause ¶
func (e CheckResponseValidationError) Cause() error
Cause function returns cause value.
func (CheckResponseValidationError) Error ¶
func (e CheckResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CheckResponseValidationError) ErrorName ¶ added in v0.7.0
func (e CheckResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CheckResponseValidationError) Field ¶
func (e CheckResponseValidationError) Field() string
Field function returns field value.
func (CheckResponseValidationError) Key ¶
func (e CheckResponseValidationError) Key() bool
Key function returns key value.
func (CheckResponseValidationError) Reason ¶
func (e CheckResponseValidationError) Reason() string
Reason function returns reason value.
type CheckResponse_DeniedResponse ¶
type CheckResponse_DeniedResponse struct {
DeniedResponse *DeniedHttpResponse `protobuf:"bytes,2,opt,name=denied_response,json=deniedResponse,proto3,oneof"`
}
type CheckResponse_OkResponse ¶
type CheckResponse_OkResponse struct {
OkResponse *OkHttpResponse `protobuf:"bytes,3,opt,name=ok_response,json=okResponse,proto3,oneof"`
}
type DeniedHttpResponse ¶
type DeniedHttpResponse struct { Status *_type.HttpStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` Headers []*core.HeaderValueOption `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"` Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeniedHttpResponse) Descriptor ¶
func (*DeniedHttpResponse) Descriptor() ([]byte, []int)
func (*DeniedHttpResponse) GetBody ¶
func (m *DeniedHttpResponse) GetBody() string
func (*DeniedHttpResponse) GetHeaders ¶
func (m *DeniedHttpResponse) GetHeaders() []*core.HeaderValueOption
func (*DeniedHttpResponse) GetStatus ¶
func (m *DeniedHttpResponse) GetStatus() *_type.HttpStatus
func (*DeniedHttpResponse) ProtoMessage ¶
func (*DeniedHttpResponse) ProtoMessage()
func (*DeniedHttpResponse) Reset ¶
func (m *DeniedHttpResponse) Reset()
func (*DeniedHttpResponse) String ¶
func (m *DeniedHttpResponse) String() string
func (*DeniedHttpResponse) Validate ¶
func (m *DeniedHttpResponse) Validate() error
Validate checks the field values on DeniedHttpResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*DeniedHttpResponse) XXX_DiscardUnknown ¶
func (m *DeniedHttpResponse) XXX_DiscardUnknown()
func (*DeniedHttpResponse) XXX_Marshal ¶
func (m *DeniedHttpResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeniedHttpResponse) XXX_Merge ¶
func (m *DeniedHttpResponse) XXX_Merge(src proto.Message)
func (*DeniedHttpResponse) XXX_Size ¶
func (m *DeniedHttpResponse) XXX_Size() int
func (*DeniedHttpResponse) XXX_Unmarshal ¶
func (m *DeniedHttpResponse) XXX_Unmarshal(b []byte) error
type DeniedHttpResponseValidationError ¶
type DeniedHttpResponseValidationError struct {
// contains filtered or unexported fields
}
DeniedHttpResponseValidationError is the validation error returned by DeniedHttpResponse.Validate if the designated constraints aren't met.
func (DeniedHttpResponseValidationError) Cause ¶
func (e DeniedHttpResponseValidationError) Cause() error
Cause function returns cause value.
func (DeniedHttpResponseValidationError) Error ¶
func (e DeniedHttpResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeniedHttpResponseValidationError) ErrorName ¶ added in v0.7.0
func (e DeniedHttpResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeniedHttpResponseValidationError) Field ¶
func (e DeniedHttpResponseValidationError) Field() string
Field function returns field value.
func (DeniedHttpResponseValidationError) Key ¶
func (e DeniedHttpResponseValidationError) Key() bool
Key function returns key value.
func (DeniedHttpResponseValidationError) Reason ¶
func (e DeniedHttpResponseValidationError) Reason() string
Reason function returns reason value.
type OkHttpResponse ¶
type OkHttpResponse struct { Headers []*core.HeaderValueOption `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*OkHttpResponse) Descriptor ¶
func (*OkHttpResponse) Descriptor() ([]byte, []int)
func (*OkHttpResponse) GetHeaders ¶
func (m *OkHttpResponse) GetHeaders() []*core.HeaderValueOption
func (*OkHttpResponse) ProtoMessage ¶
func (*OkHttpResponse) ProtoMessage()
func (*OkHttpResponse) Reset ¶
func (m *OkHttpResponse) Reset()
func (*OkHttpResponse) String ¶
func (m *OkHttpResponse) String() string
func (*OkHttpResponse) Validate ¶
func (m *OkHttpResponse) Validate() error
Validate checks the field values on OkHttpResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*OkHttpResponse) XXX_DiscardUnknown ¶
func (m *OkHttpResponse) XXX_DiscardUnknown()
func (*OkHttpResponse) XXX_Marshal ¶
func (m *OkHttpResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OkHttpResponse) XXX_Merge ¶
func (m *OkHttpResponse) XXX_Merge(src proto.Message)
func (*OkHttpResponse) XXX_Size ¶
func (m *OkHttpResponse) XXX_Size() int
func (*OkHttpResponse) XXX_Unmarshal ¶
func (m *OkHttpResponse) XXX_Unmarshal(b []byte) error
type OkHttpResponseValidationError ¶
type OkHttpResponseValidationError struct {
// contains filtered or unexported fields
}
OkHttpResponseValidationError is the validation error returned by OkHttpResponse.Validate if the designated constraints aren't met.
func (OkHttpResponseValidationError) Cause ¶
func (e OkHttpResponseValidationError) Cause() error
Cause function returns cause value.
func (OkHttpResponseValidationError) Error ¶
func (e OkHttpResponseValidationError) Error() string
Error satisfies the builtin error interface
func (OkHttpResponseValidationError) ErrorName ¶ added in v0.7.0
func (e OkHttpResponseValidationError) ErrorName() string
ErrorName returns error name.
func (OkHttpResponseValidationError) Field ¶
func (e OkHttpResponseValidationError) Field() string
Field function returns field value.
func (OkHttpResponseValidationError) Key ¶
func (e OkHttpResponseValidationError) Key() bool
Key function returns key value.
func (OkHttpResponseValidationError) Reason ¶
func (e OkHttpResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAuthorizationServer ¶ added in v0.9.1
type UnimplementedAuthorizationServer struct { }
UnimplementedAuthorizationServer can be embedded to have forward compatible implementations.
func (*UnimplementedAuthorizationServer) Check ¶ added in v0.9.1
func (*UnimplementedAuthorizationServer) Check(ctx context.Context, req *CheckRequest) (*CheckResponse, error)