Documentation ¶
Index ¶
- Variables
- func NewAccountsEndpoints() []*api.Endpoint
- func NewAuthEndpoints() []*api.Endpoint
- func NewRulesEndpoints() []*api.Endpoint
- func RegisterAccountsHandler(s server.Server, hdlr AccountsHandler, opts ...server.HandlerOption) error
- func RegisterAccountsServer(s *grpc.Server, srv AccountsServer)
- func RegisterAuthHandler(s server.Server, hdlr AuthHandler, opts ...server.HandlerOption) error
- func RegisterAuthServer(s *grpc.Server, srv AuthServer)
- func RegisterRulesHandler(s server.Server, hdlr RulesHandler, opts ...server.HandlerOption) error
- func RegisterRulesServer(s *grpc.Server, srv RulesServer)
- type Access
- type Account
- func (*Account) Descriptor() ([]byte, []int)
- func (m *Account) GetId() string
- func (m *Account) GetIssuer() string
- func (m *Account) GetMetadata() map[string]string
- func (m *Account) GetScopes() []string
- func (m *Account) GetSecret() string
- func (m *Account) GetType() string
- func (m *Account) Marshal() (dAtA []byte, err error)
- func (m *Account) MarshalTo(dAtA []byte) (int, error)
- func (m *Account) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Account) ProtoMessage()
- func (m *Account) Reset()
- func (m *Account) Size() (n int)
- func (m *Account) String() string
- func (m *Account) Unmarshal(dAtA []byte) error
- func (m *Account) XXX_DiscardUnknown()
- func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Account) XXX_Merge(src proto.Message)
- func (m *Account) XXX_Size() int
- func (m *Account) XXX_Unmarshal(b []byte) error
- type AccountsClient
- type AccountsHandler
- type AccountsServer
- type AccountsService
- type AuthClient
- type AuthHandler
- type AuthServer
- type AuthService
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)
- func (m *CreateRequest) GetRule() *Rule
- func (m *CreateRequest) Marshal() (dAtA []byte, err error)
- func (m *CreateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *CreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CreateRequest) ProtoMessage()
- func (m *CreateRequest) Reset()
- func (m *CreateRequest) Size() (n int)
- func (m *CreateRequest) String() string
- func (m *CreateRequest) Unmarshal(dAtA []byte) error
- func (m *CreateRequest) XXX_DiscardUnknown()
- func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateRequest) XXX_Merge(src proto.Message)
- func (m *CreateRequest) XXX_Size() int
- func (m *CreateRequest) XXX_Unmarshal(b []byte) error
- type CreateResponse
- func (*CreateResponse) Descriptor() ([]byte, []int)
- func (m *CreateResponse) Marshal() (dAtA []byte, err error)
- func (m *CreateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *CreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CreateResponse) ProtoMessage()
- func (m *CreateResponse) Reset()
- func (m *CreateResponse) Size() (n int)
- func (m *CreateResponse) String() string
- func (m *CreateResponse) Unmarshal(dAtA []byte) error
- func (m *CreateResponse) XXX_DiscardUnknown()
- func (m *CreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateResponse) XXX_Merge(src proto.Message)
- func (m *CreateResponse) XXX_Size() int
- func (m *CreateResponse) XXX_Unmarshal(b []byte) error
- type DeleteRequest
- func (*DeleteRequest) Descriptor() ([]byte, []int)
- func (m *DeleteRequest) GetId() string
- func (m *DeleteRequest) Marshal() (dAtA []byte, err error)
- func (m *DeleteRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *DeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeleteRequest) ProtoMessage()
- func (m *DeleteRequest) Reset()
- func (m *DeleteRequest) Size() (n int)
- func (m *DeleteRequest) String() string
- func (m *DeleteRequest) Unmarshal(dAtA []byte) error
- func (m *DeleteRequest) XXX_DiscardUnknown()
- func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteRequest) XXX_Merge(src proto.Message)
- func (m *DeleteRequest) XXX_Size() int
- func (m *DeleteRequest) XXX_Unmarshal(b []byte) error
- type DeleteResponse
- func (*DeleteResponse) Descriptor() ([]byte, []int)
- func (m *DeleteResponse) Marshal() (dAtA []byte, err error)
- func (m *DeleteResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *DeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeleteResponse) ProtoMessage()
- func (m *DeleteResponse) Reset()
- func (m *DeleteResponse) Size() (n int)
- func (m *DeleteResponse) String() string
- func (m *DeleteResponse) Unmarshal(dAtA []byte) error
- func (m *DeleteResponse) XXX_DiscardUnknown()
- func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteResponse) XXX_Merge(src proto.Message)
- func (m *DeleteResponse) XXX_Size() int
- func (m *DeleteResponse) XXX_Unmarshal(b []byte) error
- type GenerateRequest
- func (*GenerateRequest) Descriptor() ([]byte, []int)
- func (m *GenerateRequest) GetId() string
- func (m *GenerateRequest) GetMetadata() map[string]string
- func (m *GenerateRequest) GetProvider() string
- func (m *GenerateRequest) GetScopes() []string
- func (m *GenerateRequest) GetSecret() string
- func (m *GenerateRequest) GetType() string
- func (m *GenerateRequest) Marshal() (dAtA []byte, err error)
- func (m *GenerateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GenerateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenerateRequest) ProtoMessage()
- func (m *GenerateRequest) Reset()
- func (m *GenerateRequest) Size() (n int)
- func (m *GenerateRequest) String() string
- func (m *GenerateRequest) Unmarshal(dAtA []byte) error
- func (m *GenerateRequest) XXX_DiscardUnknown()
- func (m *GenerateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenerateRequest) XXX_Merge(src proto.Message)
- func (m *GenerateRequest) XXX_Size() int
- func (m *GenerateRequest) XXX_Unmarshal(b []byte) error
- type GenerateResponse
- func (*GenerateResponse) Descriptor() ([]byte, []int)
- func (m *GenerateResponse) GetAccount() *Account
- func (m *GenerateResponse) Marshal() (dAtA []byte, err error)
- func (m *GenerateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GenerateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenerateResponse) ProtoMessage()
- func (m *GenerateResponse) Reset()
- func (m *GenerateResponse) Size() (n int)
- func (m *GenerateResponse) String() string
- func (m *GenerateResponse) Unmarshal(dAtA []byte) error
- func (m *GenerateResponse) XXX_DiscardUnknown()
- func (m *GenerateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenerateResponse) XXX_Merge(src proto.Message)
- func (m *GenerateResponse) XXX_Size() int
- func (m *GenerateResponse) XXX_Unmarshal(b []byte) error
- type GrantRequest
- func (*GrantRequest) Descriptor() ([]byte, []int)
- func (m *GrantRequest) GetResource() *Resource
- func (m *GrantRequest) GetScope() string
- func (m *GrantRequest) Marshal() (dAtA []byte, err error)
- func (m *GrantRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GrantRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GrantRequest) ProtoMessage()
- func (m *GrantRequest) Reset()
- func (m *GrantRequest) Size() (n int)
- func (m *GrantRequest) String() string
- func (m *GrantRequest) Unmarshal(dAtA []byte) error
- func (m *GrantRequest) XXX_DiscardUnknown()
- func (m *GrantRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GrantRequest) XXX_Merge(src proto.Message)
- func (m *GrantRequest) XXX_Size() int
- func (m *GrantRequest) XXX_Unmarshal(b []byte) error
- type GrantResponse
- func (*GrantResponse) Descriptor() ([]byte, []int)
- func (m *GrantResponse) Marshal() (dAtA []byte, err error)
- func (m *GrantResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GrantResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GrantResponse) ProtoMessage()
- func (m *GrantResponse) Reset()
- func (m *GrantResponse) Size() (n int)
- func (m *GrantResponse) String() string
- func (m *GrantResponse) Unmarshal(dAtA []byte) error
- func (m *GrantResponse) XXX_DiscardUnknown()
- func (m *GrantResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GrantResponse) XXX_Merge(src proto.Message)
- func (m *GrantResponse) XXX_Size() int
- func (m *GrantResponse) XXX_Unmarshal(b []byte) error
- type InspectRequest
- func (*InspectRequest) Descriptor() ([]byte, []int)
- func (m *InspectRequest) GetToken() string
- func (m *InspectRequest) Marshal() (dAtA []byte, err error)
- func (m *InspectRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *InspectRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*InspectRequest) ProtoMessage()
- func (m *InspectRequest) Reset()
- func (m *InspectRequest) Size() (n int)
- func (m *InspectRequest) String() string
- func (m *InspectRequest) Unmarshal(dAtA []byte) error
- func (m *InspectRequest) XXX_DiscardUnknown()
- func (m *InspectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InspectRequest) XXX_Merge(src proto.Message)
- func (m *InspectRequest) XXX_Size() int
- func (m *InspectRequest) XXX_Unmarshal(b []byte) error
- type InspectResponse
- func (*InspectResponse) Descriptor() ([]byte, []int)
- func (m *InspectResponse) GetAccount() *Account
- func (m *InspectResponse) Marshal() (dAtA []byte, err error)
- func (m *InspectResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *InspectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*InspectResponse) ProtoMessage()
- func (m *InspectResponse) Reset()
- func (m *InspectResponse) Size() (n int)
- func (m *InspectResponse) String() string
- func (m *InspectResponse) Unmarshal(dAtA []byte) error
- func (m *InspectResponse) XXX_DiscardUnknown()
- func (m *InspectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InspectResponse) XXX_Merge(src proto.Message)
- func (m *InspectResponse) XXX_Size() int
- func (m *InspectResponse) XXX_Unmarshal(b []byte) error
- type ListAccountsRequest
- func (*ListAccountsRequest) Descriptor() ([]byte, []int)
- func (m *ListAccountsRequest) Marshal() (dAtA []byte, err error)
- func (m *ListAccountsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ListAccountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListAccountsRequest) ProtoMessage()
- func (m *ListAccountsRequest) Reset()
- func (m *ListAccountsRequest) Size() (n int)
- func (m *ListAccountsRequest) String() string
- func (m *ListAccountsRequest) Unmarshal(dAtA []byte) error
- func (m *ListAccountsRequest) XXX_DiscardUnknown()
- func (m *ListAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListAccountsRequest) XXX_Merge(src proto.Message)
- func (m *ListAccountsRequest) XXX_Size() int
- func (m *ListAccountsRequest) XXX_Unmarshal(b []byte) error
- type ListAccountsResponse
- func (*ListAccountsResponse) Descriptor() ([]byte, []int)
- func (m *ListAccountsResponse) GetAccounts() []*Account
- func (m *ListAccountsResponse) Marshal() (dAtA []byte, err error)
- func (m *ListAccountsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ListAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListAccountsResponse) ProtoMessage()
- func (m *ListAccountsResponse) Reset()
- func (m *ListAccountsResponse) Size() (n int)
- func (m *ListAccountsResponse) String() string
- func (m *ListAccountsResponse) Unmarshal(dAtA []byte) error
- func (m *ListAccountsResponse) XXX_DiscardUnknown()
- func (m *ListAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListAccountsResponse) XXX_Merge(src proto.Message)
- func (m *ListAccountsResponse) XXX_Size() int
- func (m *ListAccountsResponse) XXX_Unmarshal(b []byte) error
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)
- func (m *ListRequest) Marshal() (dAtA []byte, err error)
- func (m *ListRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListRequest) ProtoMessage()
- func (m *ListRequest) Reset()
- func (m *ListRequest) Size() (n int)
- func (m *ListRequest) String() string
- func (m *ListRequest) Unmarshal(dAtA []byte) error
- func (m *ListRequest) XXX_DiscardUnknown()
- func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListRequest) XXX_Merge(src proto.Message)
- func (m *ListRequest) XXX_Size() int
- func (m *ListRequest) XXX_Unmarshal(b []byte) error
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)
- func (m *ListResponse) GetRules() []*Rule
- func (m *ListResponse) Marshal() (dAtA []byte, err error)
- func (m *ListResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListResponse) ProtoMessage()
- func (m *ListResponse) Reset()
- func (m *ListResponse) Size() (n int)
- func (m *ListResponse) String() string
- func (m *ListResponse) Unmarshal(dAtA []byte) error
- func (m *ListResponse) XXX_DiscardUnknown()
- func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListResponse) XXX_Merge(src proto.Message)
- func (m *ListResponse) XXX_Size() int
- func (m *ListResponse) XXX_Unmarshal(b []byte) error
- type Resource
- func (*Resource) Descriptor() ([]byte, []int)
- func (m *Resource) GetEndpoint() string
- func (m *Resource) GetName() string
- func (m *Resource) GetType() string
- func (m *Resource) Marshal() (dAtA []byte, err error)
- func (m *Resource) MarshalTo(dAtA []byte) (int, error)
- func (m *Resource) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Resource) ProtoMessage()
- func (m *Resource) Reset()
- func (m *Resource) Size() (n int)
- func (m *Resource) String() string
- func (m *Resource) Unmarshal(dAtA []byte) error
- func (m *Resource) XXX_DiscardUnknown()
- func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Resource) XXX_Merge(src proto.Message)
- func (m *Resource) XXX_Size() int
- func (m *Resource) XXX_Unmarshal(b []byte) error
- type RevokeRequest
- func (*RevokeRequest) Descriptor() ([]byte, []int)
- func (m *RevokeRequest) GetResource() *Resource
- func (m *RevokeRequest) GetScope() string
- func (m *RevokeRequest) Marshal() (dAtA []byte, err error)
- func (m *RevokeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *RevokeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RevokeRequest) ProtoMessage()
- func (m *RevokeRequest) Reset()
- func (m *RevokeRequest) Size() (n int)
- func (m *RevokeRequest) String() string
- func (m *RevokeRequest) Unmarshal(dAtA []byte) error
- func (m *RevokeRequest) XXX_DiscardUnknown()
- func (m *RevokeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RevokeRequest) XXX_Merge(src proto.Message)
- func (m *RevokeRequest) XXX_Size() int
- func (m *RevokeRequest) XXX_Unmarshal(b []byte) error
- type RevokeResponse
- func (*RevokeResponse) Descriptor() ([]byte, []int)
- func (m *RevokeResponse) Marshal() (dAtA []byte, err error)
- func (m *RevokeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *RevokeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RevokeResponse) ProtoMessage()
- func (m *RevokeResponse) Reset()
- func (m *RevokeResponse) Size() (n int)
- func (m *RevokeResponse) String() string
- func (m *RevokeResponse) Unmarshal(dAtA []byte) error
- func (m *RevokeResponse) XXX_DiscardUnknown()
- func (m *RevokeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RevokeResponse) XXX_Merge(src proto.Message)
- func (m *RevokeResponse) XXX_Size() int
- func (m *RevokeResponse) XXX_Unmarshal(b []byte) error
- type Rule
- func (*Rule) Descriptor() ([]byte, []int)
- func (m *Rule) GetAccess() Access
- func (m *Rule) GetId() string
- func (m *Rule) GetPriority() int32
- func (m *Rule) GetResource() *Resource
- func (m *Rule) GetScope() string
- func (m *Rule) Marshal() (dAtA []byte, err error)
- func (m *Rule) MarshalTo(dAtA []byte) (int, error)
- func (m *Rule) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Rule) ProtoMessage()
- func (m *Rule) Reset()
- func (m *Rule) Size() (n int)
- func (m *Rule) String() string
- func (m *Rule) Unmarshal(dAtA []byte) error
- func (m *Rule) XXX_DiscardUnknown()
- func (m *Rule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Rule) XXX_Merge(src proto.Message)
- func (m *Rule) XXX_Size() int
- func (m *Rule) XXX_Unmarshal(b []byte) error
- type RulesClient
- type RulesHandler
- type RulesServer
- type RulesService
- type Token
- func (*Token) Descriptor() ([]byte, []int)
- func (m *Token) GetAccessToken() string
- func (m *Token) GetCreated() int64
- func (m *Token) GetExpiry() int64
- func (m *Token) GetRefreshToken() string
- func (m *Token) Marshal() (dAtA []byte, err error)
- func (m *Token) MarshalTo(dAtA []byte) (int, error)
- func (m *Token) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Token) ProtoMessage()
- func (m *Token) Reset()
- func (m *Token) Size() (n int)
- func (m *Token) String() string
- func (m *Token) Unmarshal(dAtA []byte) error
- func (m *Token) XXX_DiscardUnknown()
- func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Token) XXX_Merge(src proto.Message)
- func (m *Token) XXX_Size() int
- func (m *Token) XXX_Unmarshal(b []byte) error
- type TokenRequest
- func (*TokenRequest) Descriptor() ([]byte, []int)
- func (m *TokenRequest) GetId() string
- func (m *TokenRequest) GetRefreshToken() string
- func (m *TokenRequest) GetSecret() string
- func (m *TokenRequest) GetTokenExpiry() int64
- func (m *TokenRequest) Marshal() (dAtA []byte, err error)
- func (m *TokenRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *TokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TokenRequest) ProtoMessage()
- func (m *TokenRequest) Reset()
- func (m *TokenRequest) Size() (n int)
- func (m *TokenRequest) String() string
- func (m *TokenRequest) Unmarshal(dAtA []byte) error
- func (m *TokenRequest) XXX_DiscardUnknown()
- func (m *TokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenRequest) XXX_Merge(src proto.Message)
- func (m *TokenRequest) XXX_Size() int
- func (m *TokenRequest) XXX_Unmarshal(b []byte) error
- type TokenResponse
- func (*TokenResponse) Descriptor() ([]byte, []int)
- func (m *TokenResponse) GetToken() *Token
- func (m *TokenResponse) Marshal() (dAtA []byte, err error)
- func (m *TokenResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *TokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TokenResponse) ProtoMessage()
- func (m *TokenResponse) Reset()
- func (m *TokenResponse) Size() (n int)
- func (m *TokenResponse) String() string
- func (m *TokenResponse) Unmarshal(dAtA []byte) error
- func (m *TokenResponse) XXX_DiscardUnknown()
- func (m *TokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenResponse) XXX_Merge(src proto.Message)
- func (m *TokenResponse) XXX_Size() int
- func (m *TokenResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedAccountsServer
- type UnimplementedAuthServer
- func (*UnimplementedAuthServer) Generate(ctx context.Context, req *GenerateRequest) (*GenerateResponse, error)
- func (*UnimplementedAuthServer) Inspect(ctx context.Context, req *InspectRequest) (*InspectResponse, error)
- func (*UnimplementedAuthServer) Token(ctx context.Context, req *TokenRequest) (*TokenResponse, error)
- type UnimplementedRulesServer
- func (*UnimplementedRulesServer) Create(ctx context.Context, req *CreateRequest) (*CreateResponse, error)
- func (*UnimplementedRulesServer) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error)
- func (*UnimplementedRulesServer) List(ctx context.Context, req *ListRequest) (*ListResponse, error)
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthAuth = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAuth = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAuth = fmt.Errorf("proto: unexpected end of group") )
var Access_name = map[int32]string{
0: "UNKNOWN",
1: "GRANTED",
2: "DENIED",
}
var Access_value = map[string]int32{
"UNKNOWN": 0,
"GRANTED": 1,
"DENIED": 2,
}
Functions ¶
func NewAccountsEndpoints ¶
Api Endpoints for Accounts service
func RegisterAccountsHandler ¶
func RegisterAccountsHandler(s server.Server, hdlr AccountsHandler, opts ...server.HandlerOption) error
func RegisterAccountsServer ¶
func RegisterAccountsServer(s *grpc.Server, srv AccountsServer)
func RegisterAuthHandler ¶
func RegisterAuthHandler(s server.Server, hdlr AuthHandler, opts ...server.HandlerOption) error
func RegisterAuthServer ¶
func RegisterAuthServer(s *grpc.Server, srv AuthServer)
func RegisterRulesHandler ¶
func RegisterRulesHandler(s server.Server, hdlr RulesHandler, opts ...server.HandlerOption) error
func RegisterRulesServer ¶
func RegisterRulesServer(s *grpc.Server, srv RulesServer)
Types ¶
type Account ¶
type Account struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Metadata map[string]string `` /* 157-byte string literal not displayed */ Scopes []string `protobuf:"bytes,5,rep,name=scopes,proto3" json:"scopes,omitempty"` Issuer string `protobuf:"bytes,6,opt,name=issuer,proto3" json:"issuer,omitempty"` Secret string `protobuf:"bytes,7,opt,name=secret,proto3" json:"secret,omitempty"` }
func (*Account) Descriptor ¶
func (*Account) GetMetadata ¶
func (*Account) MarshalToSizedBuffer ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) XXX_DiscardUnknown ¶
func (m *Account) XXX_DiscardUnknown()
func (*Account) XXX_Marshal ¶
func (*Account) XXX_Unmarshal ¶
type AccountsClient ¶
type AccountsClient interface {
List(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error)
}
AccountsClient is the client API for Accounts service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAccountsClient ¶
func NewAccountsClient(cc *grpc.ClientConn) AccountsClient
type AccountsHandler ¶
type AccountsHandler interface {
List(context.Context, *ListAccountsRequest, *ListAccountsResponse) error
}
Server API for Accounts service
type AccountsServer ¶
type AccountsServer interface {
List(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error)
}
AccountsServer is the server API for Accounts service.
type AccountsService ¶
type AccountsService interface {
List(ctx context.Context, in *ListAccountsRequest, opts ...client.CallOption) (*ListAccountsResponse, error)
}
Client API for Accounts service
func NewAccountsService ¶
func NewAccountsService(name string, c client.Client) AccountsService
type AuthClient ¶
type AuthClient interface { Generate(ctx context.Context, in *GenerateRequest, opts ...grpc.CallOption) (*GenerateResponse, error) Inspect(ctx context.Context, in *InspectRequest, opts ...grpc.CallOption) (*InspectResponse, error) Token(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*TokenResponse, error) }
AuthClient is the client API for Auth service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthClient ¶
func NewAuthClient(cc *grpc.ClientConn) AuthClient
type AuthHandler ¶
type AuthHandler interface { Generate(context.Context, *GenerateRequest, *GenerateResponse) error Inspect(context.Context, *InspectRequest, *InspectResponse) error Token(context.Context, *TokenRequest, *TokenResponse) error }
Server API for Auth service
type AuthServer ¶
type AuthServer interface { Generate(context.Context, *GenerateRequest) (*GenerateResponse, error) Inspect(context.Context, *InspectRequest) (*InspectResponse, error) Token(context.Context, *TokenRequest) (*TokenResponse, error) }
AuthServer is the server API for Auth service.
type AuthService ¶
type AuthService interface { Generate(ctx context.Context, in *GenerateRequest, opts ...client.CallOption) (*GenerateResponse, error) Inspect(ctx context.Context, in *InspectRequest, opts ...client.CallOption) (*InspectResponse, error) Token(ctx context.Context, in *TokenRequest, opts ...client.CallOption) (*TokenResponse, error) }
Client API for Auth service
func NewAuthService ¶
func NewAuthService(name string, c client.Client) AuthService
type CreateRequest ¶
type CreateRequest struct {
Rule *Rule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
}
func (*CreateRequest) Descriptor ¶
func (*CreateRequest) Descriptor() ([]byte, []int)
func (*CreateRequest) GetRule ¶
func (m *CreateRequest) GetRule() *Rule
func (*CreateRequest) Marshal ¶
func (m *CreateRequest) Marshal() (dAtA []byte, err error)
func (*CreateRequest) MarshalToSizedBuffer ¶
func (m *CreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) Reset ¶
func (m *CreateRequest) Reset()
func (*CreateRequest) Size ¶
func (m *CreateRequest) Size() (n int)
func (*CreateRequest) String ¶
func (m *CreateRequest) String() string
func (*CreateRequest) Unmarshal ¶
func (m *CreateRequest) Unmarshal(dAtA []byte) error
func (*CreateRequest) XXX_DiscardUnknown ¶
func (m *CreateRequest) XXX_DiscardUnknown()
func (*CreateRequest) XXX_Marshal ¶
func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateRequest) XXX_Merge ¶
func (m *CreateRequest) XXX_Merge(src proto.Message)
func (*CreateRequest) XXX_Size ¶
func (m *CreateRequest) XXX_Size() int
func (*CreateRequest) XXX_Unmarshal ¶
func (m *CreateRequest) XXX_Unmarshal(b []byte) error
type CreateResponse ¶
type CreateResponse struct { }
func (*CreateResponse) Descriptor ¶
func (*CreateResponse) Descriptor() ([]byte, []int)
func (*CreateResponse) Marshal ¶
func (m *CreateResponse) Marshal() (dAtA []byte, err error)
func (*CreateResponse) MarshalToSizedBuffer ¶
func (m *CreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) Reset ¶
func (m *CreateResponse) Reset()
func (*CreateResponse) Size ¶
func (m *CreateResponse) Size() (n int)
func (*CreateResponse) String ¶
func (m *CreateResponse) String() string
func (*CreateResponse) Unmarshal ¶
func (m *CreateResponse) Unmarshal(dAtA []byte) error
func (*CreateResponse) XXX_DiscardUnknown ¶
func (m *CreateResponse) XXX_DiscardUnknown()
func (*CreateResponse) XXX_Marshal ¶
func (m *CreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateResponse) XXX_Merge ¶
func (m *CreateResponse) XXX_Merge(src proto.Message)
func (*CreateResponse) XXX_Size ¶
func (m *CreateResponse) XXX_Size() int
func (*CreateResponse) XXX_Unmarshal ¶
func (m *CreateResponse) XXX_Unmarshal(b []byte) error
type DeleteRequest ¶
type DeleteRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (*DeleteRequest) Descriptor ¶
func (*DeleteRequest) Descriptor() ([]byte, []int)
func (*DeleteRequest) GetId ¶
func (m *DeleteRequest) GetId() string
func (*DeleteRequest) Marshal ¶
func (m *DeleteRequest) Marshal() (dAtA []byte, err error)
func (*DeleteRequest) MarshalToSizedBuffer ¶
func (m *DeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) Reset ¶
func (m *DeleteRequest) Reset()
func (*DeleteRequest) Size ¶
func (m *DeleteRequest) Size() (n int)
func (*DeleteRequest) String ¶
func (m *DeleteRequest) String() string
func (*DeleteRequest) Unmarshal ¶
func (m *DeleteRequest) Unmarshal(dAtA []byte) error
func (*DeleteRequest) XXX_DiscardUnknown ¶
func (m *DeleteRequest) XXX_DiscardUnknown()
func (*DeleteRequest) XXX_Marshal ¶
func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteRequest) XXX_Merge ¶
func (m *DeleteRequest) XXX_Merge(src proto.Message)
func (*DeleteRequest) XXX_Size ¶
func (m *DeleteRequest) XXX_Size() int
func (*DeleteRequest) XXX_Unmarshal ¶
func (m *DeleteRequest) XXX_Unmarshal(b []byte) error
type DeleteResponse ¶
type DeleteResponse struct { }
func (*DeleteResponse) Descriptor ¶
func (*DeleteResponse) Descriptor() ([]byte, []int)
func (*DeleteResponse) Marshal ¶
func (m *DeleteResponse) Marshal() (dAtA []byte, err error)
func (*DeleteResponse) MarshalToSizedBuffer ¶
func (m *DeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) Reset ¶
func (m *DeleteResponse) Reset()
func (*DeleteResponse) Size ¶
func (m *DeleteResponse) Size() (n int)
func (*DeleteResponse) String ¶
func (m *DeleteResponse) String() string
func (*DeleteResponse) Unmarshal ¶
func (m *DeleteResponse) Unmarshal(dAtA []byte) error
func (*DeleteResponse) XXX_DiscardUnknown ¶
func (m *DeleteResponse) XXX_DiscardUnknown()
func (*DeleteResponse) XXX_Marshal ¶
func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteResponse) XXX_Merge ¶
func (m *DeleteResponse) XXX_Merge(src proto.Message)
func (*DeleteResponse) XXX_Size ¶
func (m *DeleteResponse) XXX_Size() int
func (*DeleteResponse) XXX_Unmarshal ¶
func (m *DeleteResponse) XXX_Unmarshal(b []byte) error
type GenerateRequest ¶
type GenerateRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Metadata map[string]string `` /* 157-byte string literal not displayed */ Scopes []string `protobuf:"bytes,4,rep,name=scopes,proto3" json:"scopes,omitempty"` Secret string `protobuf:"bytes,5,opt,name=secret,proto3" json:"secret,omitempty"` Type string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"` Provider string `protobuf:"bytes,7,opt,name=provider,proto3" json:"provider,omitempty"` }
func (*GenerateRequest) Descriptor ¶
func (*GenerateRequest) Descriptor() ([]byte, []int)
func (*GenerateRequest) GetId ¶
func (m *GenerateRequest) GetId() string
func (*GenerateRequest) GetMetadata ¶
func (m *GenerateRequest) GetMetadata() map[string]string
func (*GenerateRequest) GetProvider ¶
func (m *GenerateRequest) GetProvider() string
func (*GenerateRequest) GetScopes ¶
func (m *GenerateRequest) GetScopes() []string
func (*GenerateRequest) GetSecret ¶
func (m *GenerateRequest) GetSecret() string
func (*GenerateRequest) GetType ¶
func (m *GenerateRequest) GetType() string
func (*GenerateRequest) Marshal ¶
func (m *GenerateRequest) Marshal() (dAtA []byte, err error)
func (*GenerateRequest) MarshalToSizedBuffer ¶
func (m *GenerateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenerateRequest) ProtoMessage ¶
func (*GenerateRequest) ProtoMessage()
func (*GenerateRequest) Reset ¶
func (m *GenerateRequest) Reset()
func (*GenerateRequest) Size ¶
func (m *GenerateRequest) Size() (n int)
func (*GenerateRequest) String ¶
func (m *GenerateRequest) String() string
func (*GenerateRequest) Unmarshal ¶
func (m *GenerateRequest) Unmarshal(dAtA []byte) error
func (*GenerateRequest) XXX_DiscardUnknown ¶
func (m *GenerateRequest) XXX_DiscardUnknown()
func (*GenerateRequest) XXX_Marshal ¶
func (m *GenerateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenerateRequest) XXX_Merge ¶
func (m *GenerateRequest) XXX_Merge(src proto.Message)
func (*GenerateRequest) XXX_Size ¶
func (m *GenerateRequest) XXX_Size() int
func (*GenerateRequest) XXX_Unmarshal ¶
func (m *GenerateRequest) XXX_Unmarshal(b []byte) error
type GenerateResponse ¶
type GenerateResponse struct {
Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
}
func (*GenerateResponse) Descriptor ¶
func (*GenerateResponse) Descriptor() ([]byte, []int)
func (*GenerateResponse) GetAccount ¶
func (m *GenerateResponse) GetAccount() *Account
func (*GenerateResponse) Marshal ¶
func (m *GenerateResponse) Marshal() (dAtA []byte, err error)
func (*GenerateResponse) MarshalToSizedBuffer ¶
func (m *GenerateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenerateResponse) ProtoMessage ¶
func (*GenerateResponse) ProtoMessage()
func (*GenerateResponse) Reset ¶
func (m *GenerateResponse) Reset()
func (*GenerateResponse) Size ¶
func (m *GenerateResponse) Size() (n int)
func (*GenerateResponse) String ¶
func (m *GenerateResponse) String() string
func (*GenerateResponse) Unmarshal ¶
func (m *GenerateResponse) Unmarshal(dAtA []byte) error
func (*GenerateResponse) XXX_DiscardUnknown ¶
func (m *GenerateResponse) XXX_DiscardUnknown()
func (*GenerateResponse) XXX_Marshal ¶
func (m *GenerateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenerateResponse) XXX_Merge ¶
func (m *GenerateResponse) XXX_Merge(src proto.Message)
func (*GenerateResponse) XXX_Size ¶
func (m *GenerateResponse) XXX_Size() int
func (*GenerateResponse) XXX_Unmarshal ¶
func (m *GenerateResponse) XXX_Unmarshal(b []byte) error
type GrantRequest ¶
type GrantRequest struct { Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"` Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` }
func (*GrantRequest) Descriptor ¶
func (*GrantRequest) Descriptor() ([]byte, []int)
func (*GrantRequest) GetResource ¶
func (m *GrantRequest) GetResource() *Resource
func (*GrantRequest) GetScope ¶
func (m *GrantRequest) GetScope() string
func (*GrantRequest) Marshal ¶
func (m *GrantRequest) Marshal() (dAtA []byte, err error)
func (*GrantRequest) MarshalToSizedBuffer ¶
func (m *GrantRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GrantRequest) ProtoMessage ¶
func (*GrantRequest) ProtoMessage()
func (*GrantRequest) Reset ¶
func (m *GrantRequest) Reset()
func (*GrantRequest) Size ¶
func (m *GrantRequest) Size() (n int)
func (*GrantRequest) String ¶
func (m *GrantRequest) String() string
func (*GrantRequest) Unmarshal ¶
func (m *GrantRequest) Unmarshal(dAtA []byte) error
func (*GrantRequest) XXX_DiscardUnknown ¶
func (m *GrantRequest) XXX_DiscardUnknown()
func (*GrantRequest) XXX_Marshal ¶
func (m *GrantRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GrantRequest) XXX_Merge ¶
func (m *GrantRequest) XXX_Merge(src proto.Message)
func (*GrantRequest) XXX_Size ¶
func (m *GrantRequest) XXX_Size() int
func (*GrantRequest) XXX_Unmarshal ¶
func (m *GrantRequest) XXX_Unmarshal(b []byte) error
type GrantResponse ¶
type GrantResponse struct { }
func (*GrantResponse) Descriptor ¶
func (*GrantResponse) Descriptor() ([]byte, []int)
func (*GrantResponse) Marshal ¶
func (m *GrantResponse) Marshal() (dAtA []byte, err error)
func (*GrantResponse) MarshalToSizedBuffer ¶
func (m *GrantResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GrantResponse) ProtoMessage ¶
func (*GrantResponse) ProtoMessage()
func (*GrantResponse) Reset ¶
func (m *GrantResponse) Reset()
func (*GrantResponse) Size ¶
func (m *GrantResponse) Size() (n int)
func (*GrantResponse) String ¶
func (m *GrantResponse) String() string
func (*GrantResponse) Unmarshal ¶
func (m *GrantResponse) Unmarshal(dAtA []byte) error
func (*GrantResponse) XXX_DiscardUnknown ¶
func (m *GrantResponse) XXX_DiscardUnknown()
func (*GrantResponse) XXX_Marshal ¶
func (m *GrantResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GrantResponse) XXX_Merge ¶
func (m *GrantResponse) XXX_Merge(src proto.Message)
func (*GrantResponse) XXX_Size ¶
func (m *GrantResponse) XXX_Size() int
func (*GrantResponse) XXX_Unmarshal ¶
func (m *GrantResponse) XXX_Unmarshal(b []byte) error
type InspectRequest ¶
type InspectRequest struct {
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
}
func (*InspectRequest) Descriptor ¶
func (*InspectRequest) Descriptor() ([]byte, []int)
func (*InspectRequest) GetToken ¶
func (m *InspectRequest) GetToken() string
func (*InspectRequest) Marshal ¶
func (m *InspectRequest) Marshal() (dAtA []byte, err error)
func (*InspectRequest) MarshalToSizedBuffer ¶
func (m *InspectRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*InspectRequest) ProtoMessage ¶
func (*InspectRequest) ProtoMessage()
func (*InspectRequest) Reset ¶
func (m *InspectRequest) Reset()
func (*InspectRequest) Size ¶
func (m *InspectRequest) Size() (n int)
func (*InspectRequest) String ¶
func (m *InspectRequest) String() string
func (*InspectRequest) Unmarshal ¶
func (m *InspectRequest) Unmarshal(dAtA []byte) error
func (*InspectRequest) XXX_DiscardUnknown ¶
func (m *InspectRequest) XXX_DiscardUnknown()
func (*InspectRequest) XXX_Marshal ¶
func (m *InspectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InspectRequest) XXX_Merge ¶
func (m *InspectRequest) XXX_Merge(src proto.Message)
func (*InspectRequest) XXX_Size ¶
func (m *InspectRequest) XXX_Size() int
func (*InspectRequest) XXX_Unmarshal ¶
func (m *InspectRequest) XXX_Unmarshal(b []byte) error
type InspectResponse ¶
type InspectResponse struct {
Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
}
func (*InspectResponse) Descriptor ¶
func (*InspectResponse) Descriptor() ([]byte, []int)
func (*InspectResponse) GetAccount ¶
func (m *InspectResponse) GetAccount() *Account
func (*InspectResponse) Marshal ¶
func (m *InspectResponse) Marshal() (dAtA []byte, err error)
func (*InspectResponse) MarshalToSizedBuffer ¶
func (m *InspectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*InspectResponse) ProtoMessage ¶
func (*InspectResponse) ProtoMessage()
func (*InspectResponse) Reset ¶
func (m *InspectResponse) Reset()
func (*InspectResponse) Size ¶
func (m *InspectResponse) Size() (n int)
func (*InspectResponse) String ¶
func (m *InspectResponse) String() string
func (*InspectResponse) Unmarshal ¶
func (m *InspectResponse) Unmarshal(dAtA []byte) error
func (*InspectResponse) XXX_DiscardUnknown ¶
func (m *InspectResponse) XXX_DiscardUnknown()
func (*InspectResponse) XXX_Marshal ¶
func (m *InspectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InspectResponse) XXX_Merge ¶
func (m *InspectResponse) XXX_Merge(src proto.Message)
func (*InspectResponse) XXX_Size ¶
func (m *InspectResponse) XXX_Size() int
func (*InspectResponse) XXX_Unmarshal ¶
func (m *InspectResponse) XXX_Unmarshal(b []byte) error
type ListAccountsRequest ¶
type ListAccountsRequest struct { }
func (*ListAccountsRequest) Descriptor ¶
func (*ListAccountsRequest) Descriptor() ([]byte, []int)
func (*ListAccountsRequest) Marshal ¶
func (m *ListAccountsRequest) Marshal() (dAtA []byte, err error)
func (*ListAccountsRequest) MarshalTo ¶
func (m *ListAccountsRequest) MarshalTo(dAtA []byte) (int, error)
func (*ListAccountsRequest) MarshalToSizedBuffer ¶
func (m *ListAccountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListAccountsRequest) ProtoMessage ¶
func (*ListAccountsRequest) ProtoMessage()
func (*ListAccountsRequest) Reset ¶
func (m *ListAccountsRequest) Reset()
func (*ListAccountsRequest) Size ¶
func (m *ListAccountsRequest) Size() (n int)
func (*ListAccountsRequest) String ¶
func (m *ListAccountsRequest) String() string
func (*ListAccountsRequest) Unmarshal ¶
func (m *ListAccountsRequest) Unmarshal(dAtA []byte) error
func (*ListAccountsRequest) XXX_DiscardUnknown ¶
func (m *ListAccountsRequest) XXX_DiscardUnknown()
func (*ListAccountsRequest) XXX_Marshal ¶
func (m *ListAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListAccountsRequest) XXX_Merge ¶
func (m *ListAccountsRequest) XXX_Merge(src proto.Message)
func (*ListAccountsRequest) XXX_Size ¶
func (m *ListAccountsRequest) XXX_Size() int
func (*ListAccountsRequest) XXX_Unmarshal ¶
func (m *ListAccountsRequest) XXX_Unmarshal(b []byte) error
type ListAccountsResponse ¶
type ListAccountsResponse struct {
Accounts []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
}
func (*ListAccountsResponse) Descriptor ¶
func (*ListAccountsResponse) Descriptor() ([]byte, []int)
func (*ListAccountsResponse) GetAccounts ¶
func (m *ListAccountsResponse) GetAccounts() []*Account
func (*ListAccountsResponse) Marshal ¶
func (m *ListAccountsResponse) Marshal() (dAtA []byte, err error)
func (*ListAccountsResponse) MarshalTo ¶
func (m *ListAccountsResponse) MarshalTo(dAtA []byte) (int, error)
func (*ListAccountsResponse) MarshalToSizedBuffer ¶
func (m *ListAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListAccountsResponse) ProtoMessage ¶
func (*ListAccountsResponse) ProtoMessage()
func (*ListAccountsResponse) Reset ¶
func (m *ListAccountsResponse) Reset()
func (*ListAccountsResponse) Size ¶
func (m *ListAccountsResponse) Size() (n int)
func (*ListAccountsResponse) String ¶
func (m *ListAccountsResponse) String() string
func (*ListAccountsResponse) Unmarshal ¶
func (m *ListAccountsResponse) Unmarshal(dAtA []byte) error
func (*ListAccountsResponse) XXX_DiscardUnknown ¶
func (m *ListAccountsResponse) XXX_DiscardUnknown()
func (*ListAccountsResponse) XXX_Marshal ¶
func (m *ListAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListAccountsResponse) XXX_Merge ¶
func (m *ListAccountsResponse) XXX_Merge(src proto.Message)
func (*ListAccountsResponse) XXX_Size ¶
func (m *ListAccountsResponse) XXX_Size() int
func (*ListAccountsResponse) XXX_Unmarshal ¶
func (m *ListAccountsResponse) XXX_Unmarshal(b []byte) error
type ListRequest ¶
type ListRequest struct { }
func (*ListRequest) Descriptor ¶
func (*ListRequest) Descriptor() ([]byte, []int)
func (*ListRequest) Marshal ¶
func (m *ListRequest) Marshal() (dAtA []byte, err error)
func (*ListRequest) MarshalToSizedBuffer ¶
func (m *ListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) Reset ¶
func (m *ListRequest) Reset()
func (*ListRequest) Size ¶
func (m *ListRequest) Size() (n int)
func (*ListRequest) String ¶
func (m *ListRequest) String() string
func (*ListRequest) Unmarshal ¶
func (m *ListRequest) Unmarshal(dAtA []byte) error
func (*ListRequest) XXX_DiscardUnknown ¶
func (m *ListRequest) XXX_DiscardUnknown()
func (*ListRequest) XXX_Marshal ¶
func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListRequest) XXX_Merge ¶
func (m *ListRequest) XXX_Merge(src proto.Message)
func (*ListRequest) XXX_Size ¶
func (m *ListRequest) XXX_Size() int
func (*ListRequest) XXX_Unmarshal ¶
func (m *ListRequest) XXX_Unmarshal(b []byte) error
type ListResponse ¶
type ListResponse struct {
Rules []*Rule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
}
func (*ListResponse) Descriptor ¶
func (*ListResponse) Descriptor() ([]byte, []int)
func (*ListResponse) GetRules ¶
func (m *ListResponse) GetRules() []*Rule
func (*ListResponse) Marshal ¶
func (m *ListResponse) Marshal() (dAtA []byte, err error)
func (*ListResponse) MarshalToSizedBuffer ¶
func (m *ListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) Reset ¶
func (m *ListResponse) Reset()
func (*ListResponse) Size ¶
func (m *ListResponse) Size() (n int)
func (*ListResponse) String ¶
func (m *ListResponse) String() string
func (*ListResponse) Unmarshal ¶
func (m *ListResponse) Unmarshal(dAtA []byte) error
func (*ListResponse) XXX_DiscardUnknown ¶
func (m *ListResponse) XXX_DiscardUnknown()
func (*ListResponse) XXX_Marshal ¶
func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListResponse) XXX_Merge ¶
func (m *ListResponse) XXX_Merge(src proto.Message)
func (*ListResponse) XXX_Size ¶
func (m *ListResponse) XXX_Size() int
func (*ListResponse) XXX_Unmarshal ¶
func (m *ListResponse) XXX_Unmarshal(b []byte) error
type Resource ¶
type Resource struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"` }
func (*Resource) Descriptor ¶
func (*Resource) GetEndpoint ¶
func (*Resource) MarshalToSizedBuffer ¶
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) XXX_DiscardUnknown ¶
func (m *Resource) XXX_DiscardUnknown()
func (*Resource) XXX_Marshal ¶
func (*Resource) XXX_Unmarshal ¶
type RevokeRequest ¶
type RevokeRequest struct { Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"` Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` }
func (*RevokeRequest) Descriptor ¶
func (*RevokeRequest) Descriptor() ([]byte, []int)
func (*RevokeRequest) GetResource ¶
func (m *RevokeRequest) GetResource() *Resource
func (*RevokeRequest) GetScope ¶
func (m *RevokeRequest) GetScope() string
func (*RevokeRequest) Marshal ¶
func (m *RevokeRequest) Marshal() (dAtA []byte, err error)
func (*RevokeRequest) MarshalToSizedBuffer ¶
func (m *RevokeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RevokeRequest) ProtoMessage ¶
func (*RevokeRequest) ProtoMessage()
func (*RevokeRequest) Reset ¶
func (m *RevokeRequest) Reset()
func (*RevokeRequest) Size ¶
func (m *RevokeRequest) Size() (n int)
func (*RevokeRequest) String ¶
func (m *RevokeRequest) String() string
func (*RevokeRequest) Unmarshal ¶
func (m *RevokeRequest) Unmarshal(dAtA []byte) error
func (*RevokeRequest) XXX_DiscardUnknown ¶
func (m *RevokeRequest) XXX_DiscardUnknown()
func (*RevokeRequest) XXX_Marshal ¶
func (m *RevokeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RevokeRequest) XXX_Merge ¶
func (m *RevokeRequest) XXX_Merge(src proto.Message)
func (*RevokeRequest) XXX_Size ¶
func (m *RevokeRequest) XXX_Size() int
func (*RevokeRequest) XXX_Unmarshal ¶
func (m *RevokeRequest) XXX_Unmarshal(b []byte) error
type RevokeResponse ¶
type RevokeResponse struct { }
func (*RevokeResponse) Descriptor ¶
func (*RevokeResponse) Descriptor() ([]byte, []int)
func (*RevokeResponse) Marshal ¶
func (m *RevokeResponse) Marshal() (dAtA []byte, err error)
func (*RevokeResponse) MarshalToSizedBuffer ¶
func (m *RevokeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RevokeResponse) ProtoMessage ¶
func (*RevokeResponse) ProtoMessage()
func (*RevokeResponse) Reset ¶
func (m *RevokeResponse) Reset()
func (*RevokeResponse) Size ¶
func (m *RevokeResponse) Size() (n int)
func (*RevokeResponse) String ¶
func (m *RevokeResponse) String() string
func (*RevokeResponse) Unmarshal ¶
func (m *RevokeResponse) Unmarshal(dAtA []byte) error
func (*RevokeResponse) XXX_DiscardUnknown ¶
func (m *RevokeResponse) XXX_DiscardUnknown()
func (*RevokeResponse) XXX_Marshal ¶
func (m *RevokeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RevokeResponse) XXX_Merge ¶
func (m *RevokeResponse) XXX_Merge(src proto.Message)
func (*RevokeResponse) XXX_Size ¶
func (m *RevokeResponse) XXX_Size() int
func (*RevokeResponse) XXX_Unmarshal ¶
func (m *RevokeResponse) XXX_Unmarshal(b []byte) error
type Rule ¶
type Rule struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Scope string `protobuf:"bytes,2,opt,name=scope,proto3" json:"scope,omitempty"` Resource *Resource `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"` Access Access `protobuf:"varint,4,opt,name=access,proto3,enum=auth.Access" json:"access,omitempty"` Priority int32 `protobuf:"varint,5,opt,name=priority,proto3" json:"priority,omitempty"` }
func (*Rule) Descriptor ¶
func (*Rule) GetPriority ¶
func (*Rule) GetResource ¶
func (*Rule) ProtoMessage ¶
func (*Rule) ProtoMessage()
func (*Rule) XXX_DiscardUnknown ¶
func (m *Rule) XXX_DiscardUnknown()
func (*Rule) XXX_Unmarshal ¶
type RulesClient ¶
type RulesClient interface { Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) }
RulesClient is the client API for Rules service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRulesClient ¶
func NewRulesClient(cc *grpc.ClientConn) RulesClient
type RulesHandler ¶
type RulesHandler interface { Create(context.Context, *CreateRequest, *CreateResponse) error Delete(context.Context, *DeleteRequest, *DeleteResponse) error List(context.Context, *ListRequest, *ListResponse) error }
Server API for Rules service
type RulesServer ¶
type RulesServer interface { Create(context.Context, *CreateRequest) (*CreateResponse, error) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) List(context.Context, *ListRequest) (*ListResponse, error) }
RulesServer is the server API for Rules service.
type RulesService ¶
type RulesService interface { Create(ctx context.Context, in *CreateRequest, opts ...client.CallOption) (*CreateResponse, error) Delete(ctx context.Context, in *DeleteRequest, opts ...client.CallOption) (*DeleteResponse, error) List(ctx context.Context, in *ListRequest, opts ...client.CallOption) (*ListResponse, error) }
Client API for Rules service
func NewRulesService ¶
func NewRulesService(name string, c client.Client) RulesService
type Token ¶
type Token struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` Created int64 `protobuf:"varint,3,opt,name=created,proto3" json:"created,omitempty"` Expiry int64 `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"` }
func (*Token) Descriptor ¶
func (*Token) GetAccessToken ¶
func (*Token) GetCreated ¶
func (*Token) GetRefreshToken ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) XXX_DiscardUnknown ¶
func (m *Token) XXX_DiscardUnknown()
func (*Token) XXX_Marshal ¶
func (*Token) XXX_Unmarshal ¶
type TokenRequest ¶
type TokenRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Secret string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"` RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` TokenExpiry int64 `protobuf:"varint,4,opt,name=token_expiry,json=tokenExpiry,proto3" json:"token_expiry,omitempty"` }
func (*TokenRequest) Descriptor ¶
func (*TokenRequest) Descriptor() ([]byte, []int)
func (*TokenRequest) GetId ¶
func (m *TokenRequest) GetId() string
func (*TokenRequest) GetRefreshToken ¶
func (m *TokenRequest) GetRefreshToken() string
func (*TokenRequest) GetSecret ¶
func (m *TokenRequest) GetSecret() string
func (*TokenRequest) GetTokenExpiry ¶
func (m *TokenRequest) GetTokenExpiry() int64
func (*TokenRequest) Marshal ¶
func (m *TokenRequest) Marshal() (dAtA []byte, err error)
func (*TokenRequest) MarshalToSizedBuffer ¶
func (m *TokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TokenRequest) ProtoMessage ¶
func (*TokenRequest) ProtoMessage()
func (*TokenRequest) Reset ¶
func (m *TokenRequest) Reset()
func (*TokenRequest) Size ¶
func (m *TokenRequest) Size() (n int)
func (*TokenRequest) String ¶
func (m *TokenRequest) String() string
func (*TokenRequest) Unmarshal ¶
func (m *TokenRequest) Unmarshal(dAtA []byte) error
func (*TokenRequest) XXX_DiscardUnknown ¶
func (m *TokenRequest) XXX_DiscardUnknown()
func (*TokenRequest) XXX_Marshal ¶
func (m *TokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TokenRequest) XXX_Merge ¶
func (m *TokenRequest) XXX_Merge(src proto.Message)
func (*TokenRequest) XXX_Size ¶
func (m *TokenRequest) XXX_Size() int
func (*TokenRequest) XXX_Unmarshal ¶
func (m *TokenRequest) XXX_Unmarshal(b []byte) error
type TokenResponse ¶
type TokenResponse struct {
Token *Token `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
}
func (*TokenResponse) Descriptor ¶
func (*TokenResponse) Descriptor() ([]byte, []int)
func (*TokenResponse) GetToken ¶
func (m *TokenResponse) GetToken() *Token
func (*TokenResponse) Marshal ¶
func (m *TokenResponse) Marshal() (dAtA []byte, err error)
func (*TokenResponse) MarshalToSizedBuffer ¶
func (m *TokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TokenResponse) ProtoMessage ¶
func (*TokenResponse) ProtoMessage()
func (*TokenResponse) Reset ¶
func (m *TokenResponse) Reset()
func (*TokenResponse) Size ¶
func (m *TokenResponse) Size() (n int)
func (*TokenResponse) String ¶
func (m *TokenResponse) String() string
func (*TokenResponse) Unmarshal ¶
func (m *TokenResponse) Unmarshal(dAtA []byte) error
func (*TokenResponse) XXX_DiscardUnknown ¶
func (m *TokenResponse) XXX_DiscardUnknown()
func (*TokenResponse) XXX_Marshal ¶
func (m *TokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TokenResponse) XXX_Merge ¶
func (m *TokenResponse) XXX_Merge(src proto.Message)
func (*TokenResponse) XXX_Size ¶
func (m *TokenResponse) XXX_Size() int
func (*TokenResponse) XXX_Unmarshal ¶
func (m *TokenResponse) XXX_Unmarshal(b []byte) error
type UnimplementedAccountsServer ¶
type UnimplementedAccountsServer struct { }
UnimplementedAccountsServer can be embedded to have forward compatible implementations.
func (*UnimplementedAccountsServer) List ¶
func (*UnimplementedAccountsServer) List(ctx context.Context, req *ListAccountsRequest) (*ListAccountsResponse, error)
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct { }
UnimplementedAuthServer can be embedded to have forward compatible implementations.
func (*UnimplementedAuthServer) Generate ¶
func (*UnimplementedAuthServer) Generate(ctx context.Context, req *GenerateRequest) (*GenerateResponse, error)
func (*UnimplementedAuthServer) Inspect ¶
func (*UnimplementedAuthServer) Inspect(ctx context.Context, req *InspectRequest) (*InspectResponse, error)
func (*UnimplementedAuthServer) Token ¶
func (*UnimplementedAuthServer) Token(ctx context.Context, req *TokenRequest) (*TokenResponse, error)
type UnimplementedRulesServer ¶
type UnimplementedRulesServer struct { }
UnimplementedRulesServer can be embedded to have forward compatible implementations.
func (*UnimplementedRulesServer) Create ¶
func (*UnimplementedRulesServer) Create(ctx context.Context, req *CreateRequest) (*CreateResponse, error)
func (*UnimplementedRulesServer) Delete ¶
func (*UnimplementedRulesServer) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error)
func (*UnimplementedRulesServer) List ¶
func (*UnimplementedRulesServer) List(ctx context.Context, req *ListRequest) (*ListResponse, error)