Documentation ¶
Index ¶
- func NewAuthAdminServiceGrpc(clients server.Clients) service.AuthAdminService
- type GroupServiceGrpc
- func (s *GroupServiceGrpc) AddRolesToGroup(ctx context.Context, organizationID string, namespace string, groupID string, ...) error
- func (s *GroupServiceGrpc) CreateGroup(ctx context.Context, organizationID string, group *types.Group) (*types.Group, error)
- func (s *GroupServiceGrpc) DeleteGroup(ctx context.Context, organizationID string, namespace string, id string) error
- func (s *GroupServiceGrpc) DeleteRolesToGroup(ctx context.Context, organizationID string, namespace string, groupID string, ...) error
- func (s *GroupServiceGrpc) GetGroup(ctx context.Context, organizationID string, namespace string, id string) (*types.Group, error)
- func (s *GroupServiceGrpc) GetGroups(ctx context.Context, organizationID string, namespace string, ...) (arr []*types.Group, nextOffset string, err error)
- func (s *GroupServiceGrpc) UpdateGroup(ctx context.Context, organizationID string, group *types.Group) error
- type OrganizationServiceGrpc
- func (s *OrganizationServiceGrpc) CreateOrganization(ctx context.Context, org *types.Organization) (*types.Organization, error)
- func (s *OrganizationServiceGrpc) DeleteOrganization(ctx context.Context, id string) error
- func (s *OrganizationServiceGrpc) GetOrganization(ctx context.Context, id string) (org *types.Organization, err error)
- func (s *OrganizationServiceGrpc) GetOrganizations(ctx context.Context, predicates map[string]string, offset string, limit int64) (arr []*types.Organization, nextToken string, err error)
- func (s *OrganizationServiceGrpc) UpdateOrganization(ctx context.Context, org *types.Organization) error
- type PermissionServiceGrpc
- func (s *PermissionServiceGrpc) CreatePermission(ctx context.Context, organizationID string, permission *types.Permission) (*types.Permission, error)
- func (s *PermissionServiceGrpc) DeletePermission(ctx context.Context, organizationID string, namespace string, id string) error
- func (s *PermissionServiceGrpc) GetPermission(ctx context.Context, organizationID string, namespace string, id string) (*types.Permission, error)
- func (s *PermissionServiceGrpc) GetPermissions(ctx context.Context, organizationID string, namespace string, ...) (arr []*types.Permission, nextOffset string, err error)
- func (s *PermissionServiceGrpc) UpdatePermission(ctx context.Context, organizationID string, permission *types.Permission) error
- type PrincipalServiceGrpc
- func (s *PrincipalServiceGrpc) AddGroupsToPrincipal(ctx context.Context, organizationID string, namespace string, ...) error
- func (s *PrincipalServiceGrpc) AddPermissionsToPrincipal(ctx context.Context, organizationID string, namespace string, ...) error
- func (s *PrincipalServiceGrpc) AddRelationshipsToPrincipal(ctx context.Context, organizationID string, namespace string, ...) error
- func (s *PrincipalServiceGrpc) AddRolesToPrincipal(ctx context.Context, organizationID string, namespace string, ...) error
- func (s *PrincipalServiceGrpc) CreatePrincipal(ctx context.Context, principal *types.Principal) (*types.Principal, error)
- func (s *PrincipalServiceGrpc) DeleteGroupsToPrincipal(ctx context.Context, organizationID string, namespace string, ...) error
- func (s *PrincipalServiceGrpc) DeletePermissionsToPrincipal(ctx context.Context, organizationID string, namespace string, ...) error
- func (s *PrincipalServiceGrpc) DeletePrincipal(ctx context.Context, organizationID string, id string) error
- func (s *PrincipalServiceGrpc) DeleteRelationshipsToPrincipal(ctx context.Context, organizationID string, namespace string, ...) error
- func (s *PrincipalServiceGrpc) DeleteRolesToPrincipal(ctx context.Context, organizationID string, namespace string, ...) error
- func (s *PrincipalServiceGrpc) GetPrincipal(ctx context.Context, organizationID string, id string) (*types.Principal, error)
- func (s *PrincipalServiceGrpc) GetPrincipalExt(ctx context.Context, organizationID string, namespace string, id string) (xPrincipal *domain.PrincipalExt, err error)
- func (s *PrincipalServiceGrpc) GetPrincipals(ctx context.Context, organizationID string, predicates map[string]string, ...) (arr []*types.Principal, nextToken string, err error)
- func (s *PrincipalServiceGrpc) UpdatePrincipal(ctx context.Context, principal *types.Principal) error
- type RelationshipServiceGrpc
- func (s *RelationshipServiceGrpc) CreateRelationship(ctx context.Context, organizationID string, relationship *types.Relationship) (*types.Relationship, error)
- func (s *RelationshipServiceGrpc) DeleteRelationship(ctx context.Context, organizationID string, namespace string, id string) error
- func (s *RelationshipServiceGrpc) GetRelationship(ctx context.Context, organizationID string, namespace string, id string) (*types.Relationship, error)
- func (s *RelationshipServiceGrpc) GetRelationships(ctx context.Context, organizationID string, namespace string, ...) (arr []*types.Relationship, nextOffset string, err error)
- func (s *RelationshipServiceGrpc) UpdateRelationship(ctx context.Context, organizationID string, relationship *types.Relationship) error
- type ResourceServiceGrpc
- func (s *ResourceServiceGrpc) AllocateResourceInstance(ctx context.Context, organizationID string, namespace string, ...) error
- func (s *ResourceServiceGrpc) CountResourceInstances(ctx context.Context, organizationID string, namespace string, ...) (capacity int32, allocated int32, err error)
- func (s *ResourceServiceGrpc) CreateResource(ctx context.Context, organizationID string, resource *types.Resource) (*types.Resource, error)
- func (s *ResourceServiceGrpc) DeallocateResourceInstance(ctx context.Context, organizationID string, namespace string, ...) error
- func (s *ResourceServiceGrpc) DeleteResource(ctx context.Context, organizationID string, namespace string, id string) error
- func (s *ResourceServiceGrpc) GetResource(ctx context.Context, organizationID string, namespace string, id string) (*types.Resource, error)
- func (s *ResourceServiceGrpc) QueryResourceInstances(ctx context.Context, organizationID string, namespace string, ...) (arr []*types.ResourceInstance, nextOffset string, err error)
- func (s *ResourceServiceGrpc) QueryResources(ctx context.Context, organizationID string, namespace string, ...) (arr []*types.Resource, nextOffset string, err error)
- func (s *ResourceServiceGrpc) UpdateResource(ctx context.Context, organizationID string, resource *types.Resource) error
- type RoleServiceGrpc
- func (s *RoleServiceGrpc) AddPermissionsToRole(ctx context.Context, organizationID string, namespace string, roleID string, ...) error
- func (s *RoleServiceGrpc) CreateRole(ctx context.Context, organizationID string, role *types.Role) (*types.Role, error)
- func (s *RoleServiceGrpc) DeletePermissionsToRole(ctx context.Context, organizationID string, namespace string, roleID string, ...) error
- func (s *RoleServiceGrpc) DeleteRole(ctx context.Context, organizationID string, namespace string, id string) error
- func (s *RoleServiceGrpc) GetRole(ctx context.Context, organizationID string, namespace string, id string) (*types.Role, error)
- func (s *RoleServiceGrpc) GetRoles(ctx context.Context, organizationID string, namespace string, ...) (arr []*types.Role, nextOffset string, err error)
- func (s *RoleServiceGrpc) UpdateRole(ctx context.Context, organizationID string, role *types.Role) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthAdminServiceGrpc ¶
func NewAuthAdminServiceGrpc( clients server.Clients, ) service.AuthAdminService
NewAuthAdminServiceGrpc manages persistence of AuthZ data
Types ¶
type GroupServiceGrpc ¶
type GroupServiceGrpc struct {
// contains filtered or unexported fields
}
GroupServiceGrpc - manages persistence of groups data
func NewGroupServiceGrpc ¶
func NewGroupServiceGrpc( clients server.Clients, ) *GroupServiceGrpc
NewGroupServiceGrpc manages persistence of groups data
func (*GroupServiceGrpc) AddRolesToGroup ¶
func (s *GroupServiceGrpc) AddRolesToGroup( ctx context.Context, organizationID string, namespace string, groupID string, roleIDs ...string, ) error
AddRolesToGroup helper
func (*GroupServiceGrpc) CreateGroup ¶
func (s *GroupServiceGrpc) CreateGroup( ctx context.Context, organizationID string, group *types.Group) (*types.Group, error)
CreateGroup - creates a new group
func (*GroupServiceGrpc) DeleteGroup ¶
func (s *GroupServiceGrpc) DeleteGroup( ctx context.Context, organizationID string, namespace string, id string) error
DeleteGroup removes group
func (*GroupServiceGrpc) DeleteRolesToGroup ¶
func (s *GroupServiceGrpc) DeleteRolesToGroup( ctx context.Context, organizationID string, namespace string, groupID string, roleIDs ...string, ) error
DeleteRolesToGroup helper
func (*GroupServiceGrpc) GetGroup ¶
func (s *GroupServiceGrpc) GetGroup( ctx context.Context, organizationID string, namespace string, id string, ) (*types.Group, error)
GetGroup - finds group
func (*GroupServiceGrpc) GetGroups ¶
func (s *GroupServiceGrpc) GetGroups( ctx context.Context, organizationID string, namespace string, predicates map[string]string, offset string, limit int64) (arr []*types.Group, nextOffset string, err error)
GetGroups - queries groups
func (*GroupServiceGrpc) UpdateGroup ¶
func (s *GroupServiceGrpc) UpdateGroup( ctx context.Context, organizationID string, group *types.Group) error
UpdateGroup - updates an existing group
type OrganizationServiceGrpc ¶
type OrganizationServiceGrpc struct {
// contains filtered or unexported fields
}
OrganizationServiceGrpc - manages persistence of AuthZ data.
func NewOrganizationServiceGrpc ¶
func NewOrganizationServiceGrpc( clients server.Clients, ) *OrganizationServiceGrpc
NewOrganizationServiceGrpc manages persistence of organization.
func (*OrganizationServiceGrpc) CreateOrganization ¶
func (s *OrganizationServiceGrpc) CreateOrganization( ctx context.Context, org *types.Organization) (*types.Organization, error)
CreateOrganization - adds an organization.
func (*OrganizationServiceGrpc) DeleteOrganization ¶
func (s *OrganizationServiceGrpc) DeleteOrganization( ctx context.Context, id string) error
DeleteOrganization removes organization.
func (*OrganizationServiceGrpc) GetOrganization ¶
func (s *OrganizationServiceGrpc) GetOrganization( ctx context.Context, id string) (org *types.Organization, err error)
GetOrganization finds organization.
func (*OrganizationServiceGrpc) GetOrganizations ¶
func (s *OrganizationServiceGrpc) GetOrganizations( ctx context.Context, predicates map[string]string, offset string, limit int64) (arr []*types.Organization, nextToken string, err error)
GetOrganizations - queries organizations.
func (*OrganizationServiceGrpc) UpdateOrganization ¶
func (s *OrganizationServiceGrpc) UpdateOrganization( ctx context.Context, org *types.Organization) error
UpdateOrganization - updates organization.
type PermissionServiceGrpc ¶
type PermissionServiceGrpc struct {
// contains filtered or unexported fields
}
PermissionServiceGrpc - manages persistence of permission data
func NewPermissionServiceGrpc ¶
func NewPermissionServiceGrpc( clients server.Clients, ) *PermissionServiceGrpc
NewPermissionServiceGrpc manages persistence of permission data
func (*PermissionServiceGrpc) CreatePermission ¶
func (s *PermissionServiceGrpc) CreatePermission( ctx context.Context, organizationID string, permission *types.Permission) (*types.Permission, error)
CreatePermission - creates a new permission
func (*PermissionServiceGrpc) DeletePermission ¶
func (s *PermissionServiceGrpc) DeletePermission( ctx context.Context, organizationID string, namespace string, id string) error
DeletePermission removes permission
func (*PermissionServiceGrpc) GetPermission ¶
func (s *PermissionServiceGrpc) GetPermission( ctx context.Context, organizationID string, namespace string, id string, ) (*types.Permission, error)
GetPermission - finds permission
func (*PermissionServiceGrpc) GetPermissions ¶
func (s *PermissionServiceGrpc) GetPermissions( ctx context.Context, organizationID string, namespace string, predicates map[string]string, offset string, limit int64) (arr []*types.Permission, nextOffset string, err error)
GetPermissions - queries permissions
func (*PermissionServiceGrpc) UpdatePermission ¶
func (s *PermissionServiceGrpc) UpdatePermission( ctx context.Context, organizationID string, permission *types.Permission) error
UpdatePermission - updates an existing permission
type PrincipalServiceGrpc ¶
type PrincipalServiceGrpc struct {
// contains filtered or unexported fields
}
PrincipalServiceGrpc - manages persistence of principal objects
func NewPrincipalServiceGrpc ¶
func NewPrincipalServiceGrpc( clients server.Clients, ) *PrincipalServiceGrpc
NewPrincipalServiceGrpc manages persistence of principal data
func (*PrincipalServiceGrpc) AddGroupsToPrincipal ¶
func (s *PrincipalServiceGrpc) AddGroupsToPrincipal( ctx context.Context, organizationID string, namespace string, principalID string, groupIDs ...string, ) error
AddGroupsToPrincipal helper
func (*PrincipalServiceGrpc) AddPermissionsToPrincipal ¶
func (s *PrincipalServiceGrpc) AddPermissionsToPrincipal( ctx context.Context, organizationID string, namespace string, principalID string, permissionIds ...string, ) error
AddPermissionsToPrincipal helper
func (*PrincipalServiceGrpc) AddRelationshipsToPrincipal ¶
func (s *PrincipalServiceGrpc) AddRelationshipsToPrincipal( ctx context.Context, organizationID string, namespace string, principalID string, relationshipIds ...string, ) error
AddRelationshipsToPrincipal helper
func (*PrincipalServiceGrpc) AddRolesToPrincipal ¶
func (s *PrincipalServiceGrpc) AddRolesToPrincipal( ctx context.Context, organizationID string, namespace string, principalID string, roleIDs ...string, ) error
AddRolesToPrincipal helper
func (*PrincipalServiceGrpc) CreatePrincipal ¶
func (s *PrincipalServiceGrpc) CreatePrincipal( ctx context.Context, principal *types.Principal) (*types.Principal, error)
CreatePrincipal - creates new instance of principal Note - this method won't be used to update any role-ids, group-ids, relations, and permission-ids
func (*PrincipalServiceGrpc) DeleteGroupsToPrincipal ¶
func (s *PrincipalServiceGrpc) DeleteGroupsToPrincipal( ctx context.Context, organizationID string, namespace string, principalID string, groupIDs ...string, ) error
DeleteGroupsToPrincipal helper
func (*PrincipalServiceGrpc) DeletePermissionsToPrincipal ¶
func (s *PrincipalServiceGrpc) DeletePermissionsToPrincipal( ctx context.Context, organizationID string, namespace string, principalID string, permissionIds ...string, ) error
DeletePermissionsToPrincipal helper
func (*PrincipalServiceGrpc) DeletePrincipal ¶
func (s *PrincipalServiceGrpc) DeletePrincipal( ctx context.Context, organizationID string, id string) error
DeletePrincipal removes principal
func (*PrincipalServiceGrpc) DeleteRelationshipsToPrincipal ¶
func (s *PrincipalServiceGrpc) DeleteRelationshipsToPrincipal( ctx context.Context, organizationID string, namespace string, principalID string, relationshipIds ...string, ) error
DeleteRelationshipsToPrincipal helper
func (*PrincipalServiceGrpc) DeleteRolesToPrincipal ¶
func (s *PrincipalServiceGrpc) DeleteRolesToPrincipal( ctx context.Context, organizationID string, namespace string, principalID string, roleIDs ...string, ) error
DeleteRolesToPrincipal helper
func (*PrincipalServiceGrpc) GetPrincipal ¶
func (s *PrincipalServiceGrpc) GetPrincipal( ctx context.Context, organizationID string, id string, ) (*types.Principal, error)
GetPrincipal - retrieves principal
func (*PrincipalServiceGrpc) GetPrincipalExt ¶
func (s *PrincipalServiceGrpc) GetPrincipalExt( ctx context.Context, organizationID string, namespace string, id string, ) (xPrincipal *domain.PrincipalExt, err error)
GetPrincipalExt - retrieves full principal
func (*PrincipalServiceGrpc) GetPrincipals ¶
func (s *PrincipalServiceGrpc) GetPrincipals( ctx context.Context, organizationID string, predicates map[string]string, offset string, limit int64) (arr []*types.Principal, nextToken string, err error)
GetPrincipals - queries principals
func (*PrincipalServiceGrpc) UpdatePrincipal ¶
func (s *PrincipalServiceGrpc) UpdatePrincipal( ctx context.Context, principal *types.Principal) error
UpdatePrincipal - updates existing instance of principal Note - this method won't be used to update any role-ids, group-ids, relations, and permission-ids
type RelationshipServiceGrpc ¶
type RelationshipServiceGrpc struct {
// contains filtered or unexported fields
}
RelationshipServiceGrpc - manages persistence of relationship data
func NewRelationshipServiceGrpc ¶
func NewRelationshipServiceGrpc( clients server.Clients, ) *RelationshipServiceGrpc
NewRelationshipServiceGrpc manages persistence of relationship data
func (*RelationshipServiceGrpc) CreateRelationship ¶
func (s *RelationshipServiceGrpc) CreateRelationship( ctx context.Context, organizationID string, relationship *types.Relationship) (*types.Relationship, error)
CreateRelationship - creates a new relationship
func (*RelationshipServiceGrpc) DeleteRelationship ¶
func (s *RelationshipServiceGrpc) DeleteRelationship( ctx context.Context, organizationID string, namespace string, id string) error
DeleteRelationship removes relationship
func (*RelationshipServiceGrpc) GetRelationship ¶
func (s *RelationshipServiceGrpc) GetRelationship( ctx context.Context, organizationID string, namespace string, id string, ) (*types.Relationship, error)
GetRelationship - finds relationship
func (*RelationshipServiceGrpc) GetRelationships ¶
func (s *RelationshipServiceGrpc) GetRelationships( ctx context.Context, organizationID string, namespace string, predicates map[string]string, offset string, limit int64) (arr []*types.Relationship, nextOffset string, err error)
GetRelationships - queries relationships
func (*RelationshipServiceGrpc) UpdateRelationship ¶
func (s *RelationshipServiceGrpc) UpdateRelationship( ctx context.Context, organizationID string, relationship *types.Relationship) error
UpdateRelationship - updates an existing relationship
type ResourceServiceGrpc ¶
type ResourceServiceGrpc struct {
// contains filtered or unexported fields
}
ResourceServiceGrpc - manages persistence of resources and resource instances.
func NewResourceServiceGrpc ¶
func NewResourceServiceGrpc( clients server.Clients, ) *ResourceServiceGrpc
NewResourceServiceGrpc manages persistence of resources.
func (*ResourceServiceGrpc) AllocateResourceInstance ¶
func (s *ResourceServiceGrpc) AllocateResourceInstance( ctx context.Context, organizationID string, namespace string, resourceID string, principalID string, constraints string, expiry time.Duration, context map[string]string, ) error
AllocateResourceInstance - allocates resource-instance.
func (*ResourceServiceGrpc) CountResourceInstances ¶
func (s *ResourceServiceGrpc) CountResourceInstances( ctx context.Context, organizationID string, namespace string, resourceID string, ) (capacity int32, allocated int32, err error)
CountResourceInstances - size of total and allocated resource-instances.
func (*ResourceServiceGrpc) CreateResource ¶
func (s *ResourceServiceGrpc) CreateResource( ctx context.Context, organizationID string, resource *types.Resource) (*types.Resource, error)
CreateResource - creates a new instance of resource.
func (*ResourceServiceGrpc) DeallocateResourceInstance ¶
func (s *ResourceServiceGrpc) DeallocateResourceInstance( ctx context.Context, organizationID string, namespace string, resourceID string, principalID string, ) error
DeallocateResourceInstance - deallocates resource-instance.
func (*ResourceServiceGrpc) DeleteResource ¶
func (s *ResourceServiceGrpc) DeleteResource( ctx context.Context, organizationID string, namespace string, id string) error
DeleteResource removes resource.
func (*ResourceServiceGrpc) GetResource ¶
func (s *ResourceServiceGrpc) GetResource( ctx context.Context, organizationID string, namespace string, id string, ) (*types.Resource, error)
GetResource - finds resource by id.
func (*ResourceServiceGrpc) QueryResourceInstances ¶
func (s *ResourceServiceGrpc) QueryResourceInstances( ctx context.Context, organizationID string, namespace string, resourceID string, predicates map[string]string, offset string, limit int64) (arr []*types.ResourceInstance, nextOffset string, err error)
QueryResourceInstances - queries resource-instances.
func (*ResourceServiceGrpc) QueryResources ¶
func (s *ResourceServiceGrpc) QueryResources( ctx context.Context, organizationID string, namespace string, predicates map[string]string, offset string, limit int64) (arr []*types.Resource, nextOffset string, err error)
QueryResources - queries resources by predicates.
func (*ResourceServiceGrpc) UpdateResource ¶
func (s *ResourceServiceGrpc) UpdateResource( ctx context.Context, organizationID string, resource *types.Resource) error
UpdateResource - updates an existing resource.
type RoleServiceGrpc ¶
type RoleServiceGrpc struct {
// contains filtered or unexported fields
}
RoleServiceGrpc - manages persistence of roles data
func NewRoleServiceGrpc ¶
func NewRoleServiceGrpc( clients server.Clients, ) *RoleServiceGrpc
NewRoleServiceGrpc manages persistence of roles data
func (*RoleServiceGrpc) AddPermissionsToRole ¶
func (s *RoleServiceGrpc) AddPermissionsToRole( ctx context.Context, organizationID string, namespace string, roleID string, permissionIds ...string, ) error
AddPermissionsToRole helper
func (*RoleServiceGrpc) CreateRole ¶
func (s *RoleServiceGrpc) CreateRole( ctx context.Context, organizationID string, role *types.Role) (*types.Role, error)
CreateRole - creates a new role
func (*RoleServiceGrpc) DeletePermissionsToRole ¶
func (s *RoleServiceGrpc) DeletePermissionsToRole( ctx context.Context, organizationID string, namespace string, roleID string, permissionIds ...string, ) error
DeletePermissionsToRole helper
func (*RoleServiceGrpc) DeleteRole ¶
func (s *RoleServiceGrpc) DeleteRole( ctx context.Context, organizationID string, namespace string, id string) error
DeleteRole removes role
func (*RoleServiceGrpc) GetRole ¶
func (s *RoleServiceGrpc) GetRole( ctx context.Context, organizationID string, namespace string, id string, ) (*types.Role, error)
GetRole - finds role
func (*RoleServiceGrpc) GetRoles ¶
func (s *RoleServiceGrpc) GetRoles( ctx context.Context, organizationID string, namespace string, predicates map[string]string, offset string, limit int64) (arr []*types.Role, nextOffset string, err error)
GetRoles - queries roles
func (*RoleServiceGrpc) UpdateRole ¶
func (s *RoleServiceGrpc) UpdateRole( ctx context.Context, organizationID string, role *types.Role) error
UpdateRole - updates an existing role