Versions in this module Expand all Collapse all v2 v2.1.2 Apr 12, 2023 Changes in this version + var Access_name = map[int32]string + var Access_value = map[string]int32 + 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 int32 + const Access_DENIED + const Access_GRANTED + const Access_UNKNOWN + func (Access) EnumDescriptor() ([]byte, []int) + func (x Access) String() string + type Account struct + Id string + Issuer string + Metadata map[string]string + Scopes []string + Secret string + Type string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Account) Descriptor() ([]byte, []int) + func (*Account) ProtoMessage() + 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) Reset() + func (m *Account) String() string + 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 interface + List func(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error) + func NewAccountsClient(cc *grpc.ClientConn) AccountsClient + type AccountsHandler interface + List func(context.Context, *ListAccountsRequest, *ListAccountsResponse) error + type AccountsServer interface + List func(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error) + type AccountsService interface + List func(ctx context.Context, in *ListAccountsRequest, opts ...client.CallOption) (*ListAccountsResponse, error) + func NewAccountsService(name string, c client.Client) AccountsService + type AuthClient interface + Generate func(ctx context.Context, in *GenerateRequest, opts ...grpc.CallOption) (*GenerateResponse, error) + Inspect func(ctx context.Context, in *InspectRequest, opts ...grpc.CallOption) (*InspectResponse, error) + Token func(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*TokenResponse, error) + func NewAuthClient(cc *grpc.ClientConn) AuthClient + type AuthHandler interface + Generate func(context.Context, *GenerateRequest, *GenerateResponse) error + Inspect func(context.Context, *InspectRequest, *InspectResponse) error + Token func(context.Context, *TokenRequest, *TokenResponse) error + type AuthServer interface + Generate func(context.Context, *GenerateRequest) (*GenerateResponse, error) + Inspect func(context.Context, *InspectRequest) (*InspectResponse, error) + Token func(context.Context, *TokenRequest) (*TokenResponse, error) + type AuthService interface + Generate func(ctx context.Context, in *GenerateRequest, opts ...client.CallOption) (*GenerateResponse, error) + Inspect func(ctx context.Context, in *InspectRequest, opts ...client.CallOption) (*InspectResponse, error) + Token func(ctx context.Context, in *TokenRequest, opts ...client.CallOption) (*TokenResponse, error) + func NewAuthService(name string, c client.Client) AuthService + type CreateRequest struct + Rule *Rule + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*CreateRequest) Descriptor() ([]byte, []int) + func (*CreateRequest) ProtoMessage() + func (m *CreateRequest) GetRule() *Rule + func (m *CreateRequest) Reset() + func (m *CreateRequest) String() string + 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 struct + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*CreateResponse) Descriptor() ([]byte, []int) + func (*CreateResponse) ProtoMessage() + func (m *CreateResponse) Reset() + func (m *CreateResponse) String() string + 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 struct + Id string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*DeleteRequest) Descriptor() ([]byte, []int) + func (*DeleteRequest) ProtoMessage() + func (m *DeleteRequest) GetId() string + func (m *DeleteRequest) Reset() + func (m *DeleteRequest) String() string + 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 struct + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*DeleteResponse) Descriptor() ([]byte, []int) + func (*DeleteResponse) ProtoMessage() + func (m *DeleteResponse) Reset() + func (m *DeleteResponse) String() string + 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 struct + Id string + Metadata map[string]string + Provider string + Scopes []string + Secret string + Type string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*GenerateRequest) Descriptor() ([]byte, []int) + func (*GenerateRequest) ProtoMessage() + 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) Reset() + func (m *GenerateRequest) String() string + 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 struct + Account *Account + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*GenerateResponse) Descriptor() ([]byte, []int) + func (*GenerateResponse) ProtoMessage() + func (m *GenerateResponse) GetAccount() *Account + func (m *GenerateResponse) Reset() + func (m *GenerateResponse) String() string + 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 struct + Resource *Resource + Scope string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*GrantRequest) Descriptor() ([]byte, []int) + func (*GrantRequest) ProtoMessage() + func (m *GrantRequest) GetResource() *Resource + func (m *GrantRequest) GetScope() string + func (m *GrantRequest) Reset() + func (m *GrantRequest) String() string + 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 struct + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*GrantResponse) Descriptor() ([]byte, []int) + func (*GrantResponse) ProtoMessage() + func (m *GrantResponse) Reset() + func (m *GrantResponse) String() string + 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 struct + Token string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*InspectRequest) Descriptor() ([]byte, []int) + func (*InspectRequest) ProtoMessage() + func (m *InspectRequest) GetToken() string + func (m *InspectRequest) Reset() + func (m *InspectRequest) String() string + 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 struct + Account *Account + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*InspectResponse) Descriptor() ([]byte, []int) + func (*InspectResponse) ProtoMessage() + func (m *InspectResponse) GetAccount() *Account + func (m *InspectResponse) Reset() + func (m *InspectResponse) String() string + 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 struct + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ListAccountsRequest) Descriptor() ([]byte, []int) + func (*ListAccountsRequest) ProtoMessage() + func (m *ListAccountsRequest) Reset() + func (m *ListAccountsRequest) String() string + 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 struct + Accounts []*Account + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ListAccountsResponse) Descriptor() ([]byte, []int) + func (*ListAccountsResponse) ProtoMessage() + func (m *ListAccountsResponse) GetAccounts() []*Account + func (m *ListAccountsResponse) Reset() + func (m *ListAccountsResponse) String() string + 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 struct + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ListRequest) Descriptor() ([]byte, []int) + func (*ListRequest) ProtoMessage() + func (m *ListRequest) Reset() + func (m *ListRequest) String() string + 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 struct + Rules []*Rule + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ListResponse) Descriptor() ([]byte, []int) + func (*ListResponse) ProtoMessage() + func (m *ListResponse) GetRules() []*Rule + func (m *ListResponse) Reset() + func (m *ListResponse) String() string + 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 struct + Endpoint string + Name string + Type string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Resource) Descriptor() ([]byte, []int) + func (*Resource) ProtoMessage() + func (m *Resource) GetEndpoint() string + func (m *Resource) GetName() string + func (m *Resource) GetType() string + func (m *Resource) Reset() + func (m *Resource) String() string + 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 struct + Resource *Resource + Scope string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*RevokeRequest) Descriptor() ([]byte, []int) + func (*RevokeRequest) ProtoMessage() + func (m *RevokeRequest) GetResource() *Resource + func (m *RevokeRequest) GetScope() string + func (m *RevokeRequest) Reset() + func (m *RevokeRequest) String() string + 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 struct + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*RevokeResponse) Descriptor() ([]byte, []int) + func (*RevokeResponse) ProtoMessage() + func (m *RevokeResponse) Reset() + func (m *RevokeResponse) String() string + 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 struct + Access Access + Id string + Priority int32 + Resource *Resource + Scope string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Rule) Descriptor() ([]byte, []int) + func (*Rule) ProtoMessage() + 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) Reset() + func (m *Rule) String() string + 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 interface + Create func(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) + Delete func(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) + List func(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) + func NewRulesClient(cc *grpc.ClientConn) RulesClient + type RulesHandler interface + Create func(context.Context, *CreateRequest, *CreateResponse) error + Delete func(context.Context, *DeleteRequest, *DeleteResponse) error + List func(context.Context, *ListRequest, *ListResponse) error + type RulesServer interface + Create func(context.Context, *CreateRequest) (*CreateResponse, error) + Delete func(context.Context, *DeleteRequest) (*DeleteResponse, error) + List func(context.Context, *ListRequest) (*ListResponse, error) + type RulesService interface + Create func(ctx context.Context, in *CreateRequest, opts ...client.CallOption) (*CreateResponse, error) + Delete func(ctx context.Context, in *DeleteRequest, opts ...client.CallOption) (*DeleteResponse, error) + List func(ctx context.Context, in *ListRequest, opts ...client.CallOption) (*ListResponse, error) + func NewRulesService(name string, c client.Client) RulesService + type Token struct + AccessToken string + Created int64 + Expiry int64 + RefreshToken string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Token) Descriptor() ([]byte, []int) + func (*Token) ProtoMessage() + func (m *Token) GetAccessToken() string + func (m *Token) GetCreated() int64 + func (m *Token) GetExpiry() int64 + func (m *Token) GetRefreshToken() string + func (m *Token) Reset() + func (m *Token) String() string + 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 struct + Id string + RefreshToken string + Secret string + TokenExpiry int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*TokenRequest) Descriptor() ([]byte, []int) + func (*TokenRequest) ProtoMessage() + func (m *TokenRequest) GetId() string + func (m *TokenRequest) GetRefreshToken() string + func (m *TokenRequest) GetSecret() string + func (m *TokenRequest) GetTokenExpiry() int64 + func (m *TokenRequest) Reset() + func (m *TokenRequest) String() string + 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 struct + Token *Token + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*TokenResponse) Descriptor() ([]byte, []int) + func (*TokenResponse) ProtoMessage() + func (m *TokenResponse) GetToken() *Token + func (m *TokenResponse) Reset() + func (m *TokenResponse) String() string + 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 struct + func (*UnimplementedAccountsServer) List(ctx context.Context, req *ListAccountsRequest) (*ListAccountsResponse, error) + type UnimplementedAuthServer struct + 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 struct + 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)