Documentation
¶
Index ¶
- func RegisterAuthorizerServer(s *grpc.Server, srv AuthorizerServer)
- type AuthorizerClient
- type AuthorizerServer
- type IsAuthorizedReply
- func (*IsAuthorizedReply) Descriptor() ([]byte, []int)
- func (m *IsAuthorizedReply) GetAllow() bool
- func (m *IsAuthorizedReply) GetDenyReasons() []string
- func (m *IsAuthorizedReply) GetEmail() string
- func (m *IsAuthorizedReply) GetGroups() []string
- func (m *IsAuthorizedReply) GetSessionExpired() bool
- func (m *IsAuthorizedReply) GetSignedJwt() string
- func (m *IsAuthorizedReply) GetUser() string
- func (*IsAuthorizedReply) ProtoMessage()
- func (m *IsAuthorizedReply) Reset()
- func (m *IsAuthorizedReply) String() string
- func (m *IsAuthorizedReply) XXX_DiscardUnknown()
- func (m *IsAuthorizedReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IsAuthorizedReply) XXX_Merge(src proto.Message)
- func (m *IsAuthorizedReply) XXX_Size() int
- func (m *IsAuthorizedReply) XXX_Unmarshal(b []byte) error
- type IsAuthorizedRequest
- func (*IsAuthorizedRequest) Descriptor() ([]byte, []int)
- func (m *IsAuthorizedRequest) GetRequestHeaders() map[string]*IsAuthorizedRequest_Headers
- func (m *IsAuthorizedRequest) GetRequestHost() string
- func (m *IsAuthorizedRequest) GetRequestMethod() string
- func (m *IsAuthorizedRequest) GetRequestRemoteAddr() string
- func (m *IsAuthorizedRequest) GetRequestRequestUri() string
- func (m *IsAuthorizedRequest) GetRequestUrl() string
- func (m *IsAuthorizedRequest) GetUserToken() string
- func (*IsAuthorizedRequest) ProtoMessage()
- func (m *IsAuthorizedRequest) Reset()
- func (m *IsAuthorizedRequest) String() string
- func (m *IsAuthorizedRequest) XXX_DiscardUnknown()
- func (m *IsAuthorizedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IsAuthorizedRequest) XXX_Merge(src proto.Message)
- func (m *IsAuthorizedRequest) XXX_Size() int
- func (m *IsAuthorizedRequest) XXX_Unmarshal(b []byte) error
- type IsAuthorizedRequest_Headers
- func (*IsAuthorizedRequest_Headers) Descriptor() ([]byte, []int)
- func (m *IsAuthorizedRequest_Headers) GetValue() []string
- func (*IsAuthorizedRequest_Headers) ProtoMessage()
- func (m *IsAuthorizedRequest_Headers) Reset()
- func (m *IsAuthorizedRequest_Headers) String() string
- func (m *IsAuthorizedRequest_Headers) XXX_DiscardUnknown()
- func (m *IsAuthorizedRequest_Headers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IsAuthorizedRequest_Headers) XXX_Merge(src proto.Message)
- func (m *IsAuthorizedRequest_Headers) XXX_Size() int
- func (m *IsAuthorizedRequest_Headers) XXX_Unmarshal(b []byte) error
- type UnimplementedAuthorizerServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAuthorizerServer ¶
func RegisterAuthorizerServer(s *grpc.Server, srv AuthorizerServer)
Types ¶
type AuthorizerClient ¶
type AuthorizerClient interface {
IsAuthorized(ctx context.Context, in *IsAuthorizedRequest, opts ...grpc.CallOption) (*IsAuthorizedReply, error)
}
AuthorizerClient is the client API for Authorizer service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthorizerClient ¶
func NewAuthorizerClient(cc grpc.ClientConnInterface) AuthorizerClient
type AuthorizerServer ¶
type AuthorizerServer interface {
IsAuthorized(context.Context, *IsAuthorizedRequest) (*IsAuthorizedReply, error)
}
AuthorizerServer is the server API for Authorizer service.
type IsAuthorizedReply ¶ added in v0.7.0
type IsAuthorizedReply struct { Allow bool `protobuf:"varint,1,opt,name=allow,proto3" json:"allow,omitempty"` SessionExpired bool `protobuf:"varint,2,opt,name=session_expired,json=sessionExpired,proto3" json:"session_expired,omitempty"` DenyReasons []string `protobuf:"bytes,3,rep,name=deny_reasons,json=denyReasons,proto3" json:"deny_reasons,omitempty"` SignedJwt string `protobuf:"bytes,4,opt,name=signed_jwt,json=signedJwt,proto3" json:"signed_jwt,omitempty"` User string `protobuf:"bytes,5,opt,name=user,proto3" json:"user,omitempty"` Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"` Groups []string `protobuf:"bytes,7,rep,name=groups,proto3" json:"groups,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*IsAuthorizedReply) Descriptor ¶ added in v0.7.0
func (*IsAuthorizedReply) Descriptor() ([]byte, []int)
func (*IsAuthorizedReply) GetAllow ¶ added in v0.7.0
func (m *IsAuthorizedReply) GetAllow() bool
func (*IsAuthorizedReply) GetDenyReasons ¶ added in v0.7.0
func (m *IsAuthorizedReply) GetDenyReasons() []string
func (*IsAuthorizedReply) GetEmail ¶ added in v0.7.0
func (m *IsAuthorizedReply) GetEmail() string
func (*IsAuthorizedReply) GetGroups ¶ added in v0.7.0
func (m *IsAuthorizedReply) GetGroups() []string
func (*IsAuthorizedReply) GetSessionExpired ¶ added in v0.7.0
func (m *IsAuthorizedReply) GetSessionExpired() bool
func (*IsAuthorizedReply) GetSignedJwt ¶ added in v0.7.0
func (m *IsAuthorizedReply) GetSignedJwt() string
func (*IsAuthorizedReply) GetUser ¶ added in v0.7.0
func (m *IsAuthorizedReply) GetUser() string
func (*IsAuthorizedReply) ProtoMessage ¶ added in v0.7.0
func (*IsAuthorizedReply) ProtoMessage()
func (*IsAuthorizedReply) Reset ¶ added in v0.7.0
func (m *IsAuthorizedReply) Reset()
func (*IsAuthorizedReply) String ¶ added in v0.7.0
func (m *IsAuthorizedReply) String() string
func (*IsAuthorizedReply) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *IsAuthorizedReply) XXX_DiscardUnknown()
func (*IsAuthorizedReply) XXX_Marshal ¶ added in v0.7.0
func (m *IsAuthorizedReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IsAuthorizedReply) XXX_Merge ¶ added in v0.7.0
func (m *IsAuthorizedReply) XXX_Merge(src proto.Message)
func (*IsAuthorizedReply) XXX_Size ¶ added in v0.7.0
func (m *IsAuthorizedReply) XXX_Size() int
func (*IsAuthorizedReply) XXX_Unmarshal ¶ added in v0.7.0
func (m *IsAuthorizedReply) XXX_Unmarshal(b []byte) error
type IsAuthorizedRequest ¶ added in v0.7.0
type IsAuthorizedRequest struct { // User Context // UserToken string `protobuf:"bytes,1,opt,name=user_token,json=userToken,proto3" json:"user_token,omitempty"` // Request Context // // Method specifies the HTTP method (GET, POST, PUT, etc.). RequestMethod string `protobuf:"bytes,2,opt,name=request_method,json=requestMethod,proto3" json:"request_method,omitempty"` // URL specifies either the URI being requested RequestUrl string `protobuf:"bytes,3,opt,name=request_url,json=requestUrl,proto3" json:"request_url,omitempty"` // host specifies the host on which the URL per RFC 7230, section 5.4 RequestHost string `protobuf:"bytes,4,opt,name=request_host,json=requestHost,proto3" json:"request_host,omitempty"` // request_uri is the unmodified request-target of the // Request-Line (RFC 7230, Section 3.1.1) as sent by the client RequestRequestUri string `protobuf:"bytes,5,opt,name=request_request_uri,json=requestRequestUri,proto3" json:"request_request_uri,omitempty"` // RemoteAddr allows HTTP servers and other software to record // the network address that sent the request, usually for RequestRemoteAddr string `protobuf:"bytes,6,opt,name=request_remote_addr,json=requestRemoteAddr,proto3" json:"request_remote_addr,omitempty"` RequestHeaders map[string]*IsAuthorizedRequest_Headers `` /* 191-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*IsAuthorizedRequest) Descriptor ¶ added in v0.7.0
func (*IsAuthorizedRequest) Descriptor() ([]byte, []int)
func (*IsAuthorizedRequest) GetRequestHeaders ¶ added in v0.7.0
func (m *IsAuthorizedRequest) GetRequestHeaders() map[string]*IsAuthorizedRequest_Headers
func (*IsAuthorizedRequest) GetRequestHost ¶ added in v0.7.0
func (m *IsAuthorizedRequest) GetRequestHost() string
func (*IsAuthorizedRequest) GetRequestMethod ¶ added in v0.7.0
func (m *IsAuthorizedRequest) GetRequestMethod() string
func (*IsAuthorizedRequest) GetRequestRemoteAddr ¶ added in v0.7.0
func (m *IsAuthorizedRequest) GetRequestRemoteAddr() string
func (*IsAuthorizedRequest) GetRequestRequestUri ¶ added in v0.7.0
func (m *IsAuthorizedRequest) GetRequestRequestUri() string
func (*IsAuthorizedRequest) GetRequestUrl ¶ added in v0.7.0
func (m *IsAuthorizedRequest) GetRequestUrl() string
func (*IsAuthorizedRequest) GetUserToken ¶ added in v0.7.0
func (m *IsAuthorizedRequest) GetUserToken() string
func (*IsAuthorizedRequest) ProtoMessage ¶ added in v0.7.0
func (*IsAuthorizedRequest) ProtoMessage()
func (*IsAuthorizedRequest) Reset ¶ added in v0.7.0
func (m *IsAuthorizedRequest) Reset()
func (*IsAuthorizedRequest) String ¶ added in v0.7.0
func (m *IsAuthorizedRequest) String() string
func (*IsAuthorizedRequest) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *IsAuthorizedRequest) XXX_DiscardUnknown()
func (*IsAuthorizedRequest) XXX_Marshal ¶ added in v0.7.0
func (m *IsAuthorizedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IsAuthorizedRequest) XXX_Merge ¶ added in v0.7.0
func (m *IsAuthorizedRequest) XXX_Merge(src proto.Message)
func (*IsAuthorizedRequest) XXX_Size ¶ added in v0.7.0
func (m *IsAuthorizedRequest) XXX_Size() int
func (*IsAuthorizedRequest) XXX_Unmarshal ¶ added in v0.7.0
func (m *IsAuthorizedRequest) XXX_Unmarshal(b []byte) error
type IsAuthorizedRequest_Headers ¶ added in v0.7.0
type IsAuthorizedRequest_Headers struct { Value []string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
headers represents key-value pairs in an HTTP header; map[string][]string
func (*IsAuthorizedRequest_Headers) Descriptor ¶ added in v0.7.0
func (*IsAuthorizedRequest_Headers) Descriptor() ([]byte, []int)
func (*IsAuthorizedRequest_Headers) GetValue ¶ added in v0.7.0
func (m *IsAuthorizedRequest_Headers) GetValue() []string
func (*IsAuthorizedRequest_Headers) ProtoMessage ¶ added in v0.7.0
func (*IsAuthorizedRequest_Headers) ProtoMessage()
func (*IsAuthorizedRequest_Headers) Reset ¶ added in v0.7.0
func (m *IsAuthorizedRequest_Headers) Reset()
func (*IsAuthorizedRequest_Headers) String ¶ added in v0.7.0
func (m *IsAuthorizedRequest_Headers) String() string
func (*IsAuthorizedRequest_Headers) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *IsAuthorizedRequest_Headers) XXX_DiscardUnknown()
func (*IsAuthorizedRequest_Headers) XXX_Marshal ¶ added in v0.7.0
func (m *IsAuthorizedRequest_Headers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IsAuthorizedRequest_Headers) XXX_Merge ¶ added in v0.7.0
func (m *IsAuthorizedRequest_Headers) XXX_Merge(src proto.Message)
func (*IsAuthorizedRequest_Headers) XXX_Size ¶ added in v0.7.0
func (m *IsAuthorizedRequest_Headers) XXX_Size() int
func (*IsAuthorizedRequest_Headers) XXX_Unmarshal ¶ added in v0.7.0
func (m *IsAuthorizedRequest_Headers) XXX_Unmarshal(b []byte) error
type UnimplementedAuthorizerServer ¶
type UnimplementedAuthorizerServer struct { }
UnimplementedAuthorizerServer can be embedded to have forward compatible implementations.
func (*UnimplementedAuthorizerServer) IsAuthorized ¶ added in v0.7.0
func (*UnimplementedAuthorizerServer) IsAuthorized(ctx context.Context, req *IsAuthorizedRequest) (*IsAuthorizedReply, error)
Click to show internal directories.
Click to hide internal directories.