Versions in this module Expand all Collapse all v0 v0.14.0 Jan 29, 2024 Changes in this version + const AuthService_AddPolicies_FullMethodName + const AuthService_AddPolicy_FullMethodName + const AuthService_Authorize_FullMethodName + const AuthService_CountObjects_FullMethodName + const AuthService_CountSubjects_FullMethodName + const AuthService_DeletePolicies_FullMethodName + const AuthService_DeletePolicy_FullMethodName + const AuthService_Identify_FullMethodName + const AuthService_Issue_FullMethodName + const AuthService_ListAllObjects_FullMethodName + const AuthService_ListAllSubjects_FullMethodName + const AuthService_ListObjects_FullMethodName + const AuthService_ListPermissions_FullMethodName + const AuthService_ListSubjects_FullMethodName + const AuthService_Refresh_FullMethodName + const AuthzService_Authorize_FullMethodName + var AuthService_ServiceDesc = grpc.ServiceDesc + var AuthzService_ServiceDesc = grpc.ServiceDesc + var BuildTime = "1970-01-01_00:00:00" + var Commit = "ffffffff" + var File_auth_proto protoreflect.FileDescriptor + var Version = "0.0.0" + func Health(service, instanceID string) http.HandlerFunc + func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer) + func RegisterAuthzServiceServer(s grpc.ServiceRegistrar, srv AuthzServiceServer) + type AddPoliciesReq struct + AddPoliciesReq []*AddPolicyReq + func (*AddPoliciesReq) Descriptor() ([]byte, []int) + func (*AddPoliciesReq) ProtoMessage() + func (x *AddPoliciesReq) GetAddPoliciesReq() []*AddPolicyReq + func (x *AddPoliciesReq) ProtoReflect() protoreflect.Message + func (x *AddPoliciesReq) Reset() + func (x *AddPoliciesReq) String() string + type AddPoliciesRes struct + Added bool + func (*AddPoliciesRes) Descriptor() ([]byte, []int) + func (*AddPoliciesRes) ProtoMessage() + func (x *AddPoliciesRes) GetAdded() bool + func (x *AddPoliciesRes) ProtoReflect() protoreflect.Message + func (x *AddPoliciesRes) Reset() + func (x *AddPoliciesRes) String() string + type AddPolicyReq struct + Domain string + Object string + ObjectKind string + ObjectType string + Permission string + Relation string + Subject string + SubjectKind string + SubjectRelation string + SubjectType string + func (*AddPolicyReq) Descriptor() ([]byte, []int) + func (*AddPolicyReq) ProtoMessage() + func (x *AddPolicyReq) GetDomain() string + func (x *AddPolicyReq) GetObject() string + func (x *AddPolicyReq) GetObjectKind() string + func (x *AddPolicyReq) GetObjectType() string + func (x *AddPolicyReq) GetPermission() string + func (x *AddPolicyReq) GetRelation() string + func (x *AddPolicyReq) GetSubject() string + func (x *AddPolicyReq) GetSubjectKind() string + func (x *AddPolicyReq) GetSubjectRelation() string + func (x *AddPolicyReq) GetSubjectType() string + func (x *AddPolicyReq) ProtoReflect() protoreflect.Message + func (x *AddPolicyReq) Reset() + func (x *AddPolicyReq) String() string + type AddPolicyRes struct + Added bool + func (*AddPolicyRes) Descriptor() ([]byte, []int) + func (*AddPolicyRes) ProtoMessage() + func (x *AddPolicyRes) GetAdded() bool + func (x *AddPolicyRes) ProtoReflect() protoreflect.Message + func (x *AddPolicyRes) Reset() + func (x *AddPolicyRes) String() string + type AuthServiceClient interface + AddPolicies func(ctx context.Context, in *AddPoliciesReq, opts ...grpc.CallOption) (*AddPoliciesRes, error) + AddPolicy func(ctx context.Context, in *AddPolicyReq, opts ...grpc.CallOption) (*AddPolicyRes, error) + Authorize func(ctx context.Context, in *AuthorizeReq, opts ...grpc.CallOption) (*AuthorizeRes, error) + CountObjects func(ctx context.Context, in *CountObjectsReq, opts ...grpc.CallOption) (*CountObjectsRes, error) + CountSubjects func(ctx context.Context, in *CountSubjectsReq, opts ...grpc.CallOption) (*CountSubjectsRes, error) + DeletePolicies func(ctx context.Context, in *DeletePoliciesReq, opts ...grpc.CallOption) (*DeletePoliciesRes, error) + DeletePolicy func(ctx context.Context, in *DeletePolicyReq, opts ...grpc.CallOption) (*DeletePolicyRes, error) + Identify func(ctx context.Context, in *IdentityReq, opts ...grpc.CallOption) (*IdentityRes, error) + Issue func(ctx context.Context, in *IssueReq, opts ...grpc.CallOption) (*Token, error) + ListAllObjects func(ctx context.Context, in *ListObjectsReq, opts ...grpc.CallOption) (*ListObjectsRes, error) + ListAllSubjects func(ctx context.Context, in *ListSubjectsReq, opts ...grpc.CallOption) (*ListSubjectsRes, error) + ListObjects func(ctx context.Context, in *ListObjectsReq, opts ...grpc.CallOption) (*ListObjectsRes, error) + ListPermissions func(ctx context.Context, in *ListPermissionsReq, opts ...grpc.CallOption) (*ListPermissionsRes, error) + ListSubjects func(ctx context.Context, in *ListSubjectsReq, opts ...grpc.CallOption) (*ListSubjectsRes, error) + Refresh func(ctx context.Context, in *RefreshReq, opts ...grpc.CallOption) (*Token, error) + func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient + type AuthServiceServer interface + AddPolicies func(context.Context, *AddPoliciesReq) (*AddPoliciesRes, error) + AddPolicy func(context.Context, *AddPolicyReq) (*AddPolicyRes, error) + Authorize func(context.Context, *AuthorizeReq) (*AuthorizeRes, error) + CountObjects func(context.Context, *CountObjectsReq) (*CountObjectsRes, error) + CountSubjects func(context.Context, *CountSubjectsReq) (*CountSubjectsRes, error) + DeletePolicies func(context.Context, *DeletePoliciesReq) (*DeletePoliciesRes, error) + DeletePolicy func(context.Context, *DeletePolicyReq) (*DeletePolicyRes, error) + Identify func(context.Context, *IdentityReq) (*IdentityRes, error) + Issue func(context.Context, *IssueReq) (*Token, error) + ListAllObjects func(context.Context, *ListObjectsReq) (*ListObjectsRes, error) + ListAllSubjects func(context.Context, *ListSubjectsReq) (*ListSubjectsRes, error) + ListObjects func(context.Context, *ListObjectsReq) (*ListObjectsRes, error) + ListPermissions func(context.Context, *ListPermissionsReq) (*ListPermissionsRes, error) + ListSubjects func(context.Context, *ListSubjectsReq) (*ListSubjectsRes, error) + Refresh func(context.Context, *RefreshReq) (*Token, error) + type AuthorizeReq struct + Domain string + Object string + ObjectType string + Permission string + Relation string + Subject string + SubjectKind string + SubjectRelation string + SubjectType string + func (*AuthorizeReq) Descriptor() ([]byte, []int) + func (*AuthorizeReq) ProtoMessage() + func (x *AuthorizeReq) GetDomain() string + func (x *AuthorizeReq) GetObject() string + func (x *AuthorizeReq) GetObjectType() string + func (x *AuthorizeReq) GetPermission() string + func (x *AuthorizeReq) GetRelation() string + func (x *AuthorizeReq) GetSubject() string + func (x *AuthorizeReq) GetSubjectKind() string + func (x *AuthorizeReq) GetSubjectRelation() string + func (x *AuthorizeReq) GetSubjectType() string + func (x *AuthorizeReq) ProtoReflect() protoreflect.Message + func (x *AuthorizeReq) Reset() + func (x *AuthorizeReq) String() string + type AuthorizeRes struct + Authorized bool + Id string + func (*AuthorizeRes) Descriptor() ([]byte, []int) + func (*AuthorizeRes) ProtoMessage() + func (x *AuthorizeRes) GetAuthorized() bool + func (x *AuthorizeRes) GetId() string + func (x *AuthorizeRes) ProtoReflect() protoreflect.Message + func (x *AuthorizeRes) Reset() + func (x *AuthorizeRes) String() string + type AuthzServiceClient interface + Authorize func(ctx context.Context, in *AuthorizeReq, opts ...grpc.CallOption) (*AuthorizeRes, error) + func NewAuthzServiceClient(cc grpc.ClientConnInterface) AuthzServiceClient + type AuthzServiceServer interface + Authorize func(context.Context, *AuthorizeReq) (*AuthorizeRes, error) + type CountObjectsReq struct + Domain string + NextPageToken string + Object string + ObjectType string + Permission string + Relation string + Subject string + SubjectRelation string + SubjectType string + func (*CountObjectsReq) Descriptor() ([]byte, []int) + func (*CountObjectsReq) ProtoMessage() + func (x *CountObjectsReq) GetDomain() string + func (x *CountObjectsReq) GetNextPageToken() string + func (x *CountObjectsReq) GetObject() string + func (x *CountObjectsReq) GetObjectType() string + func (x *CountObjectsReq) GetPermission() string + func (x *CountObjectsReq) GetRelation() string + func (x *CountObjectsReq) GetSubject() string + func (x *CountObjectsReq) GetSubjectRelation() string + func (x *CountObjectsReq) GetSubjectType() string + func (x *CountObjectsReq) ProtoReflect() protoreflect.Message + func (x *CountObjectsReq) Reset() + func (x *CountObjectsReq) String() string + type CountObjectsRes struct + Count int64 + func (*CountObjectsRes) Descriptor() ([]byte, []int) + func (*CountObjectsRes) ProtoMessage() + func (x *CountObjectsRes) GetCount() int64 + func (x *CountObjectsRes) ProtoReflect() protoreflect.Message + func (x *CountObjectsRes) Reset() + func (x *CountObjectsRes) String() string + type CountSubjectsReq struct + Domain string + NextPageToken string + Object string + ObjectType string + Permission string + Relation string + Subject string + SubjectRelation string + SubjectType string + func (*CountSubjectsReq) Descriptor() ([]byte, []int) + func (*CountSubjectsReq) ProtoMessage() + func (x *CountSubjectsReq) GetDomain() string + func (x *CountSubjectsReq) GetNextPageToken() string + func (x *CountSubjectsReq) GetObject() string + func (x *CountSubjectsReq) GetObjectType() string + func (x *CountSubjectsReq) GetPermission() string + func (x *CountSubjectsReq) GetRelation() string + func (x *CountSubjectsReq) GetSubject() string + func (x *CountSubjectsReq) GetSubjectRelation() string + func (x *CountSubjectsReq) GetSubjectType() string + func (x *CountSubjectsReq) ProtoReflect() protoreflect.Message + func (x *CountSubjectsReq) Reset() + func (x *CountSubjectsReq) String() string + type CountSubjectsRes struct + Count int64 + func (*CountSubjectsRes) Descriptor() ([]byte, []int) + func (*CountSubjectsRes) ProtoMessage() + func (x *CountSubjectsRes) GetCount() int64 + func (x *CountSubjectsRes) ProtoReflect() protoreflect.Message + func (x *CountSubjectsRes) Reset() + func (x *CountSubjectsRes) String() string + type DeletePoliciesReq struct + DeletePoliciesReq []*DeletePolicyReq + func (*DeletePoliciesReq) Descriptor() ([]byte, []int) + func (*DeletePoliciesReq) ProtoMessage() + func (x *DeletePoliciesReq) GetDeletePoliciesReq() []*DeletePolicyReq + func (x *DeletePoliciesReq) ProtoReflect() protoreflect.Message + func (x *DeletePoliciesReq) Reset() + func (x *DeletePoliciesReq) String() string + type DeletePoliciesRes struct + Deleted bool + func (*DeletePoliciesRes) Descriptor() ([]byte, []int) + func (*DeletePoliciesRes) ProtoMessage() + func (x *DeletePoliciesRes) GetDeleted() bool + func (x *DeletePoliciesRes) ProtoReflect() protoreflect.Message + func (x *DeletePoliciesRes) Reset() + func (x *DeletePoliciesRes) String() string + type DeletePolicyReq struct + Domain string + Object string + ObjectKind string + ObjectType string + Permission string + Relation string + Subject string + SubjectKind string + SubjectRelation string + SubjectType string + func (*DeletePolicyReq) Descriptor() ([]byte, []int) + func (*DeletePolicyReq) ProtoMessage() + func (x *DeletePolicyReq) GetDomain() string + func (x *DeletePolicyReq) GetObject() string + func (x *DeletePolicyReq) GetObjectKind() string + func (x *DeletePolicyReq) GetObjectType() string + func (x *DeletePolicyReq) GetPermission() string + func (x *DeletePolicyReq) GetRelation() string + func (x *DeletePolicyReq) GetSubject() string + func (x *DeletePolicyReq) GetSubjectKind() string + func (x *DeletePolicyReq) GetSubjectRelation() string + func (x *DeletePolicyReq) GetSubjectType() string + func (x *DeletePolicyReq) ProtoReflect() protoreflect.Message + func (x *DeletePolicyReq) Reset() + func (x *DeletePolicyReq) String() string + type DeletePolicyRes struct + Deleted bool + func (*DeletePolicyRes) Descriptor() ([]byte, []int) + func (*DeletePolicyRes) ProtoMessage() + func (x *DeletePolicyRes) GetDeleted() bool + func (x *DeletePolicyRes) ProtoReflect() protoreflect.Message + func (x *DeletePolicyRes) Reset() + func (x *DeletePolicyRes) String() string + type HealthInfo struct + BuildTime string + Commit string + Description string + InstanceID string + Status string + Version string + type IDProvider interface + ID func() (string, error) + type IdentityReq struct + Token string + func (*IdentityReq) Descriptor() ([]byte, []int) + func (*IdentityReq) ProtoMessage() + func (x *IdentityReq) GetToken() string + func (x *IdentityReq) ProtoReflect() protoreflect.Message + func (x *IdentityReq) Reset() + func (x *IdentityReq) String() string + type IdentityRes struct + DomainId string + Id string + UserId string + func (*IdentityRes) Descriptor() ([]byte, []int) + func (*IdentityRes) ProtoMessage() + func (x *IdentityRes) GetDomainId() string + func (x *IdentityRes) GetId() string + func (x *IdentityRes) GetUserId() string + func (x *IdentityRes) ProtoReflect() protoreflect.Message + func (x *IdentityRes) Reset() + func (x *IdentityRes) String() string + type IssueReq struct + DomainId *string + Type uint32 + UserId string + func (*IssueReq) Descriptor() ([]byte, []int) + func (*IssueReq) ProtoMessage() + func (x *IssueReq) GetDomainId() string + func (x *IssueReq) GetType() uint32 + func (x *IssueReq) GetUserId() string + func (x *IssueReq) ProtoReflect() protoreflect.Message + func (x *IssueReq) Reset() + func (x *IssueReq) String() string + type ListObjectsReq struct + Domain string + Limit int32 + NextPageToken string + Object string + ObjectType string + Permission string + Relation string + Subject string + SubjectRelation string + SubjectType string + func (*ListObjectsReq) Descriptor() ([]byte, []int) + func (*ListObjectsReq) ProtoMessage() + func (x *ListObjectsReq) GetDomain() string + func (x *ListObjectsReq) GetLimit() int32 + func (x *ListObjectsReq) GetNextPageToken() string + func (x *ListObjectsReq) GetObject() string + func (x *ListObjectsReq) GetObjectType() string + func (x *ListObjectsReq) GetPermission() string + func (x *ListObjectsReq) GetRelation() string + func (x *ListObjectsReq) GetSubject() string + func (x *ListObjectsReq) GetSubjectRelation() string + func (x *ListObjectsReq) GetSubjectType() string + func (x *ListObjectsReq) ProtoReflect() protoreflect.Message + func (x *ListObjectsReq) Reset() + func (x *ListObjectsReq) String() string + type ListObjectsRes struct + NextPageToken string + Policies []string + func (*ListObjectsRes) Descriptor() ([]byte, []int) + func (*ListObjectsRes) ProtoMessage() + func (x *ListObjectsRes) GetNextPageToken() string + func (x *ListObjectsRes) GetPolicies() []string + func (x *ListObjectsRes) ProtoReflect() protoreflect.Message + func (x *ListObjectsRes) Reset() + func (x *ListObjectsRes) String() string + type ListPermissionsReq struct + Domain string + FilterPermissions []string + Object string + ObjectType string + Subject string + SubjectRelation string + SubjectType string + func (*ListPermissionsReq) Descriptor() ([]byte, []int) + func (*ListPermissionsReq) ProtoMessage() + func (x *ListPermissionsReq) GetDomain() string + func (x *ListPermissionsReq) GetFilterPermissions() []string + func (x *ListPermissionsReq) GetObject() string + func (x *ListPermissionsReq) GetObjectType() string + func (x *ListPermissionsReq) GetSubject() string + func (x *ListPermissionsReq) GetSubjectRelation() string + func (x *ListPermissionsReq) GetSubjectType() string + func (x *ListPermissionsReq) ProtoReflect() protoreflect.Message + func (x *ListPermissionsReq) Reset() + func (x *ListPermissionsReq) String() string + type ListPermissionsRes struct + Domain string + Object string + ObjectType string + Permissions []string + Subject string + SubjectRelation string + SubjectType string + func (*ListPermissionsRes) Descriptor() ([]byte, []int) + func (*ListPermissionsRes) ProtoMessage() + func (x *ListPermissionsRes) GetDomain() string + func (x *ListPermissionsRes) GetObject() string + func (x *ListPermissionsRes) GetObjectType() string + func (x *ListPermissionsRes) GetPermissions() []string + func (x *ListPermissionsRes) GetSubject() string + func (x *ListPermissionsRes) GetSubjectRelation() string + func (x *ListPermissionsRes) GetSubjectType() string + func (x *ListPermissionsRes) ProtoReflect() protoreflect.Message + func (x *ListPermissionsRes) Reset() + func (x *ListPermissionsRes) String() string + type ListSubjectsReq struct + Domain string + Limit int32 + NextPageToken string + Object string + ObjectType string + Permission string + Relation string + Subject string + SubjectRelation string + SubjectType string + func (*ListSubjectsReq) Descriptor() ([]byte, []int) + func (*ListSubjectsReq) ProtoMessage() + func (x *ListSubjectsReq) GetDomain() string + func (x *ListSubjectsReq) GetLimit() int32 + func (x *ListSubjectsReq) GetNextPageToken() string + func (x *ListSubjectsReq) GetObject() string + func (x *ListSubjectsReq) GetObjectType() string + func (x *ListSubjectsReq) GetPermission() string + func (x *ListSubjectsReq) GetRelation() string + func (x *ListSubjectsReq) GetSubject() string + func (x *ListSubjectsReq) GetSubjectRelation() string + func (x *ListSubjectsReq) GetSubjectType() string + func (x *ListSubjectsReq) ProtoReflect() protoreflect.Message + func (x *ListSubjectsReq) Reset() + func (x *ListSubjectsReq) String() string + type ListSubjectsRes struct + NextPageToken string + Policies []string + func (*ListSubjectsRes) Descriptor() ([]byte, []int) + func (*ListSubjectsRes) ProtoMessage() + func (x *ListSubjectsRes) GetNextPageToken() string + func (x *ListSubjectsRes) GetPolicies() []string + func (x *ListSubjectsRes) ProtoReflect() protoreflect.Message + func (x *ListSubjectsRes) Reset() + func (x *ListSubjectsRes) String() string + type RefreshReq struct + DomainId *string + RefreshToken string + func (*RefreshReq) Descriptor() ([]byte, []int) + func (*RefreshReq) ProtoMessage() + func (x *RefreshReq) GetDomainId() string + func (x *RefreshReq) GetRefreshToken() string + func (x *RefreshReq) ProtoReflect() protoreflect.Message + func (x *RefreshReq) Reset() + func (x *RefreshReq) String() string + type Response interface + Code func() int + Empty func() bool + Headers func() map[string]string + type Token struct + AccessToken string + AccessType string + RefreshToken *string + func (*Token) Descriptor() ([]byte, []int) + func (*Token) ProtoMessage() + func (x *Token) GetAccessToken() string + func (x *Token) GetAccessType() string + func (x *Token) GetRefreshToken() string + func (x *Token) ProtoReflect() protoreflect.Message + func (x *Token) Reset() + func (x *Token) String() string + type UnimplementedAuthServiceServer struct + func (UnimplementedAuthServiceServer) AddPolicies(context.Context, *AddPoliciesReq) (*AddPoliciesRes, error) + func (UnimplementedAuthServiceServer) AddPolicy(context.Context, *AddPolicyReq) (*AddPolicyRes, error) + func (UnimplementedAuthServiceServer) Authorize(context.Context, *AuthorizeReq) (*AuthorizeRes, error) + func (UnimplementedAuthServiceServer) CountObjects(context.Context, *CountObjectsReq) (*CountObjectsRes, error) + func (UnimplementedAuthServiceServer) CountSubjects(context.Context, *CountSubjectsReq) (*CountSubjectsRes, error) + func (UnimplementedAuthServiceServer) DeletePolicies(context.Context, *DeletePoliciesReq) (*DeletePoliciesRes, error) + func (UnimplementedAuthServiceServer) DeletePolicy(context.Context, *DeletePolicyReq) (*DeletePolicyRes, error) + func (UnimplementedAuthServiceServer) Identify(context.Context, *IdentityReq) (*IdentityRes, error) + func (UnimplementedAuthServiceServer) Issue(context.Context, *IssueReq) (*Token, error) + func (UnimplementedAuthServiceServer) ListAllObjects(context.Context, *ListObjectsReq) (*ListObjectsRes, error) + func (UnimplementedAuthServiceServer) ListAllSubjects(context.Context, *ListSubjectsReq) (*ListSubjectsRes, error) + func (UnimplementedAuthServiceServer) ListObjects(context.Context, *ListObjectsReq) (*ListObjectsRes, error) + func (UnimplementedAuthServiceServer) ListPermissions(context.Context, *ListPermissionsReq) (*ListPermissionsRes, error) + func (UnimplementedAuthServiceServer) ListSubjects(context.Context, *ListSubjectsReq) (*ListSubjectsRes, error) + func (UnimplementedAuthServiceServer) Refresh(context.Context, *RefreshReq) (*Token, error) + type UnimplementedAuthzServiceServer struct + func (UnimplementedAuthzServiceServer) Authorize(context.Context, *AuthorizeReq) (*AuthorizeRes, error) + type UnsafeAuthServiceServer interface + type UnsafeAuthzServiceServer interface