management

package
v1.84.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2022 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionQueryToQuery

func ActionQueryToQuery(query interface{}) (query.SearchQuery, error)

func AddAPIAppRequestToDomain

func AddAPIAppRequestToDomain(app *mgmt_pb.AddAPIAppRequest) *domain.APIApp

func AddAPIClientKeyRequestToDomain

func AddAPIClientKeyRequestToDomain(key *mgmt_pb.AddAppKeyRequest) *domain.ApplicationKey

func AddHumanUserRequestToDomain

func AddHumanUserRequestToDomain(req *mgmt_pb.AddHumanUserRequest) *domain.Human

func AddMachineKeyRequestToDomain

func AddMachineKeyRequestToDomain(req *mgmt_pb.AddMachineKeyRequest) *domain.MachineKey

func AddMachineUserRequestToDomain

func AddMachineUserRequestToDomain(req *mgmt_pb.AddMachineUserRequest) *domain.Machine

func AddOIDCAppRequestToDomain

func AddOIDCAppRequestToDomain(req *mgmt_pb.AddOIDCAppRequest) *domain.OIDCApp

func AddOrgDomainRequestToDomain

func AddOrgDomainRequestToDomain(ctx context.Context, req *mgmt_pb.AddOrgDomainRequest) *domain.OrgDomain

func AddOrgMemberRequestToDomain

func AddOrgMemberRequestToDomain(ctx context.Context, req *mgmt_pb.AddOrgMemberRequest) *domain.Member

func AddProjectGrantRequestToDomain

func AddProjectGrantRequestToDomain(req *mgmt_pb.AddProjectGrantRequest) *domain.ProjectGrant

func AddProjectMemberRequestToDomain

func AddProjectMemberRequestToDomain(req *mgmt_pb.AddProjectMemberRequest) *domain.Member

func AddProjectRoleRequestToDomain

func AddProjectRoleRequestToDomain(req *mgmt_pb.AddProjectRoleRequest) *domain.ProjectRole

func AddUserGrantRequestToDomain

func AddUserGrantRequestToDomain(req *mgmt_pb.AddUserGrantRequest) *domain.UserGrant

func AllProjectGrantQueriesToModel

func AllProjectGrantQueriesToModel(req *mgmt_pb.ListAllProjectGrantsRequest) (_ []query.SearchQuery, err error)

func AllProjectGrantQueryToModel

func AllProjectGrantQueryToModel(apiQuery *proj_pb.AllProjectGrantQuery) (query.SearchQuery, error)

func BulkAddProjectRolesRequestToDomain

func BulkAddProjectRolesRequestToDomain(req *mgmt_pb.BulkAddProjectRolesRequest) []*domain.ProjectRole

func BulkSetMetadataToDomain

func BulkSetMetadataToDomain(req *mgmt_pb.BulkSetUserMetadataRequest) []*domain.Metadata

func ImportHumanUserRequestToDomain

func ImportHumanUserRequestToDomain(req *mgmt_pb.ImportHumanUserRequest) (human *domain.Human, passwordless bool)

func ListAppsRequestToModel

func ListAppsRequestToModel(req *mgmt_pb.ListAppsRequest) (*query.AppSearchQueries, error)

func ListUsersRequestToModel

func ListUsersRequestToModel(req *mgmt_pb.ListUsersRequest) (*query.UserSearchQueries, error)

func MemberTypeToDomain

func MemberTypeToDomain(mType user_model.MemberType) domain.MemberType

func ProjectCreateToDomain

func ProjectCreateToDomain(req *mgmt_pb.AddProjectRequest) *domain.Project

func ProjectGrantQueriesToModel

func ProjectGrantQueriesToModel(req *mgmt_pb.ListProjectGrantsRequest) (_ []query.SearchQuery, err error)

func ProjectGrantQueryToModel

func ProjectGrantQueryToModel(apiQuery *proj_pb.ProjectGrantQuery) (query.SearchQuery, error)

func ProjectGrantsToIDs

func ProjectGrantsToIDs(projectGrants *query.ProjectGrants) []string

func ProjectUpdateToDomain

func ProjectUpdateToDomain(req *mgmt_pb.UpdateProjectRequest) *domain.Project

func RemoveOrgDomainRequestToDomain

func RemoveOrgDomainRequestToDomain(ctx context.Context, req *mgmt_pb.RemoveOrgDomainRequest) *domain.OrgDomain

func SetPrimaryOrgDomainRequestToDomain

func SetPrimaryOrgDomainRequestToDomain(ctx context.Context, req *mgmt_pb.SetPrimaryOrgDomainRequest) *domain.OrgDomain

func UpdateAPIAppConfigRequestToDomain

func UpdateAPIAppConfigRequestToDomain(app *mgmt_pb.UpdateAPIAppConfigRequest) *domain.APIApp

func UpdateAppRequestToDomain

func UpdateAppRequestToDomain(app *mgmt_pb.UpdateAppRequest) domain.Application

func UpdateHumanEmailRequestToDomain

func UpdateHumanEmailRequestToDomain(ctx context.Context, req *mgmt_pb.UpdateHumanEmailRequest) *domain.Email

func UpdateHumanPhoneRequestToDomain

func UpdateHumanPhoneRequestToDomain(req *mgmt_pb.UpdateHumanPhoneRequest) *domain.Phone

func UpdateHumanProfileRequestToDomain

func UpdateHumanProfileRequestToDomain(req *mgmt_pb.UpdateHumanProfileRequest) *domain.Profile

func UpdateMachineRequestToDomain

func UpdateMachineRequestToDomain(ctx context.Context, req *mgmt_pb.UpdateMachineRequest) *domain.Machine

func UpdateOIDCAppConfigRequestToDomain

func UpdateOIDCAppConfigRequestToDomain(app *mgmt_pb.UpdateOIDCAppConfigRequest) *domain.OIDCApp

func UpdateOrgMemberRequestToDomain

func UpdateOrgMemberRequestToDomain(ctx context.Context, req *mgmt_pb.UpdateOrgMemberRequest) *domain.Member

func UpdateProjectGrantRequestToDomain

func UpdateProjectGrantRequestToDomain(req *mgmt_pb.UpdateProjectGrantRequest) *domain.ProjectGrant

func UpdateProjectMemberRequestToDomain

func UpdateProjectMemberRequestToDomain(req *mgmt_pb.UpdateProjectMemberRequest) *domain.Member

func UpdateProjectRoleRequestToDomain

func UpdateProjectRoleRequestToDomain(req *mgmt_pb.UpdateProjectRoleRequest) *domain.ProjectRole

func UpdateUserGrantRequestToDomain

func UpdateUserGrantRequestToDomain(req *mgmt_pb.UpdateUserGrantRequest) *domain.UserGrant

func UserFieldNameToSortingColumn

func UserFieldNameToSortingColumn(field user.UserFieldName) query.Column

func UserMembershipViewsToDomain

func UserMembershipViewsToDomain(memberships []*user_model.UserMembershipView) []*domain.UserMembership

func ValidateOrgDomainRequestToDomain

func ValidateOrgDomainRequestToDomain(ctx context.Context, req *mgmt_pb.ValidateOrgDomainRequest) *domain.OrgDomain

Types

type Server

type Server struct {
	management.UnimplementedManagementServiceServer
	// contains filtered or unexported fields
}

func CreateServer

func CreateServer(command *command.Commands, query *query.Queries, sd systemdefaults.SystemDefaults, assetAPIPrefix string) *Server

func (*Server) AddAPIApp

func (*Server) AddAppKey

func (*Server) AddHumanUser

func (*Server) AddMachineKey

func (*Server) AddMachineUser

func (*Server) AddOIDCApp

func (*Server) AddOrg

func (*Server) AddOrgDomain

func (*Server) AddOrgJWTIDP

func (*Server) AddOrgMember

func (*Server) AddOrgOIDCIDP

func (*Server) AddProject

func (*Server) AddProjectRole

func (*Server) AddUserGrant

func (*Server) AppName

func (s *Server) AppName() string

func (*Server) AuthMethods

func (s *Server) AuthMethods() authz.MethodMapping

func (*Server) ClearFlow

func (*Server) CreateAction

func (*Server) DeactivateApp

func (*Server) DeactivateOrg

func (*Server) DeactivateUser

func (*Server) DeleteAction

func (*Server) GatewayPathPrefix

func (s *Server) GatewayPathPrefix() string

func (*Server) GetAction

func (*Server) GetAppByID

func (*Server) GetAppKey

func (*Server) GetFeatures

func (*Server) GetFlow

func (*Server) GetHumanEmail

func (*Server) GetHumanPhone

func (*Server) GetIAM

func (*Server) GetLabelPolicy

func (*Server) GetLoginPolicy

func (*Server) GetMyOrg

func (*Server) GetOrgIDPByID

func (*Server) GetProjectByID

func (*Server) GetUserByID

func (*Server) IsUserUnique

func (*Server) ListActions

func (*Server) ListAppChanges

func (*Server) ListAppKeys

func (*Server) ListApps

func (*Server) ListOrgChanges

func (*Server) ListOrgDomains

func (*Server) ListOrgIDPs

func (*Server) ListOrgMembers

func (*Server) ListProjects

func (*Server) ListUserGrants

func (*Server) ListUsers

func (*Server) LockUser

func (*Server) MethodPrefix

func (s *Server) MethodPrefix() string

func (*Server) ReactivateApp

func (*Server) ReactivateOrg

func (*Server) ReactivateUser

func (*Server) RegisterGateway

func (s *Server) RegisterGateway() server.GatewayFunc

func (*Server) RegisterServer

func (s *Server) RegisterServer(grpcServer *grpc.Server)

func (*Server) RemoveApp

func (*Server) RemoveAppKey

func (*Server) RemoveOrgIDP

func (*Server) RemoveProject

func (*Server) RemoveUser

func (*Server) UnlockUser

func (*Server) UpdateAction

func (*Server) UpdateApp

func (*Server) UpdateMachine

func (*Server) UpdateOrg

func (*Server) UpdateOrgIDP

func (*Server) UpdateProject

func (*Server) UpdateUserName

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL