Documentation ¶
Overview ¶
Package idm is a generated protocol buffer package.
It is generated from these files:
idm.proto
It has these top-level messages:
CreateRoleRequest CreateRoleResponse DeleteRoleRequest DeleteRoleResponse SearchRoleRequest SearchRoleResponse Role RoleSingleQuery CreateUserRequest CreateUserResponse BindUserRequest BindUserResponse DeleteUserRequest DeleteUserResponse SearchUserRequest SearchUserResponse CountUserResponse User UserSingleQuery CreateWorkspaceRequest CreateWorkspaceResponse DeleteWorkspaceRequest DeleteWorkspaceResponse SearchWorkspaceRequest SearchWorkspaceResponse Workspace WorkspaceSingleQuery CreateACLRequest CreateACLResponse ExpireACLRequest ExpireACLResponse DeleteACLRequest DeleteACLResponse SearchACLRequest SearchACLResponse ACLAction ACL ACLSingleQuery UserMeta UserMetaNamespace UpdateUserMetaRequest UpdateUserMetaResponse SearchUserMetaRequest SearchUserMetaResponse UpdateUserMetaNamespaceRequest UpdateUserMetaNamespaceResponse ListUserMetaNamespaceRequest ListUserMetaNamespaceResponse ChangeEvent PolicyEngineRequest PolicyEngineResponse PolicyCondition Policy PolicyGroup StorePolicyGroupRequest StorePolicyGroupResponse DeletePolicyGroupRequest DeletePolicyGroupResponse ListPolicyGroupsRequest ListPolicyGroupsResponse
Package idm is a generated protocol buffer package.
It is generated from these files:
idm.proto
It has these top-level messages:
CreateRoleRequest CreateRoleResponse DeleteRoleRequest DeleteRoleResponse SearchRoleRequest SearchRoleResponse Role RoleSingleQuery CreateUserRequest CreateUserResponse BindUserRequest BindUserResponse DeleteUserRequest DeleteUserResponse SearchUserRequest SearchUserResponse CountUserResponse User UserSingleQuery CreateWorkspaceRequest CreateWorkspaceResponse DeleteWorkspaceRequest DeleteWorkspaceResponse SearchWorkspaceRequest SearchWorkspaceResponse Workspace WorkspaceSingleQuery CreateACLRequest CreateACLResponse ExpireACLRequest ExpireACLResponse DeleteACLRequest DeleteACLResponse SearchACLRequest SearchACLResponse ACLAction ACL ACLSingleQuery UserMeta UserMetaNamespace UpdateUserMetaRequest UpdateUserMetaResponse SearchUserMetaRequest SearchUserMetaResponse UpdateUserMetaNamespaceRequest UpdateUserMetaNamespaceResponse ListUserMetaNamespaceRequest ListUserMetaNamespaceResponse ChangeEvent PolicyEngineRequest PolicyEngineResponse PolicyCondition Policy PolicyGroup StorePolicyGroupRequest StorePolicyGroupResponse DeletePolicyGroupRequest DeletePolicyGroupResponse ListPolicyGroupsRequest ListPolicyGroupsResponse
Index ¶
- Constants
- Variables
- func RegisterACLServiceHandler(s server.Server, hdlr ACLServiceHandler, opts ...server.HandlerOption)
- func RegisterPolicyEngineServiceHandler(s server.Server, hdlr PolicyEngineServiceHandler, opts ...server.HandlerOption)
- func RegisterRoleServiceHandler(s server.Server, hdlr RoleServiceHandler, opts ...server.HandlerOption)
- func RegisterUserMetaServiceHandler(s server.Server, hdlr UserMetaServiceHandler, opts ...server.HandlerOption)
- func RegisterUserServiceHandler(s server.Server, hdlr UserServiceHandler, opts ...server.HandlerOption)
- func RegisterWorkspaceServiceHandler(s server.Server, hdlr WorkspaceServiceHandler, opts ...server.HandlerOption)
- type ACL
- func (*ACL) Descriptor() ([]byte, []int)
- func (m *ACL) GetAction() *ACLAction
- func (m *ACL) GetID() string
- func (m *ACL) GetNodeID() string
- func (m *ACL) GetRoleID() string
- func (m *ACL) GetWorkspaceID() string
- func (acl *ACL) MarshalLogObject(encoder zapcore.ObjectEncoder) error
- func (*ACL) ProtoMessage()
- func (m *ACL) Reset()
- func (m *ACL) String() string
- func (this *ACL) Validate() error
- func (acl *ACL) Zap() zapcore.Field
- func (acl *ACL) ZapId() zapcore.Field
- type ACLAction
- func (*ACLAction) Descriptor() ([]byte, []int)
- func (m *ACLAction) GetName() string
- func (m *ACLAction) GetValue() string
- func (action *ACLAction) MarshalLogObject(encoder zapcore.ObjectEncoder) error
- func (*ACLAction) ProtoMessage()
- func (m *ACLAction) Reset()
- func (m *ACLAction) String() string
- func (this *ACLAction) Validate() error
- type ACLService
- func (h *ACLService) CreateACL(ctx context.Context, in *CreateACLRequest, out *CreateACLResponse) error
- func (h *ACLService) DeleteACL(ctx context.Context, in *DeleteACLRequest, out *DeleteACLResponse) error
- func (h *ACLService) ExpireACL(ctx context.Context, in *ExpireACLRequest, out *ExpireACLResponse) error
- func (h *ACLService) SearchACL(ctx context.Context, stream server.Streamer) error
- func (h *ACLService) StreamACL(ctx context.Context, stream server.Streamer) error
- type ACLServiceClient
- type ACLServiceHandler
- type ACLService_SearchACLClient
- type ACLService_SearchACLStream
- type ACLService_StreamACLClient
- type ACLService_StreamACLStream
- type ACLSingleQuery
- func (*ACLSingleQuery) Descriptor() ([]byte, []int)
- func (m *ACLSingleQuery) GetActions() []*ACLAction
- func (m *ACLSingleQuery) GetNodeIDs() []string
- func (m *ACLSingleQuery) GetNot() bool
- func (m *ACLSingleQuery) GetRoleIDs() []string
- func (m *ACLSingleQuery) GetWorkspaceIDs() []string
- func (m *ACLSingleQuery) Matches(idmObject interface{}) bool
- func (*ACLSingleQuery) ProtoMessage()
- func (m *ACLSingleQuery) Reset()
- func (m *ACLSingleQuery) String() string
- func (this *ACLSingleQuery) Validate() error
- type BindUserRequest
- func (*BindUserRequest) Descriptor() ([]byte, []int)
- func (m *BindUserRequest) GetPassword() string
- func (m *BindUserRequest) GetUserName() string
- func (*BindUserRequest) ProtoMessage()
- func (m *BindUserRequest) Reset()
- func (m *BindUserRequest) String() string
- func (this *BindUserRequest) Validate() error
- type BindUserResponse
- type ChangeEvent
- func (*ChangeEvent) Descriptor() ([]byte, []int)
- func (m *ChangeEvent) GetAcl() *ACL
- func (m *ChangeEvent) GetAttributes() map[string]string
- func (m *ChangeEvent) GetJsonType() string
- func (m *ChangeEvent) GetMetaNamespace() *UserMetaNamespace
- func (m *ChangeEvent) GetRole() *Role
- func (m *ChangeEvent) GetType() ChangeEventType
- func (m *ChangeEvent) GetUser() *User
- func (m *ChangeEvent) GetWorkspace() *Workspace
- func (*ChangeEvent) ProtoMessage()
- func (m *ChangeEvent) Reset()
- func (m *ChangeEvent) String() string
- func (this *ChangeEvent) Validate() error
- type ChangeEventType
- type CountUserResponse
- type CreateACLRequest
- func (*CreateACLRequest) Descriptor() ([]byte, []int)
- func (m *CreateACLRequest) GetACL() *ACL
- func (m *CreateACLRequest) GetExpiresIn() int64
- func (*CreateACLRequest) ProtoMessage()
- func (m *CreateACLRequest) Reset()
- func (m *CreateACLRequest) String() string
- func (this *CreateACLRequest) Validate() error
- type CreateACLResponse
- type CreateRoleRequest
- type CreateRoleResponse
- type CreateUserRequest
- type CreateUserResponse
- type CreateWorkspaceRequest
- func (*CreateWorkspaceRequest) Descriptor() ([]byte, []int)
- func (m *CreateWorkspaceRequest) GetWorkspace() *Workspace
- func (*CreateWorkspaceRequest) ProtoMessage()
- func (m *CreateWorkspaceRequest) Reset()
- func (m *CreateWorkspaceRequest) String() string
- func (this *CreateWorkspaceRequest) Validate() error
- type CreateWorkspaceResponse
- func (*CreateWorkspaceResponse) Descriptor() ([]byte, []int)
- func (m *CreateWorkspaceResponse) GetWorkspace() *Workspace
- func (*CreateWorkspaceResponse) ProtoMessage()
- func (m *CreateWorkspaceResponse) Reset()
- func (m *CreateWorkspaceResponse) String() string
- func (this *CreateWorkspaceResponse) Validate() error
- type DeleteACLRequest
- type DeleteACLResponse
- type DeletePolicyGroupRequest
- func (*DeletePolicyGroupRequest) Descriptor() ([]byte, []int)
- func (m *DeletePolicyGroupRequest) GetPolicyGroup() *PolicyGroup
- func (*DeletePolicyGroupRequest) ProtoMessage()
- func (m *DeletePolicyGroupRequest) Reset()
- func (m *DeletePolicyGroupRequest) String() string
- func (this *DeletePolicyGroupRequest) Validate() error
- type DeletePolicyGroupResponse
- func (*DeletePolicyGroupResponse) Descriptor() ([]byte, []int)
- func (m *DeletePolicyGroupResponse) GetSuccess() bool
- func (*DeletePolicyGroupResponse) ProtoMessage()
- func (m *DeletePolicyGroupResponse) Reset()
- func (m *DeletePolicyGroupResponse) String() string
- func (this *DeletePolicyGroupResponse) Validate() error
- type DeleteRoleRequest
- type DeleteRoleResponse
- type DeleteUserRequest
- type DeleteUserResponse
- type DeleteWorkspaceRequest
- func (*DeleteWorkspaceRequest) Descriptor() ([]byte, []int)
- func (m *DeleteWorkspaceRequest) GetQuery() *service.Query
- func (*DeleteWorkspaceRequest) ProtoMessage()
- func (m *DeleteWorkspaceRequest) Reset()
- func (m *DeleteWorkspaceRequest) String() string
- func (this *DeleteWorkspaceRequest) Validate() error
- type DeleteWorkspaceResponse
- func (*DeleteWorkspaceResponse) Descriptor() ([]byte, []int)
- func (m *DeleteWorkspaceResponse) GetRowsDeleted() int64
- func (*DeleteWorkspaceResponse) ProtoMessage()
- func (m *DeleteWorkspaceResponse) Reset()
- func (m *DeleteWorkspaceResponse) String() string
- func (this *DeleteWorkspaceResponse) Validate() error
- type ExpireACLRequest
- func (*ExpireACLRequest) Descriptor() ([]byte, []int)
- func (m *ExpireACLRequest) GetQuery() *service.Query
- func (m *ExpireACLRequest) GetTimestamp() int64
- func (*ExpireACLRequest) ProtoMessage()
- func (m *ExpireACLRequest) Reset()
- func (m *ExpireACLRequest) String() string
- func (this *ExpireACLRequest) Validate() error
- type ExpireACLResponse
- type ListPolicyGroupsRequest
- type ListPolicyGroupsResponse
- func (*ListPolicyGroupsResponse) Descriptor() ([]byte, []int)
- func (m *ListPolicyGroupsResponse) GetPolicyGroups() []*PolicyGroup
- func (m *ListPolicyGroupsResponse) GetTotal() int32
- func (*ListPolicyGroupsResponse) ProtoMessage()
- func (m *ListPolicyGroupsResponse) Reset()
- func (m *ListPolicyGroupsResponse) String() string
- func (this *ListPolicyGroupsResponse) Validate() error
- type ListUserMetaNamespaceRequest
- type ListUserMetaNamespaceResponse
- func (*ListUserMetaNamespaceResponse) Descriptor() ([]byte, []int)
- func (m *ListUserMetaNamespaceResponse) GetUserMetaNamespace() *UserMetaNamespace
- func (*ListUserMetaNamespaceResponse) ProtoMessage()
- func (m *ListUserMetaNamespaceResponse) Reset()
- func (m *ListUserMetaNamespaceResponse) String() string
- func (this *ListUserMetaNamespaceResponse) Validate() error
- type Matcher
- type NodeType
- type Policy
- func (*Policy) Descriptor() ([]byte, []int)
- func (m *Policy) GetActions() []string
- func (m *Policy) GetConditions() map[string]*PolicyCondition
- func (m *Policy) GetDescription() string
- func (m *Policy) GetEffect() PolicyEffect
- func (m *Policy) GetId() string
- func (m *Policy) GetResources() []string
- func (m *Policy) GetSubjects() []string
- func (policy *Policy) MarshalLogObject(encoder zapcore.ObjectEncoder) error
- func (*Policy) ProtoMessage()
- func (m *Policy) Reset()
- func (m *Policy) String() string
- func (this *Policy) Validate() error
- func (policy *Policy) Zap() zapcore.Field
- func (policy *Policy) ZapId() zapcore.Field
- type PolicyCondition
- func (*PolicyCondition) Descriptor() ([]byte, []int)
- func (m *PolicyCondition) GetJsonOptions() string
- func (m *PolicyCondition) GetType() string
- func (c *PolicyCondition) MarshalJSONPB(marshaler *jsonpb.Marshaler) ([]byte, error)
- func (*PolicyCondition) ProtoMessage()
- func (m *PolicyCondition) Reset()
- func (m *PolicyCondition) String() string
- func (c *PolicyCondition) UnmarshalJSONPB(unmarshaller *jsonpb.Unmarshaler, data []byte) error
- func (this *PolicyCondition) Validate() error
- type PolicyEffect
- type PolicyEngineRequest
- func (*PolicyEngineRequest) Descriptor() ([]byte, []int)
- func (m *PolicyEngineRequest) GetAction() string
- func (m *PolicyEngineRequest) GetContext() map[string]string
- func (m *PolicyEngineRequest) GetResource() string
- func (m *PolicyEngineRequest) GetSubjects() []string
- func (*PolicyEngineRequest) ProtoMessage()
- func (m *PolicyEngineRequest) Reset()
- func (m *PolicyEngineRequest) String() string
- func (this *PolicyEngineRequest) Validate() error
- type PolicyEngineResponse
- func (*PolicyEngineResponse) Descriptor() ([]byte, []int)
- func (m *PolicyEngineResponse) GetAllowed() bool
- func (m *PolicyEngineResponse) GetDefaultDeny() bool
- func (m *PolicyEngineResponse) GetExplicitDeny() bool
- func (*PolicyEngineResponse) ProtoMessage()
- func (m *PolicyEngineResponse) Reset()
- func (m *PolicyEngineResponse) String() string
- func (this *PolicyEngineResponse) Validate() error
- type PolicyEngineService
- func (h *PolicyEngineService) DeletePolicyGroup(ctx context.Context, in *DeletePolicyGroupRequest, ...) error
- func (h *PolicyEngineService) IsAllowed(ctx context.Context, in *PolicyEngineRequest, out *PolicyEngineResponse) error
- func (h *PolicyEngineService) ListPolicyGroups(ctx context.Context, in *ListPolicyGroupsRequest, ...) error
- func (h *PolicyEngineService) StorePolicyGroup(ctx context.Context, in *StorePolicyGroupRequest, ...) error
- type PolicyEngineServiceClient
- type PolicyEngineServiceHandler
- type PolicyGroup
- func (*PolicyGroup) Descriptor() ([]byte, []int)
- func (m *PolicyGroup) GetDescription() string
- func (m *PolicyGroup) GetLastUpdated() int32
- func (m *PolicyGroup) GetName() string
- func (m *PolicyGroup) GetOwnerUuid() string
- func (m *PolicyGroup) GetPolicies() []*Policy
- func (m *PolicyGroup) GetResourceGroup() PolicyResourceGroup
- func (m *PolicyGroup) GetUuid() string
- func (pg *PolicyGroup) MarshalLogObject(encoder zapcore.ObjectEncoder) error
- func (*PolicyGroup) ProtoMessage()
- func (m *PolicyGroup) Reset()
- func (m *PolicyGroup) String() string
- func (this *PolicyGroup) Validate() error
- func (pg *PolicyGroup) Zap() zapcore.Field
- func (pg *PolicyGroup) ZapUuid() zapcore.Field
- type PolicyResourceGroup
- type Role
- func (*Role) Descriptor() ([]byte, []int)
- func (m *Role) GetAutoApplies() []string
- func (m *Role) GetForceOverride() bool
- func (m *Role) GetGroupRole() bool
- func (m *Role) GetIsTeam() bool
- func (m *Role) GetLabel() string
- func (m *Role) GetLastUpdated() int32
- func (m *Role) GetPolicies() []*service.ResourcePolicy
- func (m *Role) GetPoliciesContextEditable() bool
- func (m *Role) GetUserRole() bool
- func (m *Role) GetUuid() string
- func (role *Role) MarshalLogObject(encoder zapcore.ObjectEncoder) error
- func (*Role) ProtoMessage()
- func (m *Role) Reset()
- func (m *Role) String() string
- func (this *Role) Validate() error
- func (role *Role) Zap() zapcore.Field
- func (role *Role) ZapUuid() zapcore.Field
- type RoleService
- func (h *RoleService) CreateRole(ctx context.Context, in *CreateRoleRequest, out *CreateRoleResponse) error
- func (h *RoleService) DeleteRole(ctx context.Context, in *DeleteRoleRequest, out *DeleteRoleResponse) error
- func (h *RoleService) SearchRole(ctx context.Context, stream server.Streamer) error
- func (h *RoleService) StreamRole(ctx context.Context, stream server.Streamer) error
- type RoleServiceClient
- type RoleServiceHandler
- type RoleService_SearchRoleClient
- type RoleService_SearchRoleStream
- type RoleService_StreamRoleClient
- type RoleService_StreamRoleStream
- type RoleSingleQuery
- func (*RoleSingleQuery) Descriptor() ([]byte, []int)
- func (m *RoleSingleQuery) GetHasAutoApply() bool
- func (m *RoleSingleQuery) GetIsGroupRole() bool
- func (m *RoleSingleQuery) GetIsTeam() bool
- func (m *RoleSingleQuery) GetIsUserRole() bool
- func (m *RoleSingleQuery) GetLabel() string
- func (m *RoleSingleQuery) GetNot() bool
- func (m *RoleSingleQuery) GetUuid() []string
- func (m *RoleSingleQuery) Matches(idmObject interface{}) bool
- func (*RoleSingleQuery) ProtoMessage()
- func (m *RoleSingleQuery) Reset()
- func (m *RoleSingleQuery) String() string
- func (this *RoleSingleQuery) Validate() error
- type SearchACLRequest
- type SearchACLResponse
- type SearchRoleRequest
- type SearchRoleResponse
- type SearchUserMetaRequest
- func (*SearchUserMetaRequest) Descriptor() ([]byte, []int)
- func (m *SearchUserMetaRequest) GetMetaUuids() []string
- func (m *SearchUserMetaRequest) GetNamespace() string
- func (m *SearchUserMetaRequest) GetNodeUuids() []string
- func (m *SearchUserMetaRequest) GetResourceQuery() *service.ResourcePolicyQuery
- func (m *SearchUserMetaRequest) GetResourceSubjectOwner() string
- func (*SearchUserMetaRequest) ProtoMessage()
- func (m *SearchUserMetaRequest) Reset()
- func (m *SearchUserMetaRequest) String() string
- func (this *SearchUserMetaRequest) Validate() error
- type SearchUserMetaResponse
- func (*SearchUserMetaResponse) Descriptor() ([]byte, []int)
- func (m *SearchUserMetaResponse) GetUserMeta() *UserMeta
- func (*SearchUserMetaResponse) ProtoMessage()
- func (m *SearchUserMetaResponse) Reset()
- func (m *SearchUserMetaResponse) String() string
- func (this *SearchUserMetaResponse) Validate() error
- type SearchUserRequest
- type SearchUserResponse
- type SearchWorkspaceRequest
- func (*SearchWorkspaceRequest) Descriptor() ([]byte, []int)
- func (m *SearchWorkspaceRequest) GetQuery() *service.Query
- func (*SearchWorkspaceRequest) ProtoMessage()
- func (m *SearchWorkspaceRequest) Reset()
- func (m *SearchWorkspaceRequest) String() string
- func (this *SearchWorkspaceRequest) Validate() error
- type SearchWorkspaceResponse
- func (*SearchWorkspaceResponse) Descriptor() ([]byte, []int)
- func (m *SearchWorkspaceResponse) GetWorkspace() *Workspace
- func (*SearchWorkspaceResponse) ProtoMessage()
- func (m *SearchWorkspaceResponse) Reset()
- func (m *SearchWorkspaceResponse) String() string
- func (this *SearchWorkspaceResponse) Validate() error
- type StorePolicyGroupRequest
- func (*StorePolicyGroupRequest) Descriptor() ([]byte, []int)
- func (m *StorePolicyGroupRequest) GetPolicyGroup() *PolicyGroup
- func (*StorePolicyGroupRequest) ProtoMessage()
- func (m *StorePolicyGroupRequest) Reset()
- func (m *StorePolicyGroupRequest) String() string
- func (this *StorePolicyGroupRequest) Validate() error
- type StorePolicyGroupResponse
- func (*StorePolicyGroupResponse) Descriptor() ([]byte, []int)
- func (m *StorePolicyGroupResponse) GetPolicyGroup() *PolicyGroup
- func (*StorePolicyGroupResponse) ProtoMessage()
- func (m *StorePolicyGroupResponse) Reset()
- func (m *StorePolicyGroupResponse) String() string
- func (this *StorePolicyGroupResponse) Validate() error
- type UpdateUserMetaNamespaceRequest
- func (*UpdateUserMetaNamespaceRequest) Descriptor() ([]byte, []int)
- func (m *UpdateUserMetaNamespaceRequest) GetNamespaces() []*UserMetaNamespace
- func (m *UpdateUserMetaNamespaceRequest) GetOperation() UpdateUserMetaNamespaceRequest_UserMetaNsOp
- func (*UpdateUserMetaNamespaceRequest) ProtoMessage()
- func (m *UpdateUserMetaNamespaceRequest) Reset()
- func (m *UpdateUserMetaNamespaceRequest) String() string
- func (this *UpdateUserMetaNamespaceRequest) Validate() error
- type UpdateUserMetaNamespaceRequest_UserMetaNsOp
- type UpdateUserMetaNamespaceResponse
- func (*UpdateUserMetaNamespaceResponse) Descriptor() ([]byte, []int)
- func (m *UpdateUserMetaNamespaceResponse) GetNamespaces() []*UserMetaNamespace
- func (*UpdateUserMetaNamespaceResponse) ProtoMessage()
- func (m *UpdateUserMetaNamespaceResponse) Reset()
- func (m *UpdateUserMetaNamespaceResponse) String() string
- func (this *UpdateUserMetaNamespaceResponse) Validate() error
- type UpdateUserMetaRequest
- func (*UpdateUserMetaRequest) Descriptor() ([]byte, []int)
- func (m *UpdateUserMetaRequest) GetMetaDatas() []*UserMeta
- func (m *UpdateUserMetaRequest) GetOperation() UpdateUserMetaRequest_UserMetaOp
- func (*UpdateUserMetaRequest) ProtoMessage()
- func (m *UpdateUserMetaRequest) Reset()
- func (m *UpdateUserMetaRequest) String() string
- func (this *UpdateUserMetaRequest) Validate() error
- type UpdateUserMetaRequest_UserMetaOp
- type UpdateUserMetaResponse
- func (*UpdateUserMetaResponse) Descriptor() ([]byte, []int)
- func (m *UpdateUserMetaResponse) GetMetaDatas() []*UserMeta
- func (*UpdateUserMetaResponse) ProtoMessage()
- func (m *UpdateUserMetaResponse) Reset()
- func (m *UpdateUserMetaResponse) String() string
- func (this *UpdateUserMetaResponse) Validate() error
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetAttributes() map[string]string
- func (m *User) GetGroupLabel() string
- func (m *User) GetGroupPath() string
- func (m *User) GetIsGroup() bool
- func (m *User) GetLastConnected() int32
- func (m *User) GetLogin() string
- func (m *User) GetOldPassword() string
- func (m *User) GetPassword() string
- func (m *User) GetPolicies() []*service.ResourcePolicy
- func (m *User) GetPoliciesContextEditable() bool
- func (m *User) GetRoles() []*Role
- func (m *User) GetUuid() string
- func (user *User) MarshalLogObject(encoder zapcore.ObjectEncoder) error
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
- func (this *User) Validate() error
- func (u *User) WithPublicData(ctx context.Context, policiesContextEditable bool) *User
- func (user *User) Zap() zapcore.Field
- func (user *User) ZapLogin() zapcore.Field
- func (user *User) ZapUuid() zapcore.Field
- type UserMeta
- func (*UserMeta) Descriptor() ([]byte, []int)
- func (m *UserMeta) GetJsonValue() string
- func (m *UserMeta) GetNamespace() string
- func (m *UserMeta) GetNodeUuid() string
- func (m *UserMeta) GetPolicies() []*service.ResourcePolicy
- func (m *UserMeta) GetPoliciesContextEditable() bool
- func (m *UserMeta) GetUuid() string
- func (*UserMeta) ProtoMessage()
- func (m *UserMeta) Reset()
- func (m *UserMeta) String() string
- func (this *UserMeta) Validate() error
- type UserMetaNamespace
- func (*UserMetaNamespace) Descriptor() ([]byte, []int)
- func (m *UserMetaNamespace) GetIndexable() bool
- func (m *UserMetaNamespace) GetJsonDefinition() string
- func (m *UserMetaNamespace) GetLabel() string
- func (m *UserMetaNamespace) GetNamespace() string
- func (m *UserMetaNamespace) GetOrder() int32
- func (m *UserMetaNamespace) GetPolicies() []*service.ResourcePolicy
- func (*UserMetaNamespace) ProtoMessage()
- func (m *UserMetaNamespace) Reset()
- func (m *UserMetaNamespace) String() string
- func (this *UserMetaNamespace) Validate() error
- type UserMetaService
- func (h *UserMetaService) ListUserMetaNamespace(ctx context.Context, stream server.Streamer) error
- func (h *UserMetaService) SearchUserMeta(ctx context.Context, stream server.Streamer) error
- func (h *UserMetaService) UpdateUserMeta(ctx context.Context, in *UpdateUserMetaRequest, out *UpdateUserMetaResponse) error
- func (h *UserMetaService) UpdateUserMetaNamespace(ctx context.Context, in *UpdateUserMetaNamespaceRequest, ...) error
- type UserMetaServiceClient
- type UserMetaServiceHandler
- type UserMetaService_ListUserMetaNamespaceClient
- type UserMetaService_ListUserMetaNamespaceStream
- type UserMetaService_SearchUserMetaClient
- type UserMetaService_SearchUserMetaStream
- type UserService
- func (h *UserService) BindUser(ctx context.Context, in *BindUserRequest, out *BindUserResponse) error
- func (h *UserService) CountUser(ctx context.Context, in *SearchUserRequest, out *CountUserResponse) error
- func (h *UserService) CreateUser(ctx context.Context, in *CreateUserRequest, out *CreateUserResponse) error
- func (h *UserService) DeleteUser(ctx context.Context, in *DeleteUserRequest, out *DeleteUserResponse) error
- func (h *UserService) SearchUser(ctx context.Context, stream server.Streamer) error
- func (h *UserService) StreamUser(ctx context.Context, stream server.Streamer) error
- type UserServiceClient
- type UserServiceHandler
- type UserService_SearchUserClient
- type UserService_SearchUserStream
- type UserService_StreamUserClient
- type UserService_StreamUserStream
- type UserSingleQuery
- func (*UserSingleQuery) Descriptor() ([]byte, []int)
- func (m *UserSingleQuery) GetAttributeAnyValue() bool
- func (m *UserSingleQuery) GetAttributeName() string
- func (m *UserSingleQuery) GetAttributeValue() string
- func (m *UserSingleQuery) GetConnectedSince() string
- func (m *UserSingleQuery) GetFullPath() string
- func (m *UserSingleQuery) GetGroupPath() string
- func (m *UserSingleQuery) GetHasProfile() string
- func (m *UserSingleQuery) GetHasRole() string
- func (m *UserSingleQuery) GetLogin() string
- func (m *UserSingleQuery) GetNodeType() NodeType
- func (m *UserSingleQuery) GetNot() bool
- func (m *UserSingleQuery) GetPassword() string
- func (m *UserSingleQuery) GetRecursive() bool
- func (m *UserSingleQuery) GetUuid() string
- func (m *UserSingleQuery) Matches(idmObject interface{}) bool
- func (m *UserSingleQuery) ParseLastConnected() (lt bool, d time.Duration, e error)
- func (*UserSingleQuery) ProtoMessage()
- func (m *UserSingleQuery) Reset()
- func (m *UserSingleQuery) String() string
- func (this *UserSingleQuery) Validate() error
- type Workspace
- func (*Workspace) Descriptor() ([]byte, []int)
- func (m *Workspace) GetAttributes() string
- func (m *Workspace) GetDescription() string
- func (m *Workspace) GetLabel() string
- func (m *Workspace) GetLastUpdated() int32
- func (m *Workspace) GetPolicies() []*service.ResourcePolicy
- func (m *Workspace) GetPoliciesContextEditable() bool
- func (m *Workspace) GetRootNodes() map[string]*tree.Node
- func (m *Workspace) GetRootUUIDs() []string
- func (m *Workspace) GetScope() WorkspaceScope
- func (m *Workspace) GetSlug() string
- func (m *Workspace) GetUUID() string
- func (workspace *Workspace) MarshalLogObject(encoder zapcore.ObjectEncoder) error
- func (*Workspace) ProtoMessage()
- func (m *Workspace) Reset()
- func (m *Workspace) String() string
- func (this *Workspace) Validate() error
- func (workspace *Workspace) Zap() zapcore.Field
- func (workspace *Workspace) ZapUuid() zapcore.Field
- type WorkspaceScope
- type WorkspaceService
- func (h *WorkspaceService) CreateWorkspace(ctx context.Context, in *CreateWorkspaceRequest, out *CreateWorkspaceResponse) error
- func (h *WorkspaceService) DeleteWorkspace(ctx context.Context, in *DeleteWorkspaceRequest, out *DeleteWorkspaceResponse) error
- func (h *WorkspaceService) SearchWorkspace(ctx context.Context, stream server.Streamer) error
- func (h *WorkspaceService) StreamWorkspace(ctx context.Context, stream server.Streamer) error
- type WorkspaceServiceClient
- type WorkspaceServiceHandler
- type WorkspaceService_SearchWorkspaceClient
- type WorkspaceService_SearchWorkspaceStream
- type WorkspaceService_StreamWorkspaceClient
- type WorkspaceService_StreamWorkspaceStream
- type WorkspaceSingleQuery
- func (*WorkspaceSingleQuery) Descriptor() ([]byte, []int)
- func (m *WorkspaceSingleQuery) GetAttributeName() string
- func (m *WorkspaceSingleQuery) GetAttributeValue() string
- func (m *WorkspaceSingleQuery) GetDescription() string
- func (m *WorkspaceSingleQuery) GetHasAttribute() string
- func (m *WorkspaceSingleQuery) GetLabel() string
- func (m *WorkspaceSingleQuery) GetLastUpdated() string
- func (m *WorkspaceSingleQuery) GetNot() bool
- func (m *WorkspaceSingleQuery) GetScope() WorkspaceScope
- func (m *WorkspaceSingleQuery) GetSlug() string
- func (m *WorkspaceSingleQuery) GetUuid() string
- func (m *WorkspaceSingleQuery) Matches(idmObject interface{}) bool
- func (m *WorkspaceSingleQuery) ParseLastUpdated() (lt bool, d time.Duration, e error)
- func (*WorkspaceSingleQuery) ProtoMessage()
- func (m *WorkspaceSingleQuery) Reset()
- func (m *WorkspaceSingleQuery) String() string
- func (this *WorkspaceSingleQuery) Validate() error
Constants ¶
const ( UserAttrPrivatePrefix = "pydio:" UserAttrPassHashed = UserAttrPrivatePrefix + "password_hashed" UserAttrLabelLike = UserAttrPrivatePrefix + "labelLike" UserAttrOrigin = UserAttrPrivatePrefix + "origin" UserAttrDisplayName = "displayName" UserAttrProfile = "profile" UserAttrAvatar = "avatar" UserAttrEmail = "email" UserAttrHasEmail = "hasEmail" UserAttrAuthSource = "AuthSource" )
Variables ¶
var ChangeEventType_name = map[int32]string{
0: "CREATE",
1: "READ",
2: "UPDATE",
3: "DELETE",
4: "LOGIN",
5: "LOGOUT",
}
var ChangeEventType_value = map[string]int32{
"CREATE": 0,
"READ": 1,
"UPDATE": 2,
"DELETE": 3,
"LOGIN": 4,
"LOGOUT": 5,
}
var NodeType_name = map[int32]string{
0: "UNKNOWN",
1: "USER",
2: "GROUP",
}
var NodeType_value = map[string]int32{
"UNKNOWN": 0,
"USER": 1,
"GROUP": 2,
}
var PolicyEffect_name = map[int32]string{
0: "unknown",
1: "deny",
2: "allow",
}
var PolicyEffect_value = map[string]int32{
"unknown": 0,
"deny": 1,
"allow": 2,
}
var PolicyResourceGroup_name = map[int32]string{
0: "rest",
1: "acl",
2: "oidc",
}
var PolicyResourceGroup_value = map[string]int32{
"rest": 0,
"acl": 1,
"oidc": 2,
}
var UpdateUserMetaNamespaceRequest_UserMetaNsOp_name = map[int32]string{
0: "PUT",
1: "DELETE",
}
var UpdateUserMetaNamespaceRequest_UserMetaNsOp_value = map[string]int32{
"PUT": 0,
"DELETE": 1,
}
var UpdateUserMetaRequest_UserMetaOp_name = map[int32]string{
0: "PUT",
1: "DELETE",
}
var UpdateUserMetaRequest_UserMetaOp_value = map[string]int32{
"PUT": 0,
"DELETE": 1,
}
var WorkspaceScope_name = map[int32]string{
0: "ANY",
1: "ADMIN",
2: "ROOM",
3: "LINK",
}
var WorkspaceScope_value = map[string]int32{
"ANY": 0,
"ADMIN": 1,
"ROOM": 2,
"LINK": 3,
}
Functions ¶
func RegisterACLServiceHandler ¶
func RegisterACLServiceHandler(s server.Server, hdlr ACLServiceHandler, opts ...server.HandlerOption)
func RegisterPolicyEngineServiceHandler ¶
func RegisterPolicyEngineServiceHandler(s server.Server, hdlr PolicyEngineServiceHandler, opts ...server.HandlerOption)
func RegisterRoleServiceHandler ¶
func RegisterRoleServiceHandler(s server.Server, hdlr RoleServiceHandler, opts ...server.HandlerOption)
func RegisterUserMetaServiceHandler ¶
func RegisterUserMetaServiceHandler(s server.Server, hdlr UserMetaServiceHandler, opts ...server.HandlerOption)
func RegisterUserServiceHandler ¶
func RegisterUserServiceHandler(s server.Server, hdlr UserServiceHandler, opts ...server.HandlerOption)
func RegisterWorkspaceServiceHandler ¶
func RegisterWorkspaceServiceHandler(s server.Server, hdlr WorkspaceServiceHandler, opts ...server.HandlerOption)
Types ¶
type ACL ¶
type ACL struct { // Unique ID of this ACL ID string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"` // Action on which this ACL provides control Action *ACLAction `protobuf:"bytes,2,opt,name=Action" json:"Action,omitempty"` // Associated Role RoleID string `protobuf:"bytes,3,opt,name=RoleID" json:"RoleID,omitempty"` // Associated Workspace WorkspaceID string `protobuf:"bytes,4,opt,name=WorkspaceID" json:"WorkspaceID,omitempty"` // Associated Node NodeID string `protobuf:"bytes,5,opt,name=NodeID" json:"NodeID,omitempty"` }
ACL are the basic flags that can be put anywhere in the tree to provide some specific rights to a given role. The context of how they apply can be fine-tuned by workspace.
func (*ACL) Descriptor ¶
func (*ACL) GetWorkspaceID ¶
func (*ACL) MarshalLogObject ¶ added in v1.5.0
func (acl *ACL) MarshalLogObject(encoder zapcore.ObjectEncoder) error
MarshalLogObject implements custom marshalling for logs
func (*ACL) ProtoMessage ¶
func (*ACL) ProtoMessage()
type ACLAction ¶
type ACLAction struct { Name string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"` Value string `protobuf:"bytes,2,opt,name=Value" json:"Value,omitempty"` }
func (*ACLAction) Descriptor ¶
func (*ACLAction) MarshalLogObject ¶ added in v1.5.0
func (action *ACLAction) MarshalLogObject(encoder zapcore.ObjectEncoder) error
func (*ACLAction) ProtoMessage ¶
func (*ACLAction) ProtoMessage()
type ACLService ¶
type ACLService struct {
ACLServiceHandler
}
func (*ACLService) CreateACL ¶
func (h *ACLService) CreateACL(ctx context.Context, in *CreateACLRequest, out *CreateACLResponse) error
func (*ACLService) DeleteACL ¶
func (h *ACLService) DeleteACL(ctx context.Context, in *DeleteACLRequest, out *DeleteACLResponse) error
func (*ACLService) ExpireACL ¶
func (h *ACLService) ExpireACL(ctx context.Context, in *ExpireACLRequest, out *ExpireACLResponse) error
type ACLServiceClient ¶
type ACLServiceClient interface { CreateACL(ctx context.Context, in *CreateACLRequest, opts ...client.CallOption) (*CreateACLResponse, error) ExpireACL(ctx context.Context, in *ExpireACLRequest, opts ...client.CallOption) (*ExpireACLResponse, error) DeleteACL(ctx context.Context, in *DeleteACLRequest, opts ...client.CallOption) (*DeleteACLResponse, error) SearchACL(ctx context.Context, in *SearchACLRequest, opts ...client.CallOption) (ACLService_SearchACLClient, error) StreamACL(ctx context.Context, opts ...client.CallOption) (ACLService_StreamACLClient, error) }
func NewACLServiceClient ¶
func NewACLServiceClient(serviceName string, c client.Client) ACLServiceClient
type ACLServiceHandler ¶
type ACLServiceHandler interface { CreateACL(context.Context, *CreateACLRequest, *CreateACLResponse) error ExpireACL(context.Context, *ExpireACLRequest, *ExpireACLResponse) error DeleteACL(context.Context, *DeleteACLRequest, *DeleteACLResponse) error SearchACL(context.Context, *SearchACLRequest, ACLService_SearchACLStream) error StreamACL(context.Context, ACLService_StreamACLStream) error }
type ACLService_SearchACLClient ¶
type ACLService_SearchACLClient interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Recv() (*SearchACLResponse, error) }
type ACLService_SearchACLStream ¶
type ACLService_SearchACLStream interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Send(*SearchACLResponse) error }
type ACLService_StreamACLClient ¶
type ACLService_StreamACLClient interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Send(*SearchACLRequest) error Recv() (*SearchACLResponse, error) }
type ACLService_StreamACLStream ¶
type ACLService_StreamACLStream interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Send(*SearchACLResponse) error Recv() (*SearchACLRequest, error) }
type ACLSingleQuery ¶
type ACLSingleQuery struct { Actions []*ACLAction `protobuf:"bytes,1,rep,name=Actions" json:"Actions,omitempty"` RoleIDs []string `protobuf:"bytes,2,rep,name=RoleIDs" json:"RoleIDs,omitempty"` WorkspaceIDs []string `protobuf:"bytes,3,rep,name=WorkspaceIDs" json:"WorkspaceIDs,omitempty"` NodeIDs []string `protobuf:"bytes,4,rep,name=NodeIDs" json:"NodeIDs,omitempty"` Not bool `protobuf:"varint,5,opt,name=not" json:"not,omitempty"` }
func (*ACLSingleQuery) Descriptor ¶
func (*ACLSingleQuery) Descriptor() ([]byte, []int)
func (*ACLSingleQuery) GetActions ¶
func (m *ACLSingleQuery) GetActions() []*ACLAction
func (*ACLSingleQuery) GetNodeIDs ¶
func (m *ACLSingleQuery) GetNodeIDs() []string
func (*ACLSingleQuery) GetNot ¶
func (m *ACLSingleQuery) GetNot() bool
func (*ACLSingleQuery) GetRoleIDs ¶
func (m *ACLSingleQuery) GetRoleIDs() []string
func (*ACLSingleQuery) GetWorkspaceIDs ¶
func (m *ACLSingleQuery) GetWorkspaceIDs() []string
func (*ACLSingleQuery) Matches ¶
func (m *ACLSingleQuery) Matches(idmObject interface{}) bool
func (*ACLSingleQuery) ProtoMessage ¶
func (*ACLSingleQuery) ProtoMessage()
func (*ACLSingleQuery) Reset ¶
func (m *ACLSingleQuery) Reset()
func (*ACLSingleQuery) String ¶
func (m *ACLSingleQuery) String() string
func (*ACLSingleQuery) Validate ¶ added in v1.6.0
func (this *ACLSingleQuery) Validate() error
type BindUserRequest ¶
type BindUserRequest struct { UserName string `protobuf:"bytes,1,opt,name=userName" json:"userName,omitempty"` Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"` }
func (*BindUserRequest) Descriptor ¶
func (*BindUserRequest) Descriptor() ([]byte, []int)
func (*BindUserRequest) GetPassword ¶
func (m *BindUserRequest) GetPassword() string
func (*BindUserRequest) GetUserName ¶
func (m *BindUserRequest) GetUserName() string
func (*BindUserRequest) ProtoMessage ¶
func (*BindUserRequest) ProtoMessage()
func (*BindUserRequest) Reset ¶
func (m *BindUserRequest) Reset()
func (*BindUserRequest) String ¶
func (m *BindUserRequest) String() string
func (*BindUserRequest) Validate ¶ added in v1.6.0
func (this *BindUserRequest) Validate() error
type BindUserResponse ¶
type BindUserResponse struct {
User *User `protobuf:"bytes,1,opt,name=User" json:"User,omitempty"`
}
func (*BindUserResponse) Descriptor ¶
func (*BindUserResponse) Descriptor() ([]byte, []int)
func (*BindUserResponse) GetUser ¶
func (m *BindUserResponse) GetUser() *User
func (*BindUserResponse) ProtoMessage ¶
func (*BindUserResponse) ProtoMessage()
func (*BindUserResponse) Reset ¶
func (m *BindUserResponse) Reset()
func (*BindUserResponse) String ¶
func (m *BindUserResponse) String() string
func (*BindUserResponse) Validate ¶ added in v1.6.0
func (this *BindUserResponse) Validate() error
type ChangeEvent ¶
type ChangeEvent struct { JsonType string `protobuf:"bytes,1,opt,name=jsonType,json=@type" json:"jsonType,omitempty"` Type ChangeEventType `protobuf:"varint,2,opt,name=Type,enum=idm.ChangeEventType" json:"Type,omitempty"` User *User `protobuf:"bytes,3,opt,name=User" json:"User,omitempty"` Role *Role `protobuf:"bytes,4,opt,name=Role" json:"Role,omitempty"` Workspace *Workspace `protobuf:"bytes,5,opt,name=Workspace" json:"Workspace,omitempty"` Acl *ACL `protobuf:"bytes,6,opt,name=Acl" json:"Acl,omitempty"` MetaNamespace *UserMetaNamespace `protobuf:"bytes,8,opt,name=MetaNamespace" json:"MetaNamespace,omitempty"` Attributes map[string]string `` /* 140-byte string literal not displayed */ }
Global Event message for IDM
func (*ChangeEvent) Descriptor ¶
func (*ChangeEvent) Descriptor() ([]byte, []int)
func (*ChangeEvent) GetAcl ¶
func (m *ChangeEvent) GetAcl() *ACL
func (*ChangeEvent) GetAttributes ¶
func (m *ChangeEvent) GetAttributes() map[string]string
func (*ChangeEvent) GetJsonType ¶
func (m *ChangeEvent) GetJsonType() string
func (*ChangeEvent) GetMetaNamespace ¶ added in v1.5.0
func (m *ChangeEvent) GetMetaNamespace() *UserMetaNamespace
func (*ChangeEvent) GetRole ¶
func (m *ChangeEvent) GetRole() *Role
func (*ChangeEvent) GetType ¶
func (m *ChangeEvent) GetType() ChangeEventType
func (*ChangeEvent) GetUser ¶
func (m *ChangeEvent) GetUser() *User
func (*ChangeEvent) GetWorkspace ¶
func (m *ChangeEvent) GetWorkspace() *Workspace
func (*ChangeEvent) ProtoMessage ¶
func (*ChangeEvent) ProtoMessage()
func (*ChangeEvent) Reset ¶
func (m *ChangeEvent) Reset()
func (*ChangeEvent) String ¶
func (m *ChangeEvent) String() string
func (*ChangeEvent) Validate ¶ added in v1.6.0
func (this *ChangeEvent) Validate() error
type ChangeEventType ¶
type ChangeEventType int32
Message Types for ChangeEvent
const ( ChangeEventType_CREATE ChangeEventType = 0 ChangeEventType_READ ChangeEventType = 1 ChangeEventType_UPDATE ChangeEventType = 2 ChangeEventType_DELETE ChangeEventType = 3 ChangeEventType_LOGIN ChangeEventType = 4 ChangeEventType_LOGOUT ChangeEventType = 5 )
func (ChangeEventType) EnumDescriptor ¶
func (ChangeEventType) EnumDescriptor() ([]byte, []int)
func (ChangeEventType) String ¶
func (x ChangeEventType) String() string
type CountUserResponse ¶
type CountUserResponse struct {
Count int32 `protobuf:"varint,1,opt,name=Count" json:"Count,omitempty"`
}
func (*CountUserResponse) Descriptor ¶
func (*CountUserResponse) Descriptor() ([]byte, []int)
func (*CountUserResponse) GetCount ¶
func (m *CountUserResponse) GetCount() int32
func (*CountUserResponse) ProtoMessage ¶
func (*CountUserResponse) ProtoMessage()
func (*CountUserResponse) Reset ¶
func (m *CountUserResponse) Reset()
func (*CountUserResponse) String ¶
func (m *CountUserResponse) String() string
func (*CountUserResponse) Validate ¶ added in v1.6.0
func (this *CountUserResponse) Validate() error
type CreateACLRequest ¶
type CreateACLRequest struct { ACL *ACL `protobuf:"bytes,1,opt,name=ACL" json:"ACL,omitempty"` ExpiresIn int64 `protobuf:"varint,2,opt,name=ExpiresIn" json:"ExpiresIn,omitempty"` }
*****************************************************************************
ACL Messages structure
*****************************************************************************
func (*CreateACLRequest) Descriptor ¶
func (*CreateACLRequest) Descriptor() ([]byte, []int)
func (*CreateACLRequest) GetACL ¶
func (m *CreateACLRequest) GetACL() *ACL
func (*CreateACLRequest) GetExpiresIn ¶
func (m *CreateACLRequest) GetExpiresIn() int64
func (*CreateACLRequest) ProtoMessage ¶
func (*CreateACLRequest) ProtoMessage()
func (*CreateACLRequest) Reset ¶
func (m *CreateACLRequest) Reset()
func (*CreateACLRequest) String ¶
func (m *CreateACLRequest) String() string
func (*CreateACLRequest) Validate ¶ added in v1.6.0
func (this *CreateACLRequest) Validate() error
type CreateACLResponse ¶
type CreateACLResponse struct {
ACL *ACL `protobuf:"bytes,1,opt,name=ACL" json:"ACL,omitempty"`
}
func (*CreateACLResponse) Descriptor ¶
func (*CreateACLResponse) Descriptor() ([]byte, []int)
func (*CreateACLResponse) GetACL ¶
func (m *CreateACLResponse) GetACL() *ACL
func (*CreateACLResponse) ProtoMessage ¶
func (*CreateACLResponse) ProtoMessage()
func (*CreateACLResponse) Reset ¶
func (m *CreateACLResponse) Reset()
func (*CreateACLResponse) String ¶
func (m *CreateACLResponse) String() string
func (*CreateACLResponse) Validate ¶ added in v1.6.0
func (this *CreateACLResponse) Validate() error
type CreateRoleRequest ¶
type CreateRoleRequest struct {
Role *Role `protobuf:"bytes,1,opt,name=Role" json:"Role,omitempty"`
}
*****************************************************************************
Messages structure
*****************************************************************************
func (*CreateRoleRequest) Descriptor ¶
func (*CreateRoleRequest) Descriptor() ([]byte, []int)
func (*CreateRoleRequest) GetRole ¶
func (m *CreateRoleRequest) GetRole() *Role
func (*CreateRoleRequest) ProtoMessage ¶
func (*CreateRoleRequest) ProtoMessage()
func (*CreateRoleRequest) Reset ¶
func (m *CreateRoleRequest) Reset()
func (*CreateRoleRequest) String ¶
func (m *CreateRoleRequest) String() string
func (*CreateRoleRequest) Validate ¶ added in v1.6.0
func (this *CreateRoleRequest) Validate() error
type CreateRoleResponse ¶
type CreateRoleResponse struct {
Role *Role `protobuf:"bytes,1,opt,name=Role" json:"Role,omitempty"`
}
func (*CreateRoleResponse) Descriptor ¶
func (*CreateRoleResponse) Descriptor() ([]byte, []int)
func (*CreateRoleResponse) GetRole ¶
func (m *CreateRoleResponse) GetRole() *Role
func (*CreateRoleResponse) ProtoMessage ¶
func (*CreateRoleResponse) ProtoMessage()
func (*CreateRoleResponse) Reset ¶
func (m *CreateRoleResponse) Reset()
func (*CreateRoleResponse) String ¶
func (m *CreateRoleResponse) String() string
func (*CreateRoleResponse) Validate ¶ added in v1.6.0
func (this *CreateRoleResponse) Validate() error
type CreateUserRequest ¶
type CreateUserRequest struct {
User *User `protobuf:"bytes,1,opt,name=User" json:"User,omitempty"`
}
*****************************************************************************
Messages structure
*****************************************************************************
func (*CreateUserRequest) Descriptor ¶
func (*CreateUserRequest) Descriptor() ([]byte, []int)
func (*CreateUserRequest) GetUser ¶
func (m *CreateUserRequest) GetUser() *User
func (*CreateUserRequest) ProtoMessage ¶
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) Reset ¶
func (m *CreateUserRequest) Reset()
func (*CreateUserRequest) String ¶
func (m *CreateUserRequest) String() string
func (*CreateUserRequest) Validate ¶ added in v1.6.0
func (this *CreateUserRequest) Validate() error
type CreateUserResponse ¶
type CreateUserResponse struct {
User *User `protobuf:"bytes,1,opt,name=User" json:"User,omitempty"`
}
func (*CreateUserResponse) Descriptor ¶
func (*CreateUserResponse) Descriptor() ([]byte, []int)
func (*CreateUserResponse) GetUser ¶
func (m *CreateUserResponse) GetUser() *User
func (*CreateUserResponse) ProtoMessage ¶
func (*CreateUserResponse) ProtoMessage()
func (*CreateUserResponse) Reset ¶
func (m *CreateUserResponse) Reset()
func (*CreateUserResponse) String ¶
func (m *CreateUserResponse) String() string
func (*CreateUserResponse) Validate ¶ added in v1.6.0
func (this *CreateUserResponse) Validate() error
type CreateWorkspaceRequest ¶
type CreateWorkspaceRequest struct {
Workspace *Workspace `protobuf:"bytes,1,opt,name=Workspace" json:"Workspace,omitempty"`
}
*****************************************************************************
Messages structure
*****************************************************************************
func (*CreateWorkspaceRequest) Descriptor ¶
func (*CreateWorkspaceRequest) Descriptor() ([]byte, []int)
func (*CreateWorkspaceRequest) GetWorkspace ¶
func (m *CreateWorkspaceRequest) GetWorkspace() *Workspace
func (*CreateWorkspaceRequest) ProtoMessage ¶
func (*CreateWorkspaceRequest) ProtoMessage()
func (*CreateWorkspaceRequest) Reset ¶
func (m *CreateWorkspaceRequest) Reset()
func (*CreateWorkspaceRequest) String ¶
func (m *CreateWorkspaceRequest) String() string
func (*CreateWorkspaceRequest) Validate ¶ added in v1.6.0
func (this *CreateWorkspaceRequest) Validate() error
type CreateWorkspaceResponse ¶
type CreateWorkspaceResponse struct {
Workspace *Workspace `protobuf:"bytes,1,opt,name=Workspace" json:"Workspace,omitempty"`
}
func (*CreateWorkspaceResponse) Descriptor ¶
func (*CreateWorkspaceResponse) Descriptor() ([]byte, []int)
func (*CreateWorkspaceResponse) GetWorkspace ¶
func (m *CreateWorkspaceResponse) GetWorkspace() *Workspace
func (*CreateWorkspaceResponse) ProtoMessage ¶
func (*CreateWorkspaceResponse) ProtoMessage()
func (*CreateWorkspaceResponse) Reset ¶
func (m *CreateWorkspaceResponse) Reset()
func (*CreateWorkspaceResponse) String ¶
func (m *CreateWorkspaceResponse) String() string
func (*CreateWorkspaceResponse) Validate ¶ added in v1.6.0
func (this *CreateWorkspaceResponse) Validate() error
type DeleteACLRequest ¶
type DeleteACLRequest struct {
Query *service.Query `protobuf:"bytes,1,opt,name=Query" json:"Query,omitempty"`
}
func (*DeleteACLRequest) Descriptor ¶
func (*DeleteACLRequest) Descriptor() ([]byte, []int)
func (*DeleteACLRequest) GetQuery ¶
func (m *DeleteACLRequest) GetQuery() *service.Query
func (*DeleteACLRequest) ProtoMessage ¶
func (*DeleteACLRequest) ProtoMessage()
func (*DeleteACLRequest) Reset ¶
func (m *DeleteACLRequest) Reset()
func (*DeleteACLRequest) String ¶
func (m *DeleteACLRequest) String() string
func (*DeleteACLRequest) Validate ¶ added in v1.6.0
func (this *DeleteACLRequest) Validate() error
type DeleteACLResponse ¶
type DeleteACLResponse struct {
RowsDeleted int64 `protobuf:"varint,1,opt,name=RowsDeleted" json:"RowsDeleted,omitempty"`
}
func (*DeleteACLResponse) Descriptor ¶
func (*DeleteACLResponse) Descriptor() ([]byte, []int)
func (*DeleteACLResponse) GetRowsDeleted ¶
func (m *DeleteACLResponse) GetRowsDeleted() int64
func (*DeleteACLResponse) ProtoMessage ¶
func (*DeleteACLResponse) ProtoMessage()
func (*DeleteACLResponse) Reset ¶
func (m *DeleteACLResponse) Reset()
func (*DeleteACLResponse) String ¶
func (m *DeleteACLResponse) String() string
func (*DeleteACLResponse) Validate ¶ added in v1.6.0
func (this *DeleteACLResponse) Validate() error
type DeletePolicyGroupRequest ¶
type DeletePolicyGroupRequest struct {
PolicyGroup *PolicyGroup `protobuf:"bytes,1,opt,name=PolicyGroup" json:"PolicyGroup,omitempty"`
}
func (*DeletePolicyGroupRequest) Descriptor ¶
func (*DeletePolicyGroupRequest) Descriptor() ([]byte, []int)
func (*DeletePolicyGroupRequest) GetPolicyGroup ¶
func (m *DeletePolicyGroupRequest) GetPolicyGroup() *PolicyGroup
func (*DeletePolicyGroupRequest) ProtoMessage ¶
func (*DeletePolicyGroupRequest) ProtoMessage()
func (*DeletePolicyGroupRequest) Reset ¶
func (m *DeletePolicyGroupRequest) Reset()
func (*DeletePolicyGroupRequest) String ¶
func (m *DeletePolicyGroupRequest) String() string
func (*DeletePolicyGroupRequest) Validate ¶ added in v1.6.0
func (this *DeletePolicyGroupRequest) Validate() error
type DeletePolicyGroupResponse ¶
type DeletePolicyGroupResponse struct {
Success bool `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"`
}
func (*DeletePolicyGroupResponse) Descriptor ¶
func (*DeletePolicyGroupResponse) Descriptor() ([]byte, []int)
func (*DeletePolicyGroupResponse) GetSuccess ¶
func (m *DeletePolicyGroupResponse) GetSuccess() bool
func (*DeletePolicyGroupResponse) ProtoMessage ¶
func (*DeletePolicyGroupResponse) ProtoMessage()
func (*DeletePolicyGroupResponse) Reset ¶
func (m *DeletePolicyGroupResponse) Reset()
func (*DeletePolicyGroupResponse) String ¶
func (m *DeletePolicyGroupResponse) String() string
func (*DeletePolicyGroupResponse) Validate ¶ added in v1.6.0
func (this *DeletePolicyGroupResponse) Validate() error
type DeleteRoleRequest ¶
type DeleteRoleRequest struct {
Query *service.Query `protobuf:"bytes,1,opt,name=Query" json:"Query,omitempty"`
}
func (*DeleteRoleRequest) Descriptor ¶
func (*DeleteRoleRequest) Descriptor() ([]byte, []int)
func (*DeleteRoleRequest) GetQuery ¶
func (m *DeleteRoleRequest) GetQuery() *service.Query
func (*DeleteRoleRequest) ProtoMessage ¶
func (*DeleteRoleRequest) ProtoMessage()
func (*DeleteRoleRequest) Reset ¶
func (m *DeleteRoleRequest) Reset()
func (*DeleteRoleRequest) String ¶
func (m *DeleteRoleRequest) String() string
func (*DeleteRoleRequest) Validate ¶ added in v1.6.0
func (this *DeleteRoleRequest) Validate() error
type DeleteRoleResponse ¶
type DeleteRoleResponse struct {
RowsDeleted int64 `protobuf:"varint,1,opt,name=RowsDeleted" json:"RowsDeleted,omitempty"`
}
func (*DeleteRoleResponse) Descriptor ¶
func (*DeleteRoleResponse) Descriptor() ([]byte, []int)
func (*DeleteRoleResponse) GetRowsDeleted ¶
func (m *DeleteRoleResponse) GetRowsDeleted() int64
func (*DeleteRoleResponse) ProtoMessage ¶
func (*DeleteRoleResponse) ProtoMessage()
func (*DeleteRoleResponse) Reset ¶
func (m *DeleteRoleResponse) Reset()
func (*DeleteRoleResponse) String ¶
func (m *DeleteRoleResponse) String() string
func (*DeleteRoleResponse) Validate ¶ added in v1.6.0
func (this *DeleteRoleResponse) Validate() error
type DeleteUserRequest ¶
type DeleteUserRequest struct {
Query *service.Query `protobuf:"bytes,1,opt,name=Query" json:"Query,omitempty"`
}
func (*DeleteUserRequest) Descriptor ¶
func (*DeleteUserRequest) Descriptor() ([]byte, []int)
func (*DeleteUserRequest) GetQuery ¶
func (m *DeleteUserRequest) GetQuery() *service.Query
func (*DeleteUserRequest) ProtoMessage ¶
func (*DeleteUserRequest) ProtoMessage()
func (*DeleteUserRequest) Reset ¶
func (m *DeleteUserRequest) Reset()
func (*DeleteUserRequest) String ¶
func (m *DeleteUserRequest) String() string
func (*DeleteUserRequest) Validate ¶ added in v1.6.0
func (this *DeleteUserRequest) Validate() error
type DeleteUserResponse ¶
type DeleteUserResponse struct {
RowsDeleted int64 `protobuf:"varint,1,opt,name=RowsDeleted" json:"RowsDeleted,omitempty"`
}
func (*DeleteUserResponse) Descriptor ¶
func (*DeleteUserResponse) Descriptor() ([]byte, []int)
func (*DeleteUserResponse) GetRowsDeleted ¶
func (m *DeleteUserResponse) GetRowsDeleted() int64
func (*DeleteUserResponse) ProtoMessage ¶
func (*DeleteUserResponse) ProtoMessage()
func (*DeleteUserResponse) Reset ¶
func (m *DeleteUserResponse) Reset()
func (*DeleteUserResponse) String ¶
func (m *DeleteUserResponse) String() string
func (*DeleteUserResponse) Validate ¶ added in v1.6.0
func (this *DeleteUserResponse) Validate() error
type DeleteWorkspaceRequest ¶
type DeleteWorkspaceRequest struct {
Query *service.Query `protobuf:"bytes,1,opt,name=Query" json:"Query,omitempty"`
}
func (*DeleteWorkspaceRequest) Descriptor ¶
func (*DeleteWorkspaceRequest) Descriptor() ([]byte, []int)
func (*DeleteWorkspaceRequest) GetQuery ¶
func (m *DeleteWorkspaceRequest) GetQuery() *service.Query
func (*DeleteWorkspaceRequest) ProtoMessage ¶
func (*DeleteWorkspaceRequest) ProtoMessage()
func (*DeleteWorkspaceRequest) Reset ¶
func (m *DeleteWorkspaceRequest) Reset()
func (*DeleteWorkspaceRequest) String ¶
func (m *DeleteWorkspaceRequest) String() string
func (*DeleteWorkspaceRequest) Validate ¶ added in v1.6.0
func (this *DeleteWorkspaceRequest) Validate() error
type DeleteWorkspaceResponse ¶
type DeleteWorkspaceResponse struct {
RowsDeleted int64 `protobuf:"varint,1,opt,name=RowsDeleted" json:"RowsDeleted,omitempty"`
}
func (*DeleteWorkspaceResponse) Descriptor ¶
func (*DeleteWorkspaceResponse) Descriptor() ([]byte, []int)
func (*DeleteWorkspaceResponse) GetRowsDeleted ¶
func (m *DeleteWorkspaceResponse) GetRowsDeleted() int64
func (*DeleteWorkspaceResponse) ProtoMessage ¶
func (*DeleteWorkspaceResponse) ProtoMessage()
func (*DeleteWorkspaceResponse) Reset ¶
func (m *DeleteWorkspaceResponse) Reset()
func (*DeleteWorkspaceResponse) String ¶
func (m *DeleteWorkspaceResponse) String() string
func (*DeleteWorkspaceResponse) Validate ¶ added in v1.6.0
func (this *DeleteWorkspaceResponse) Validate() error
type ExpireACLRequest ¶
type ExpireACLRequest struct { Query *service.Query `protobuf:"bytes,1,opt,name=Query" json:"Query,omitempty"` Timestamp int64 `protobuf:"varint,2,opt,name=Timestamp" json:"Timestamp,omitempty"` }
func (*ExpireACLRequest) Descriptor ¶
func (*ExpireACLRequest) Descriptor() ([]byte, []int)
func (*ExpireACLRequest) GetQuery ¶
func (m *ExpireACLRequest) GetQuery() *service.Query
func (*ExpireACLRequest) GetTimestamp ¶
func (m *ExpireACLRequest) GetTimestamp() int64
func (*ExpireACLRequest) ProtoMessage ¶
func (*ExpireACLRequest) ProtoMessage()
func (*ExpireACLRequest) Reset ¶
func (m *ExpireACLRequest) Reset()
func (*ExpireACLRequest) String ¶
func (m *ExpireACLRequest) String() string
func (*ExpireACLRequest) Validate ¶
func (this *ExpireACLRequest) Validate() error
type ExpireACLResponse ¶
type ExpireACLResponse struct {
Rows int64 `protobuf:"varint,1,opt,name=Rows" json:"Rows,omitempty"`
}
func (*ExpireACLResponse) Descriptor ¶
func (*ExpireACLResponse) Descriptor() ([]byte, []int)
func (*ExpireACLResponse) GetRows ¶
func (m *ExpireACLResponse) GetRows() int64
func (*ExpireACLResponse) ProtoMessage ¶
func (*ExpireACLResponse) ProtoMessage()
func (*ExpireACLResponse) Reset ¶
func (m *ExpireACLResponse) Reset()
func (*ExpireACLResponse) String ¶
func (m *ExpireACLResponse) String() string
func (*ExpireACLResponse) Validate ¶
func (this *ExpireACLResponse) Validate() error
type ListPolicyGroupsRequest ¶
type ListPolicyGroupsRequest struct { }
func (*ListPolicyGroupsRequest) Descriptor ¶
func (*ListPolicyGroupsRequest) Descriptor() ([]byte, []int)
func (*ListPolicyGroupsRequest) ProtoMessage ¶
func (*ListPolicyGroupsRequest) ProtoMessage()
func (*ListPolicyGroupsRequest) Reset ¶
func (m *ListPolicyGroupsRequest) Reset()
func (*ListPolicyGroupsRequest) String ¶
func (m *ListPolicyGroupsRequest) String() string
func (*ListPolicyGroupsRequest) Validate ¶ added in v1.6.0
func (this *ListPolicyGroupsRequest) Validate() error
type ListPolicyGroupsResponse ¶
type ListPolicyGroupsResponse struct { PolicyGroups []*PolicyGroup `protobuf:"bytes,1,rep,name=PolicyGroups" json:"PolicyGroups,omitempty"` Total int32 `protobuf:"varint,2,opt,name=Total" json:"Total,omitempty"` }
func (*ListPolicyGroupsResponse) Descriptor ¶
func (*ListPolicyGroupsResponse) Descriptor() ([]byte, []int)
func (*ListPolicyGroupsResponse) GetPolicyGroups ¶
func (m *ListPolicyGroupsResponse) GetPolicyGroups() []*PolicyGroup
func (*ListPolicyGroupsResponse) GetTotal ¶
func (m *ListPolicyGroupsResponse) GetTotal() int32
func (*ListPolicyGroupsResponse) ProtoMessage ¶
func (*ListPolicyGroupsResponse) ProtoMessage()
func (*ListPolicyGroupsResponse) Reset ¶
func (m *ListPolicyGroupsResponse) Reset()
func (*ListPolicyGroupsResponse) String ¶
func (m *ListPolicyGroupsResponse) String() string
func (*ListPolicyGroupsResponse) Validate ¶ added in v1.6.0
func (this *ListPolicyGroupsResponse) Validate() error
type ListUserMetaNamespaceRequest ¶
type ListUserMetaNamespaceRequest struct { }
List All MetaNamespaces
func (*ListUserMetaNamespaceRequest) Descriptor ¶
func (*ListUserMetaNamespaceRequest) Descriptor() ([]byte, []int)
func (*ListUserMetaNamespaceRequest) ProtoMessage ¶
func (*ListUserMetaNamespaceRequest) ProtoMessage()
func (*ListUserMetaNamespaceRequest) Reset ¶
func (m *ListUserMetaNamespaceRequest) Reset()
func (*ListUserMetaNamespaceRequest) String ¶
func (m *ListUserMetaNamespaceRequest) String() string
func (*ListUserMetaNamespaceRequest) Validate ¶ added in v1.6.0
func (this *ListUserMetaNamespaceRequest) Validate() error
type ListUserMetaNamespaceResponse ¶
type ListUserMetaNamespaceResponse struct {
UserMetaNamespace *UserMetaNamespace `protobuf:"bytes,1,opt,name=UserMetaNamespace" json:"UserMetaNamespace,omitempty"`
}
Collection of results
func (*ListUserMetaNamespaceResponse) Descriptor ¶
func (*ListUserMetaNamespaceResponse) Descriptor() ([]byte, []int)
func (*ListUserMetaNamespaceResponse) GetUserMetaNamespace ¶
func (m *ListUserMetaNamespaceResponse) GetUserMetaNamespace() *UserMetaNamespace
func (*ListUserMetaNamespaceResponse) ProtoMessage ¶
func (*ListUserMetaNamespaceResponse) ProtoMessage()
func (*ListUserMetaNamespaceResponse) Reset ¶
func (m *ListUserMetaNamespaceResponse) Reset()
func (*ListUserMetaNamespaceResponse) String ¶
func (m *ListUserMetaNamespaceResponse) String() string
func (*ListUserMetaNamespaceResponse) Validate ¶ added in v1.6.0
func (this *ListUserMetaNamespaceResponse) Validate() error
type Matcher ¶
type Matcher interface { // Matches tries to apply a *SingleQuery on an existing object Matches(idmObject interface{}) bool }
Matcher interface provides a way to filter idm objects with standard XXXSingleQueries.
type Policy ¶
type Policy struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"` Subjects []string `protobuf:"bytes,3,rep,name=subjects" json:"subjects,omitempty"` Resources []string `protobuf:"bytes,4,rep,name=resources" json:"resources,omitempty"` Actions []string `protobuf:"bytes,5,rep,name=actions" json:"actions,omitempty"` Effect PolicyEffect `protobuf:"varint,6,opt,name=effect,enum=idm.PolicyEffect" json:"effect,omitempty"` Conditions map[string]*PolicyCondition `` /* 140-byte string literal not displayed */ }
func (*Policy) Descriptor ¶
func (*Policy) GetActions ¶
func (*Policy) GetConditions ¶
func (m *Policy) GetConditions() map[string]*PolicyCondition
func (*Policy) GetDescription ¶
func (*Policy) GetEffect ¶
func (m *Policy) GetEffect() PolicyEffect
func (*Policy) GetResources ¶
func (*Policy) GetSubjects ¶
func (*Policy) MarshalLogObject ¶ added in v1.5.0
func (policy *Policy) MarshalLogObject(encoder zapcore.ObjectEncoder) error
MarshalLogObject implements custom marshalling for logs
func (*Policy) ProtoMessage ¶
func (*Policy) ProtoMessage()
type PolicyCondition ¶
type PolicyCondition struct { Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"` JsonOptions string `protobuf:"bytes,2,opt,name=jsonOptions" json:"jsonOptions,omitempty"` }
func (*PolicyCondition) Descriptor ¶
func (*PolicyCondition) Descriptor() ([]byte, []int)
func (*PolicyCondition) GetJsonOptions ¶
func (m *PolicyCondition) GetJsonOptions() string
func (*PolicyCondition) GetType ¶
func (m *PolicyCondition) GetType() string
func (*PolicyCondition) MarshalJSONPB ¶
func (c *PolicyCondition) MarshalJSONPB(marshaler *jsonpb.Marshaler) ([]byte, error)
func (*PolicyCondition) ProtoMessage ¶
func (*PolicyCondition) ProtoMessage()
func (*PolicyCondition) Reset ¶
func (m *PolicyCondition) Reset()
func (*PolicyCondition) String ¶
func (m *PolicyCondition) String() string
func (*PolicyCondition) UnmarshalJSONPB ¶
func (c *PolicyCondition) UnmarshalJSONPB(unmarshaller *jsonpb.Unmarshaler, data []byte) error
func (*PolicyCondition) Validate ¶ added in v1.6.0
func (this *PolicyCondition) Validate() error
type PolicyEffect ¶
type PolicyEffect int32
const ( PolicyEffect_unknown PolicyEffect = 0 PolicyEffect_deny PolicyEffect = 1 PolicyEffect_allow PolicyEffect = 2 )
func (PolicyEffect) EnumDescriptor ¶
func (PolicyEffect) EnumDescriptor() ([]byte, []int)
func (PolicyEffect) String ¶
func (x PolicyEffect) String() string
type PolicyEngineRequest ¶
type PolicyEngineRequest struct { Resource string `protobuf:"bytes,1,opt,name=Resource" json:"Resource,omitempty"` Action string `protobuf:"bytes,2,opt,name=Action" json:"Action,omitempty"` Subjects []string `protobuf:"bytes,3,rep,name=Subjects" json:"Subjects,omitempty"` Context map[string]string `` /* 134-byte string literal not displayed */ }
************************************ Messages Structures ************************************
func (*PolicyEngineRequest) Descriptor ¶
func (*PolicyEngineRequest) Descriptor() ([]byte, []int)
func (*PolicyEngineRequest) GetAction ¶
func (m *PolicyEngineRequest) GetAction() string
func (*PolicyEngineRequest) GetContext ¶
func (m *PolicyEngineRequest) GetContext() map[string]string
func (*PolicyEngineRequest) GetResource ¶
func (m *PolicyEngineRequest) GetResource() string
func (*PolicyEngineRequest) GetSubjects ¶
func (m *PolicyEngineRequest) GetSubjects() []string
func (*PolicyEngineRequest) ProtoMessage ¶
func (*PolicyEngineRequest) ProtoMessage()
func (*PolicyEngineRequest) Reset ¶
func (m *PolicyEngineRequest) Reset()
func (*PolicyEngineRequest) String ¶
func (m *PolicyEngineRequest) String() string
func (*PolicyEngineRequest) Validate ¶ added in v1.6.0
func (this *PolicyEngineRequest) Validate() error
type PolicyEngineResponse ¶
type PolicyEngineResponse struct { Allowed bool `protobuf:"varint,1,opt,name=Allowed" json:"Allowed,omitempty"` ExplicitDeny bool `protobuf:"varint,2,opt,name=ExplicitDeny" json:"ExplicitDeny,omitempty"` DefaultDeny bool `protobuf:"varint,3,opt,name=DefaultDeny" json:"DefaultDeny,omitempty"` }
func (*PolicyEngineResponse) Descriptor ¶
func (*PolicyEngineResponse) Descriptor() ([]byte, []int)
func (*PolicyEngineResponse) GetAllowed ¶
func (m *PolicyEngineResponse) GetAllowed() bool
func (*PolicyEngineResponse) GetDefaultDeny ¶
func (m *PolicyEngineResponse) GetDefaultDeny() bool
func (*PolicyEngineResponse) GetExplicitDeny ¶
func (m *PolicyEngineResponse) GetExplicitDeny() bool
func (*PolicyEngineResponse) ProtoMessage ¶
func (*PolicyEngineResponse) ProtoMessage()
func (*PolicyEngineResponse) Reset ¶
func (m *PolicyEngineResponse) Reset()
func (*PolicyEngineResponse) String ¶
func (m *PolicyEngineResponse) String() string
func (*PolicyEngineResponse) Validate ¶ added in v1.6.0
func (this *PolicyEngineResponse) Validate() error
type PolicyEngineService ¶
type PolicyEngineService struct {
PolicyEngineServiceHandler
}
func (*PolicyEngineService) DeletePolicyGroup ¶
func (h *PolicyEngineService) DeletePolicyGroup(ctx context.Context, in *DeletePolicyGroupRequest, out *DeletePolicyGroupResponse) error
func (*PolicyEngineService) IsAllowed ¶
func (h *PolicyEngineService) IsAllowed(ctx context.Context, in *PolicyEngineRequest, out *PolicyEngineResponse) error
func (*PolicyEngineService) ListPolicyGroups ¶
func (h *PolicyEngineService) ListPolicyGroups(ctx context.Context, in *ListPolicyGroupsRequest, out *ListPolicyGroupsResponse) error
func (*PolicyEngineService) StorePolicyGroup ¶
func (h *PolicyEngineService) StorePolicyGroup(ctx context.Context, in *StorePolicyGroupRequest, out *StorePolicyGroupResponse) error
type PolicyEngineServiceClient ¶
type PolicyEngineServiceClient interface { IsAllowed(ctx context.Context, in *PolicyEngineRequest, opts ...client.CallOption) (*PolicyEngineResponse, error) StorePolicyGroup(ctx context.Context, in *StorePolicyGroupRequest, opts ...client.CallOption) (*StorePolicyGroupResponse, error) ListPolicyGroups(ctx context.Context, in *ListPolicyGroupsRequest, opts ...client.CallOption) (*ListPolicyGroupsResponse, error) DeletePolicyGroup(ctx context.Context, in *DeletePolicyGroupRequest, opts ...client.CallOption) (*DeletePolicyGroupResponse, error) }
func NewPolicyEngineServiceClient ¶
func NewPolicyEngineServiceClient(serviceName string, c client.Client) PolicyEngineServiceClient
type PolicyEngineServiceHandler ¶
type PolicyEngineServiceHandler interface { IsAllowed(context.Context, *PolicyEngineRequest, *PolicyEngineResponse) error StorePolicyGroup(context.Context, *StorePolicyGroupRequest, *StorePolicyGroupResponse) error ListPolicyGroups(context.Context, *ListPolicyGroupsRequest, *ListPolicyGroupsResponse) error DeletePolicyGroup(context.Context, *DeletePolicyGroupRequest, *DeletePolicyGroupResponse) error }
type PolicyGroup ¶
type PolicyGroup struct { Uuid string `protobuf:"bytes,1,opt,name=Uuid" json:"Uuid,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name" json:"Name,omitempty"` Description string `protobuf:"bytes,3,opt,name=Description" json:"Description,omitempty"` OwnerUuid string `protobuf:"bytes,4,opt,name=OwnerUuid" json:"OwnerUuid,omitempty"` ResourceGroup PolicyResourceGroup `protobuf:"varint,5,opt,name=ResourceGroup,enum=idm.PolicyResourceGroup" json:"ResourceGroup,omitempty"` LastUpdated int32 `protobuf:"varint,6,opt,name=LastUpdated" json:"LastUpdated,omitempty"` Policies []*Policy `protobuf:"bytes,7,rep,name=Policies" json:"Policies,omitempty"` }
func (*PolicyGroup) Descriptor ¶
func (*PolicyGroup) Descriptor() ([]byte, []int)
func (*PolicyGroup) GetDescription ¶
func (m *PolicyGroup) GetDescription() string
func (*PolicyGroup) GetLastUpdated ¶
func (m *PolicyGroup) GetLastUpdated() int32
func (*PolicyGroup) GetName ¶
func (m *PolicyGroup) GetName() string
func (*PolicyGroup) GetOwnerUuid ¶
func (m *PolicyGroup) GetOwnerUuid() string
func (*PolicyGroup) GetPolicies ¶
func (m *PolicyGroup) GetPolicies() []*Policy
func (*PolicyGroup) GetResourceGroup ¶
func (m *PolicyGroup) GetResourceGroup() PolicyResourceGroup
func (*PolicyGroup) GetUuid ¶
func (m *PolicyGroup) GetUuid() string
func (*PolicyGroup) MarshalLogObject ¶ added in v1.5.0
func (pg *PolicyGroup) MarshalLogObject(encoder zapcore.ObjectEncoder) error
MarshalLogObject implements custom marshalling for logs
func (*PolicyGroup) ProtoMessage ¶
func (*PolicyGroup) ProtoMessage()
func (*PolicyGroup) Reset ¶
func (m *PolicyGroup) Reset()
func (*PolicyGroup) String ¶
func (m *PolicyGroup) String() string
func (*PolicyGroup) Validate ¶ added in v1.6.0
func (this *PolicyGroup) Validate() error
func (*PolicyGroup) Zap ¶
func (pg *PolicyGroup) Zap() zapcore.Field
Zap simply returns a zapcore.Field object populated with this policy group under a standard key
func (*PolicyGroup) ZapUuid ¶
func (pg *PolicyGroup) ZapUuid() zapcore.Field
ZapUuid simply calls zap.String() with PolicyGroupUuid standard key and this policy group uuid
type PolicyResourceGroup ¶
type PolicyResourceGroup int32
const ( PolicyResourceGroup_rest PolicyResourceGroup = 0 PolicyResourceGroup_acl PolicyResourceGroup = 1 PolicyResourceGroup_oidc PolicyResourceGroup = 2 )
func (PolicyResourceGroup) EnumDescriptor ¶
func (PolicyResourceGroup) EnumDescriptor() ([]byte, []int)
func (PolicyResourceGroup) String ¶
func (x PolicyResourceGroup) String() string
type Role ¶
type Role struct { // Unique identifier of this role Uuid string `protobuf:"bytes,1,opt,name=Uuid" json:"Uuid,omitempty"` // Label of this role Label string `protobuf:"bytes,2,opt,name=Label" json:"Label,omitempty"` // Whether this role represents a user team or not IsTeam bool `protobuf:"varint,3,opt,name=IsTeam" json:"IsTeam,omitempty"` // Whether this role is attached to a Group object GroupRole bool `protobuf:"varint,4,opt,name=GroupRole" json:"GroupRole,omitempty"` // Whether this role is attached to a User object UserRole bool `protobuf:"varint,5,opt,name=UserRole" json:"UserRole,omitempty"` // Last modification date of the role LastUpdated int32 `protobuf:"varint,6,opt,name=LastUpdated" json:"LastUpdated,omitempty"` // List of profiles (standard, shared, admin) on which the role will be automatically applied AutoApplies []string `protobuf:"bytes,7,rep,name=AutoApplies" json:"AutoApplies,omitempty"` // List of policies for securing this role access Policies []*service.ResourcePolicy `protobuf:"bytes,8,rep,name=Policies" json:"Policies,omitempty"` // Whether the policies resolve into an editable state PoliciesContextEditable bool `protobuf:"varint,9,opt,name=PoliciesContextEditable" json:"PoliciesContextEditable,omitempty"` // Is used in a stack of roles, this one will always be applied last. ForceOverride bool `protobuf:"varint,10,opt,name=ForceOverride" json:"ForceOverride,omitempty"` }
Role represents a generic set of permissions that can be applied to any users or groups.
func (*Role) Descriptor ¶
func (*Role) GetAutoApplies ¶
func (*Role) GetForceOverride ¶ added in v1.4.0
func (*Role) GetGroupRole ¶
func (*Role) GetLastUpdated ¶
func (*Role) GetPolicies ¶
func (m *Role) GetPolicies() []*service.ResourcePolicy
func (*Role) GetPoliciesContextEditable ¶
func (*Role) GetUserRole ¶
func (*Role) MarshalLogObject ¶ added in v1.5.0
func (role *Role) MarshalLogObject(encoder zapcore.ObjectEncoder) error
MarshalLogObject implements custom marshalling for logs
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
type RoleService ¶
type RoleService struct {
RoleServiceHandler
}
func (*RoleService) CreateRole ¶
func (h *RoleService) CreateRole(ctx context.Context, in *CreateRoleRequest, out *CreateRoleResponse) error
func (*RoleService) DeleteRole ¶
func (h *RoleService) DeleteRole(ctx context.Context, in *DeleteRoleRequest, out *DeleteRoleResponse) error
func (*RoleService) SearchRole ¶
func (*RoleService) StreamRole ¶
type RoleServiceClient ¶
type RoleServiceClient interface { CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...client.CallOption) (*CreateRoleResponse, error) DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...client.CallOption) (*DeleteRoleResponse, error) SearchRole(ctx context.Context, in *SearchRoleRequest, opts ...client.CallOption) (RoleService_SearchRoleClient, error) StreamRole(ctx context.Context, opts ...client.CallOption) (RoleService_StreamRoleClient, error) }
func NewRoleServiceClient ¶
func NewRoleServiceClient(serviceName string, c client.Client) RoleServiceClient
type RoleServiceHandler ¶
type RoleServiceHandler interface { CreateRole(context.Context, *CreateRoleRequest, *CreateRoleResponse) error DeleteRole(context.Context, *DeleteRoleRequest, *DeleteRoleResponse) error SearchRole(context.Context, *SearchRoleRequest, RoleService_SearchRoleStream) error StreamRole(context.Context, RoleService_StreamRoleStream) error }
type RoleService_SearchRoleClient ¶
type RoleService_SearchRoleClient interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Recv() (*SearchRoleResponse, error) }
type RoleService_SearchRoleStream ¶
type RoleService_SearchRoleStream interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Send(*SearchRoleResponse) error }
type RoleService_StreamRoleClient ¶
type RoleService_StreamRoleClient interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Send(*SearchRoleRequest) error Recv() (*SearchRoleResponse, error) }
type RoleService_StreamRoleStream ¶
type RoleService_StreamRoleStream interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Send(*SearchRoleResponse) error Recv() (*SearchRoleRequest, error) }
type RoleSingleQuery ¶
type RoleSingleQuery struct { // Look for roles by Uuid Uuid []string `protobuf:"bytes,1,rep,name=Uuid" json:"Uuid,omitempty"` // Look for roles by label, eventually using wildchar Label string `protobuf:"bytes,2,opt,name=Label" json:"Label,omitempty"` // Look for team roles only IsTeam bool `protobuf:"varint,3,opt,name=IsTeam" json:"IsTeam,omitempty"` // Look for group roles only IsGroupRole bool `protobuf:"varint,4,opt,name=IsGroupRole" json:"IsGroupRole,omitempty"` // Look for user roles only IsUserRole bool `protobuf:"varint,5,opt,name=IsUserRole" json:"IsUserRole,omitempty"` // Look for roles that have any value in the autoApplies field HasAutoApply bool `protobuf:"varint,6,opt,name=HasAutoApply" json:"HasAutoApply,omitempty"` // Negate the query Not bool `protobuf:"varint,7,opt,name=not" json:"not,omitempty"` }
RoleSingleQuery is the basic unit for building queries to Roles.
func (*RoleSingleQuery) Descriptor ¶
func (*RoleSingleQuery) Descriptor() ([]byte, []int)
func (*RoleSingleQuery) GetHasAutoApply ¶
func (m *RoleSingleQuery) GetHasAutoApply() bool
func (*RoleSingleQuery) GetIsGroupRole ¶
func (m *RoleSingleQuery) GetIsGroupRole() bool
func (*RoleSingleQuery) GetIsTeam ¶
func (m *RoleSingleQuery) GetIsTeam() bool
func (*RoleSingleQuery) GetIsUserRole ¶
func (m *RoleSingleQuery) GetIsUserRole() bool
func (*RoleSingleQuery) GetLabel ¶
func (m *RoleSingleQuery) GetLabel() string
func (*RoleSingleQuery) GetNot ¶
func (m *RoleSingleQuery) GetNot() bool
func (*RoleSingleQuery) GetUuid ¶
func (m *RoleSingleQuery) GetUuid() []string
func (*RoleSingleQuery) Matches ¶
func (m *RoleSingleQuery) Matches(idmObject interface{}) bool
func (*RoleSingleQuery) ProtoMessage ¶
func (*RoleSingleQuery) ProtoMessage()
func (*RoleSingleQuery) Reset ¶
func (m *RoleSingleQuery) Reset()
func (*RoleSingleQuery) String ¶
func (m *RoleSingleQuery) String() string
func (*RoleSingleQuery) Validate ¶ added in v1.6.0
func (this *RoleSingleQuery) Validate() error
type SearchACLRequest ¶
type SearchACLRequest struct {
Query *service.Query `protobuf:"bytes,1,opt,name=Query" json:"Query,omitempty"`
}
func (*SearchACLRequest) Descriptor ¶
func (*SearchACLRequest) Descriptor() ([]byte, []int)
func (*SearchACLRequest) GetQuery ¶
func (m *SearchACLRequest) GetQuery() *service.Query
func (*SearchACLRequest) ProtoMessage ¶
func (*SearchACLRequest) ProtoMessage()
func (*SearchACLRequest) Reset ¶
func (m *SearchACLRequest) Reset()
func (*SearchACLRequest) String ¶
func (m *SearchACLRequest) String() string
func (*SearchACLRequest) Validate ¶ added in v1.6.0
func (this *SearchACLRequest) Validate() error
type SearchACLResponse ¶
type SearchACLResponse struct {
ACL *ACL `protobuf:"bytes,1,opt,name=ACL" json:"ACL,omitempty"`
}
func (*SearchACLResponse) Descriptor ¶
func (*SearchACLResponse) Descriptor() ([]byte, []int)
func (*SearchACLResponse) GetACL ¶
func (m *SearchACLResponse) GetACL() *ACL
func (*SearchACLResponse) ProtoMessage ¶
func (*SearchACLResponse) ProtoMessage()
func (*SearchACLResponse) Reset ¶
func (m *SearchACLResponse) Reset()
func (*SearchACLResponse) String ¶
func (m *SearchACLResponse) String() string
func (*SearchACLResponse) Validate ¶ added in v1.6.0
func (this *SearchACLResponse) Validate() error
type SearchRoleRequest ¶
type SearchRoleRequest struct {
Query *service.Query `protobuf:"bytes,1,opt,name=Query" json:"Query,omitempty"`
}
func (*SearchRoleRequest) Descriptor ¶
func (*SearchRoleRequest) Descriptor() ([]byte, []int)
func (*SearchRoleRequest) GetQuery ¶
func (m *SearchRoleRequest) GetQuery() *service.Query
func (*SearchRoleRequest) ProtoMessage ¶
func (*SearchRoleRequest) ProtoMessage()
func (*SearchRoleRequest) Reset ¶
func (m *SearchRoleRequest) Reset()
func (*SearchRoleRequest) String ¶
func (m *SearchRoleRequest) String() string
func (*SearchRoleRequest) Validate ¶ added in v1.6.0
func (this *SearchRoleRequest) Validate() error
type SearchRoleResponse ¶
type SearchRoleResponse struct {
Role *Role `protobuf:"bytes,1,opt,name=Role" json:"Role,omitempty"`
}
func (*SearchRoleResponse) Descriptor ¶
func (*SearchRoleResponse) Descriptor() ([]byte, []int)
func (*SearchRoleResponse) GetRole ¶
func (m *SearchRoleResponse) GetRole() *Role
func (*SearchRoleResponse) ProtoMessage ¶
func (*SearchRoleResponse) ProtoMessage()
func (*SearchRoleResponse) Reset ¶
func (m *SearchRoleResponse) Reset()
func (*SearchRoleResponse) String ¶
func (m *SearchRoleResponse) String() string
func (*SearchRoleResponse) Validate ¶ added in v1.6.0
func (this *SearchRoleResponse) Validate() error
type SearchUserMetaRequest ¶
type SearchUserMetaRequest struct { // Look for meta by their unique identifier MetaUuids []string `protobuf:"bytes,1,rep,name=MetaUuids" json:"MetaUuids,omitempty"` // Look for all meta for a list of nodes NodeUuids []string `protobuf:"bytes,2,rep,name=NodeUuids" json:"NodeUuids,omitempty"` // Filter meta by their namespace Namespace string `protobuf:"bytes,3,opt,name=Namespace" json:"Namespace,omitempty"` // Filter meta by owner (in the sense of the policies) ResourceSubjectOwner string `protobuf:"bytes,4,opt,name=ResourceSubjectOwner" json:"ResourceSubjectOwner,omitempty"` // Filter meta by policies query ResourceQuery *service.ResourcePolicyQuery `protobuf:"bytes,5,opt,name=ResourceQuery" json:"ResourceQuery,omitempty"` }
Request for searching UserMeta by NodeUuid or by Namespace
func (*SearchUserMetaRequest) Descriptor ¶
func (*SearchUserMetaRequest) Descriptor() ([]byte, []int)
func (*SearchUserMetaRequest) GetMetaUuids ¶
func (m *SearchUserMetaRequest) GetMetaUuids() []string
func (*SearchUserMetaRequest) GetNamespace ¶
func (m *SearchUserMetaRequest) GetNamespace() string
func (*SearchUserMetaRequest) GetNodeUuids ¶
func (m *SearchUserMetaRequest) GetNodeUuids() []string
func (*SearchUserMetaRequest) GetResourceQuery ¶
func (m *SearchUserMetaRequest) GetResourceQuery() *service.ResourcePolicyQuery
func (*SearchUserMetaRequest) GetResourceSubjectOwner ¶
func (m *SearchUserMetaRequest) GetResourceSubjectOwner() string
func (*SearchUserMetaRequest) ProtoMessage ¶
func (*SearchUserMetaRequest) ProtoMessage()
func (*SearchUserMetaRequest) Reset ¶
func (m *SearchUserMetaRequest) Reset()
func (*SearchUserMetaRequest) String ¶
func (m *SearchUserMetaRequest) String() string
func (*SearchUserMetaRequest) Validate ¶ added in v1.6.0
func (this *SearchUserMetaRequest) Validate() error
type SearchUserMetaResponse ¶
type SearchUserMetaResponse struct {
UserMeta *UserMeta `protobuf:"bytes,1,opt,name=UserMeta" json:"UserMeta,omitempty"`
}
Streamed container for the UserMeta results
func (*SearchUserMetaResponse) Descriptor ¶
func (*SearchUserMetaResponse) Descriptor() ([]byte, []int)
func (*SearchUserMetaResponse) GetUserMeta ¶
func (m *SearchUserMetaResponse) GetUserMeta() *UserMeta
func (*SearchUserMetaResponse) ProtoMessage ¶
func (*SearchUserMetaResponse) ProtoMessage()
func (*SearchUserMetaResponse) Reset ¶
func (m *SearchUserMetaResponse) Reset()
func (*SearchUserMetaResponse) String ¶
func (m *SearchUserMetaResponse) String() string
func (*SearchUserMetaResponse) Validate ¶ added in v1.6.0
func (this *SearchUserMetaResponse) Validate() error
type SearchUserRequest ¶
type SearchUserRequest struct {
Query *service.Query `protobuf:"bytes,1,opt,name=Query" json:"Query,omitempty"`
}
func (*SearchUserRequest) Descriptor ¶
func (*SearchUserRequest) Descriptor() ([]byte, []int)
func (*SearchUserRequest) GetQuery ¶
func (m *SearchUserRequest) GetQuery() *service.Query
func (*SearchUserRequest) ProtoMessage ¶
func (*SearchUserRequest) ProtoMessage()
func (*SearchUserRequest) Reset ¶
func (m *SearchUserRequest) Reset()
func (*SearchUserRequest) String ¶
func (m *SearchUserRequest) String() string
func (*SearchUserRequest) Validate ¶ added in v1.6.0
func (this *SearchUserRequest) Validate() error
type SearchUserResponse ¶
type SearchUserResponse struct {
User *User `protobuf:"bytes,1,opt,name=User" json:"User,omitempty"`
}
func (*SearchUserResponse) Descriptor ¶
func (*SearchUserResponse) Descriptor() ([]byte, []int)
func (*SearchUserResponse) GetUser ¶
func (m *SearchUserResponse) GetUser() *User
func (*SearchUserResponse) ProtoMessage ¶
func (*SearchUserResponse) ProtoMessage()
func (*SearchUserResponse) Reset ¶
func (m *SearchUserResponse) Reset()
func (*SearchUserResponse) String ¶
func (m *SearchUserResponse) String() string
func (*SearchUserResponse) Validate ¶ added in v1.6.0
func (this *SearchUserResponse) Validate() error
type SearchWorkspaceRequest ¶
type SearchWorkspaceRequest struct {
Query *service.Query `protobuf:"bytes,1,opt,name=Query" json:"Query,omitempty"`
}
func (*SearchWorkspaceRequest) Descriptor ¶
func (*SearchWorkspaceRequest) Descriptor() ([]byte, []int)
func (*SearchWorkspaceRequest) GetQuery ¶
func (m *SearchWorkspaceRequest) GetQuery() *service.Query
func (*SearchWorkspaceRequest) ProtoMessage ¶
func (*SearchWorkspaceRequest) ProtoMessage()
func (*SearchWorkspaceRequest) Reset ¶
func (m *SearchWorkspaceRequest) Reset()
func (*SearchWorkspaceRequest) String ¶
func (m *SearchWorkspaceRequest) String() string
func (*SearchWorkspaceRequest) Validate ¶ added in v1.6.0
func (this *SearchWorkspaceRequest) Validate() error
type SearchWorkspaceResponse ¶
type SearchWorkspaceResponse struct {
Workspace *Workspace `protobuf:"bytes,1,opt,name=Workspace" json:"Workspace,omitempty"`
}
func (*SearchWorkspaceResponse) Descriptor ¶
func (*SearchWorkspaceResponse) Descriptor() ([]byte, []int)
func (*SearchWorkspaceResponse) GetWorkspace ¶
func (m *SearchWorkspaceResponse) GetWorkspace() *Workspace
func (*SearchWorkspaceResponse) ProtoMessage ¶
func (*SearchWorkspaceResponse) ProtoMessage()
func (*SearchWorkspaceResponse) Reset ¶
func (m *SearchWorkspaceResponse) Reset()
func (*SearchWorkspaceResponse) String ¶
func (m *SearchWorkspaceResponse) String() string
func (*SearchWorkspaceResponse) Validate ¶ added in v1.6.0
func (this *SearchWorkspaceResponse) Validate() error
type StorePolicyGroupRequest ¶
type StorePolicyGroupRequest struct {
PolicyGroup *PolicyGroup `protobuf:"bytes,1,opt,name=PolicyGroup" json:"PolicyGroup,omitempty"`
}
Request / Response Messages
func (*StorePolicyGroupRequest) Descriptor ¶
func (*StorePolicyGroupRequest) Descriptor() ([]byte, []int)
func (*StorePolicyGroupRequest) GetPolicyGroup ¶
func (m *StorePolicyGroupRequest) GetPolicyGroup() *PolicyGroup
func (*StorePolicyGroupRequest) ProtoMessage ¶
func (*StorePolicyGroupRequest) ProtoMessage()
func (*StorePolicyGroupRequest) Reset ¶
func (m *StorePolicyGroupRequest) Reset()
func (*StorePolicyGroupRequest) String ¶
func (m *StorePolicyGroupRequest) String() string
func (*StorePolicyGroupRequest) Validate ¶ added in v1.6.0
func (this *StorePolicyGroupRequest) Validate() error
type StorePolicyGroupResponse ¶
type StorePolicyGroupResponse struct {
PolicyGroup *PolicyGroup `protobuf:"bytes,1,opt,name=PolicyGroup" json:"PolicyGroup,omitempty"`
}
func (*StorePolicyGroupResponse) Descriptor ¶
func (*StorePolicyGroupResponse) Descriptor() ([]byte, []int)
func (*StorePolicyGroupResponse) GetPolicyGroup ¶
func (m *StorePolicyGroupResponse) GetPolicyGroup() *PolicyGroup
func (*StorePolicyGroupResponse) ProtoMessage ¶
func (*StorePolicyGroupResponse) ProtoMessage()
func (*StorePolicyGroupResponse) Reset ¶
func (m *StorePolicyGroupResponse) Reset()
func (*StorePolicyGroupResponse) String ¶
func (m *StorePolicyGroupResponse) String() string
func (*StorePolicyGroupResponse) Validate ¶ added in v1.6.0
func (this *StorePolicyGroupResponse) Validate() error
type UpdateUserMetaNamespaceRequest ¶
type UpdateUserMetaNamespaceRequest struct { Operation UpdateUserMetaNamespaceRequest_UserMetaNsOp `protobuf:"varint,1,opt,name=Operation,enum=idm.UpdateUserMetaNamespaceRequest_UserMetaNsOp" json:"Operation,omitempty"` Namespaces []*UserMetaNamespace `protobuf:"bytes,2,rep,name=Namespaces" json:"Namespaces,omitempty"` }
Modify UserMetaNamespaces
func (*UpdateUserMetaNamespaceRequest) Descriptor ¶
func (*UpdateUserMetaNamespaceRequest) Descriptor() ([]byte, []int)
func (*UpdateUserMetaNamespaceRequest) GetNamespaces ¶
func (m *UpdateUserMetaNamespaceRequest) GetNamespaces() []*UserMetaNamespace
func (*UpdateUserMetaNamespaceRequest) GetOperation ¶
func (m *UpdateUserMetaNamespaceRequest) GetOperation() UpdateUserMetaNamespaceRequest_UserMetaNsOp
func (*UpdateUserMetaNamespaceRequest) ProtoMessage ¶
func (*UpdateUserMetaNamespaceRequest) ProtoMessage()
func (*UpdateUserMetaNamespaceRequest) Reset ¶
func (m *UpdateUserMetaNamespaceRequest) Reset()
func (*UpdateUserMetaNamespaceRequest) String ¶
func (m *UpdateUserMetaNamespaceRequest) String() string
func (*UpdateUserMetaNamespaceRequest) Validate ¶ added in v1.6.0
func (this *UpdateUserMetaNamespaceRequest) Validate() error
type UpdateUserMetaNamespaceRequest_UserMetaNsOp ¶
type UpdateUserMetaNamespaceRequest_UserMetaNsOp int32
const ( UpdateUserMetaNamespaceRequest_PUT UpdateUserMetaNamespaceRequest_UserMetaNsOp = 0 UpdateUserMetaNamespaceRequest_DELETE UpdateUserMetaNamespaceRequest_UserMetaNsOp = 1 )
func (UpdateUserMetaNamespaceRequest_UserMetaNsOp) EnumDescriptor ¶
func (UpdateUserMetaNamespaceRequest_UserMetaNsOp) EnumDescriptor() ([]byte, []int)
func (UpdateUserMetaNamespaceRequest_UserMetaNsOp) String ¶
func (x UpdateUserMetaNamespaceRequest_UserMetaNsOp) String() string
type UpdateUserMetaNamespaceResponse ¶
type UpdateUserMetaNamespaceResponse struct {
Namespaces []*UserMetaNamespace `protobuf:"bytes,1,rep,name=Namespaces" json:"Namespaces,omitempty"`
}
Response of the
func (*UpdateUserMetaNamespaceResponse) Descriptor ¶
func (*UpdateUserMetaNamespaceResponse) Descriptor() ([]byte, []int)
func (*UpdateUserMetaNamespaceResponse) GetNamespaces ¶
func (m *UpdateUserMetaNamespaceResponse) GetNamespaces() []*UserMetaNamespace
func (*UpdateUserMetaNamespaceResponse) ProtoMessage ¶
func (*UpdateUserMetaNamespaceResponse) ProtoMessage()
func (*UpdateUserMetaNamespaceResponse) Reset ¶
func (m *UpdateUserMetaNamespaceResponse) Reset()
func (*UpdateUserMetaNamespaceResponse) String ¶
func (m *UpdateUserMetaNamespaceResponse) String() string
func (*UpdateUserMetaNamespaceResponse) Validate ¶ added in v1.6.0
func (this *UpdateUserMetaNamespaceResponse) Validate() error
type UpdateUserMetaRequest ¶
type UpdateUserMetaRequest struct { // Type of operation to apply (PUT / DELETE) Operation UpdateUserMetaRequest_UserMetaOp `protobuf:"varint,1,opt,name=Operation,enum=idm.UpdateUserMetaRequest_UserMetaOp" json:"Operation,omitempty"` // List of metadatas to update or delete MetaDatas []*UserMeta `protobuf:"bytes,3,rep,name=MetaDatas" json:"MetaDatas,omitempty"` }
Request for modifying UserMeta
func (*UpdateUserMetaRequest) Descriptor ¶
func (*UpdateUserMetaRequest) Descriptor() ([]byte, []int)
func (*UpdateUserMetaRequest) GetMetaDatas ¶
func (m *UpdateUserMetaRequest) GetMetaDatas() []*UserMeta
func (*UpdateUserMetaRequest) GetOperation ¶
func (m *UpdateUserMetaRequest) GetOperation() UpdateUserMetaRequest_UserMetaOp
func (*UpdateUserMetaRequest) ProtoMessage ¶
func (*UpdateUserMetaRequest) ProtoMessage()
func (*UpdateUserMetaRequest) Reset ¶
func (m *UpdateUserMetaRequest) Reset()
func (*UpdateUserMetaRequest) String ¶
func (m *UpdateUserMetaRequest) String() string
func (*UpdateUserMetaRequest) Validate ¶ added in v1.6.0
func (this *UpdateUserMetaRequest) Validate() error
type UpdateUserMetaRequest_UserMetaOp ¶
type UpdateUserMetaRequest_UserMetaOp int32
const ( UpdateUserMetaRequest_PUT UpdateUserMetaRequest_UserMetaOp = 0 UpdateUserMetaRequest_DELETE UpdateUserMetaRequest_UserMetaOp = 1 )
func (UpdateUserMetaRequest_UserMetaOp) EnumDescriptor ¶
func (UpdateUserMetaRequest_UserMetaOp) EnumDescriptor() ([]byte, []int)
func (UpdateUserMetaRequest_UserMetaOp) String ¶
func (x UpdateUserMetaRequest_UserMetaOp) String() string
type UpdateUserMetaResponse ¶
type UpdateUserMetaResponse struct { // List of metadatas MetaDatas []*UserMeta `protobuf:"bytes,3,rep,name=MetaDatas" json:"MetaDatas,omitempty"` }
Response of UpdateUserMeta service
func (*UpdateUserMetaResponse) Descriptor ¶
func (*UpdateUserMetaResponse) Descriptor() ([]byte, []int)
func (*UpdateUserMetaResponse) GetMetaDatas ¶
func (m *UpdateUserMetaResponse) GetMetaDatas() []*UserMeta
func (*UpdateUserMetaResponse) ProtoMessage ¶
func (*UpdateUserMetaResponse) ProtoMessage()
func (*UpdateUserMetaResponse) Reset ¶
func (m *UpdateUserMetaResponse) Reset()
func (*UpdateUserMetaResponse) String ¶
func (m *UpdateUserMetaResponse) String() string
func (*UpdateUserMetaResponse) Validate ¶ added in v1.6.0
func (this *UpdateUserMetaResponse) Validate() error
type User ¶
type User struct { // User unique identifier Uuid string `protobuf:"bytes,1,opt,name=Uuid" json:"Uuid,omitempty"` // Path to the parent group GroupPath string `protobuf:"bytes,2,opt,name=GroupPath" json:"GroupPath,omitempty"` // A free list of attributes Attributes map[string]string `` /* 140-byte string literal not displayed */ // List of roles applied to this user or group Roles []*Role `protobuf:"bytes,4,rep,name=Roles" json:"Roles,omitempty"` // User login is used to connect, field is empty for groups Login string `protobuf:"bytes,5,opt,name=Login" json:"Login,omitempty"` // Password can be passed to be updated (but never read back), field is empty for groups Password string `protobuf:"bytes,6,opt,name=Password" json:"Password,omitempty"` // OldPassword must be set when a user updates her own password OldPassword string `protobuf:"bytes,11,opt,name=OldPassword" json:"OldPassword,omitempty"` // Whether this object is a group or a user IsGroup bool `protobuf:"varint,7,opt,name=IsGroup" json:"IsGroup,omitempty"` // Label of the group, field is empty for users GroupLabel string `protobuf:"bytes,8,opt,name=GroupLabel" json:"GroupLabel,omitempty"` // Last successful connection timestamp LastConnected int32 `protobuf:"varint,12,opt,name=LastConnected" json:"LastConnected,omitempty"` // Policies securing access to this user Policies []*service.ResourcePolicy `protobuf:"bytes,9,rep,name=Policies" json:"Policies,omitempty"` // Context-resolved to quickly check if user is editable or not. PoliciesContextEditable bool `protobuf:"varint,10,opt,name=PoliciesContextEditable" json:"PoliciesContextEditable,omitempty"` }
User can represent either a User or a Group
func (*User) Descriptor ¶
func (*User) GetAttributes ¶
func (*User) GetGroupLabel ¶
func (*User) GetGroupPath ¶
func (*User) GetIsGroup ¶
func (*User) GetLastConnected ¶
func (*User) GetOldPassword ¶ added in v1.2.0
func (*User) GetPassword ¶
func (*User) GetPolicies ¶
func (m *User) GetPolicies() []*service.ResourcePolicy
func (*User) GetPoliciesContextEditable ¶
func (*User) MarshalLogObject ¶ added in v1.5.0
func (user *User) MarshalLogObject(encoder zapcore.ObjectEncoder) error
MarshalLogObject implements custom marshalling for logs
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) WithPublicData ¶ added in v1.2.0
func (*User) Zap ¶
Zap simply returns a zapcore.Field object populated with this user under a standard key
type UserMeta ¶
type UserMeta struct { // Unique identifier of the metadata Uuid string `protobuf:"bytes,1,opt,name=Uuid" json:"Uuid,omitempty"` // Unique identifier of the node to which meta is attached NodeUuid string `protobuf:"bytes,2,opt,name=NodeUuid" json:"NodeUuid,omitempty"` // Namespace for the metadata Namespace string `protobuf:"bytes,3,opt,name=Namespace" json:"Namespace,omitempty"` // Json encoded value used to pass any type of values JsonValue string `protobuf:"bytes,4,opt,name=JsonValue" json:"JsonValue,omitempty"` // Policies for securing access Policies []*service.ResourcePolicy `protobuf:"bytes,5,rep,name=Policies" json:"Policies,omitempty"` // Context-resolved to quickly check if this meta is editable or not PoliciesContextEditable bool `protobuf:"varint,6,opt,name=PoliciesContextEditable" json:"PoliciesContextEditable,omitempty"` }
Piece of metadata attached to a node
func (*UserMeta) Descriptor ¶
func (*UserMeta) GetJsonValue ¶
func (*UserMeta) GetNamespace ¶
func (*UserMeta) GetNodeUuid ¶
func (*UserMeta) GetPolicies ¶
func (m *UserMeta) GetPolicies() []*service.ResourcePolicy
func (*UserMeta) GetPoliciesContextEditable ¶
func (*UserMeta) ProtoMessage ¶
func (*UserMeta) ProtoMessage()
type UserMetaNamespace ¶
type UserMetaNamespace struct { // Namespace identifier, must be unique Namespace string `protobuf:"bytes,1,opt,name=Namespace" json:"Namespace,omitempty"` // Human-readable Label Label string `protobuf:"bytes,2,opt,name=Label" json:"Label,omitempty"` // Order is used for sorting lists of namesapces Order int32 `protobuf:"varint,3,opt,name=Order" json:"Order,omitempty"` // Whether a modification of a metadata value for this namespace should trigger an indexation by the search engine Indexable bool `protobuf:"varint,4,opt,name=Indexable" json:"Indexable,omitempty"` // Json-encoded type to provide accurate interface for edition JsonDefinition string `protobuf:"bytes,5,opt,name=JsonDefinition" json:"JsonDefinition,omitempty"` // Policies securing this namespace Policies []*service.ResourcePolicy `protobuf:"bytes,6,rep,name=Policies" json:"Policies,omitempty"` }
Globally declared Namespace with associated policies
func (*UserMetaNamespace) Descriptor ¶
func (*UserMetaNamespace) Descriptor() ([]byte, []int)
func (*UserMetaNamespace) GetIndexable ¶
func (m *UserMetaNamespace) GetIndexable() bool
func (*UserMetaNamespace) GetJsonDefinition ¶
func (m *UserMetaNamespace) GetJsonDefinition() string
func (*UserMetaNamespace) GetLabel ¶
func (m *UserMetaNamespace) GetLabel() string
func (*UserMetaNamespace) GetNamespace ¶
func (m *UserMetaNamespace) GetNamespace() string
func (*UserMetaNamespace) GetOrder ¶
func (m *UserMetaNamespace) GetOrder() int32
func (*UserMetaNamespace) GetPolicies ¶
func (m *UserMetaNamespace) GetPolicies() []*service.ResourcePolicy
func (*UserMetaNamespace) ProtoMessage ¶
func (*UserMetaNamespace) ProtoMessage()
func (*UserMetaNamespace) Reset ¶
func (m *UserMetaNamespace) Reset()
func (*UserMetaNamespace) String ¶
func (m *UserMetaNamespace) String() string
func (*UserMetaNamespace) Validate ¶ added in v1.6.0
func (this *UserMetaNamespace) Validate() error
type UserMetaService ¶
type UserMetaService struct {
UserMetaServiceHandler
}
func (*UserMetaService) ListUserMetaNamespace ¶
func (*UserMetaService) SearchUserMeta ¶
func (*UserMetaService) UpdateUserMeta ¶
func (h *UserMetaService) UpdateUserMeta(ctx context.Context, in *UpdateUserMetaRequest, out *UpdateUserMetaResponse) error
func (*UserMetaService) UpdateUserMetaNamespace ¶
func (h *UserMetaService) UpdateUserMetaNamespace(ctx context.Context, in *UpdateUserMetaNamespaceRequest, out *UpdateUserMetaNamespaceResponse) error
type UserMetaServiceClient ¶
type UserMetaServiceClient interface { UpdateUserMeta(ctx context.Context, in *UpdateUserMetaRequest, opts ...client.CallOption) (*UpdateUserMetaResponse, error) SearchUserMeta(ctx context.Context, in *SearchUserMetaRequest, opts ...client.CallOption) (UserMetaService_SearchUserMetaClient, error) UpdateUserMetaNamespace(ctx context.Context, in *UpdateUserMetaNamespaceRequest, opts ...client.CallOption) (*UpdateUserMetaNamespaceResponse, error) ListUserMetaNamespace(ctx context.Context, in *ListUserMetaNamespaceRequest, opts ...client.CallOption) (UserMetaService_ListUserMetaNamespaceClient, error) }
func NewUserMetaServiceClient ¶
func NewUserMetaServiceClient(serviceName string, c client.Client) UserMetaServiceClient
type UserMetaServiceHandler ¶
type UserMetaServiceHandler interface { UpdateUserMeta(context.Context, *UpdateUserMetaRequest, *UpdateUserMetaResponse) error SearchUserMeta(context.Context, *SearchUserMetaRequest, UserMetaService_SearchUserMetaStream) error UpdateUserMetaNamespace(context.Context, *UpdateUserMetaNamespaceRequest, *UpdateUserMetaNamespaceResponse) error ListUserMetaNamespace(context.Context, *ListUserMetaNamespaceRequest, UserMetaService_ListUserMetaNamespaceStream) error }
type UserMetaService_ListUserMetaNamespaceClient ¶
type UserMetaService_ListUserMetaNamespaceClient interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Recv() (*ListUserMetaNamespaceResponse, error) }
type UserMetaService_ListUserMetaNamespaceStream ¶
type UserMetaService_ListUserMetaNamespaceStream interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Send(*ListUserMetaNamespaceResponse) error }
type UserMetaService_SearchUserMetaClient ¶
type UserMetaService_SearchUserMetaClient interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Recv() (*SearchUserMetaResponse, error) }
type UserMetaService_SearchUserMetaStream ¶
type UserMetaService_SearchUserMetaStream interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Send(*SearchUserMetaResponse) error }
type UserService ¶
type UserService struct {
UserServiceHandler
}
func (*UserService) BindUser ¶
func (h *UserService) BindUser(ctx context.Context, in *BindUserRequest, out *BindUserResponse) error
func (*UserService) CountUser ¶
func (h *UserService) CountUser(ctx context.Context, in *SearchUserRequest, out *CountUserResponse) error
func (*UserService) CreateUser ¶
func (h *UserService) CreateUser(ctx context.Context, in *CreateUserRequest, out *CreateUserResponse) error
func (*UserService) DeleteUser ¶
func (h *UserService) DeleteUser(ctx context.Context, in *DeleteUserRequest, out *DeleteUserResponse) error
func (*UserService) SearchUser ¶
func (*UserService) StreamUser ¶
type UserServiceClient ¶
type UserServiceClient interface { CreateUser(ctx context.Context, in *CreateUserRequest, opts ...client.CallOption) (*CreateUserResponse, error) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...client.CallOption) (*DeleteUserResponse, error) BindUser(ctx context.Context, in *BindUserRequest, opts ...client.CallOption) (*BindUserResponse, error) CountUser(ctx context.Context, in *SearchUserRequest, opts ...client.CallOption) (*CountUserResponse, error) SearchUser(ctx context.Context, in *SearchUserRequest, opts ...client.CallOption) (UserService_SearchUserClient, error) StreamUser(ctx context.Context, opts ...client.CallOption) (UserService_StreamUserClient, error) }
func NewUserServiceClient ¶
func NewUserServiceClient(serviceName string, c client.Client) UserServiceClient
type UserServiceHandler ¶
type UserServiceHandler interface { CreateUser(context.Context, *CreateUserRequest, *CreateUserResponse) error DeleteUser(context.Context, *DeleteUserRequest, *DeleteUserResponse) error BindUser(context.Context, *BindUserRequest, *BindUserResponse) error CountUser(context.Context, *SearchUserRequest, *CountUserResponse) error SearchUser(context.Context, *SearchUserRequest, UserService_SearchUserStream) error StreamUser(context.Context, UserService_StreamUserStream) error }
type UserService_SearchUserClient ¶
type UserService_SearchUserClient interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Recv() (*SearchUserResponse, error) }
type UserService_SearchUserStream ¶
type UserService_SearchUserStream interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Send(*SearchUserResponse) error }
type UserService_StreamUserClient ¶
type UserService_StreamUserClient interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Send(*SearchUserRequest) error Recv() (*SearchUserResponse, error) }
type UserService_StreamUserStream ¶
type UserService_StreamUserStream interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Send(*SearchUserResponse) error Recv() (*SearchUserRequest, error) }
type UserSingleQuery ¶
type UserSingleQuery struct { Uuid string `protobuf:"bytes,11,opt,name=Uuid" json:"Uuid,omitempty"` Login string `protobuf:"bytes,1,opt,name=Login" json:"Login,omitempty"` Password string `protobuf:"bytes,2,opt,name=Password" json:"Password,omitempty"` // Search on group path, and if so, search recursively GroupPath string `protobuf:"bytes,3,opt,name=GroupPath" json:"GroupPath,omitempty"` Recursive bool `protobuf:"varint,4,opt,name=Recursive" json:"Recursive,omitempty"` // Search a specific group by path FullPath string `protobuf:"bytes,12,opt,name=FullPath" json:"FullPath,omitempty"` // Search on attribute AttributeName string `protobuf:"bytes,5,opt,name=AttributeName" json:"AttributeName,omitempty"` AttributeValue string `protobuf:"bytes,6,opt,name=AttributeValue" json:"AttributeValue,omitempty"` AttributeAnyValue bool `protobuf:"varint,7,opt,name=AttributeAnyValue" json:"AttributeAnyValue,omitempty"` // Search on roles HasRole string `protobuf:"bytes,8,opt,name=HasRole" json:"HasRole,omitempty"` NodeType NodeType `protobuf:"varint,9,opt,name=NodeType,enum=idm.NodeType" json:"NodeType,omitempty"` // Shortcut for pydio:profile attribute HasProfile string `protobuf:"bytes,13,opt,name=HasProfile" json:"HasProfile,omitempty"` // Compare to last connection date, starting with > or < ConnectedSince string `protobuf:"bytes,14,opt,name=ConnectedSince" json:"ConnectedSince,omitempty"` Not bool `protobuf:"varint,10,opt,name=not" json:"not,omitempty"` }
func (*UserSingleQuery) Descriptor ¶
func (*UserSingleQuery) Descriptor() ([]byte, []int)
func (*UserSingleQuery) GetAttributeAnyValue ¶
func (m *UserSingleQuery) GetAttributeAnyValue() bool
func (*UserSingleQuery) GetAttributeName ¶
func (m *UserSingleQuery) GetAttributeName() string
func (*UserSingleQuery) GetAttributeValue ¶
func (m *UserSingleQuery) GetAttributeValue() string
func (*UserSingleQuery) GetConnectedSince ¶
func (m *UserSingleQuery) GetConnectedSince() string
func (*UserSingleQuery) GetFullPath ¶
func (m *UserSingleQuery) GetFullPath() string
func (*UserSingleQuery) GetGroupPath ¶
func (m *UserSingleQuery) GetGroupPath() string
func (*UserSingleQuery) GetHasProfile ¶
func (m *UserSingleQuery) GetHasProfile() string
func (*UserSingleQuery) GetHasRole ¶
func (m *UserSingleQuery) GetHasRole() string
func (*UserSingleQuery) GetLogin ¶
func (m *UserSingleQuery) GetLogin() string
func (*UserSingleQuery) GetNodeType ¶
func (m *UserSingleQuery) GetNodeType() NodeType
func (*UserSingleQuery) GetNot ¶
func (m *UserSingleQuery) GetNot() bool
func (*UserSingleQuery) GetPassword ¶
func (m *UserSingleQuery) GetPassword() string
func (*UserSingleQuery) GetRecursive ¶
func (m *UserSingleQuery) GetRecursive() bool
func (*UserSingleQuery) GetUuid ¶
func (m *UserSingleQuery) GetUuid() string
func (*UserSingleQuery) Matches ¶
func (m *UserSingleQuery) Matches(idmObject interface{}) bool
func (*UserSingleQuery) ParseLastConnected ¶
func (m *UserSingleQuery) ParseLastConnected() (lt bool, d time.Duration, e error)
func (*UserSingleQuery) ProtoMessage ¶
func (*UserSingleQuery) ProtoMessage()
func (*UserSingleQuery) Reset ¶
func (m *UserSingleQuery) Reset()
func (*UserSingleQuery) String ¶
func (m *UserSingleQuery) String() string
func (*UserSingleQuery) Validate ¶ added in v1.6.0
func (this *UserSingleQuery) Validate() error
type Workspace ¶
type Workspace struct { // Unique identifier of the workspace UUID string `protobuf:"bytes,1,opt,name=UUID" json:"UUID,omitempty"` // Label of the workspace (max length 500) Label string `protobuf:"bytes,2,opt,name=Label" json:"Label,omitempty"` // Description of the workspace (max length 1000) Description string `protobuf:"bytes,3,opt,name=Description" json:"Description,omitempty"` // Slug is an url-compatible form of the workspace label, or can be freely modified (max length 500) Slug string `protobuf:"bytes,4,opt,name=Slug" json:"Slug,omitempty"` // Scope can be ADMIN, ROOM (=CELL) or LINK Scope WorkspaceScope `protobuf:"varint,5,opt,name=Scope,enum=idm.WorkspaceScope" json:"Scope,omitempty"` // Last modification time LastUpdated int32 `protobuf:"varint,6,opt,name=LastUpdated" json:"LastUpdated,omitempty"` // Policies for securing access Policies []*service.ResourcePolicy `protobuf:"bytes,7,rep,name=Policies" json:"Policies,omitempty"` // JSON-encoded list of attributes Attributes string `protobuf:"bytes,8,opt,name=Attributes" json:"Attributes,omitempty"` // Quick list of the RootNodes uuids RootUUIDs []string `protobuf:"bytes,9,rep,name=RootUUIDs" json:"RootUUIDs,omitempty"` // List of the Root Nodes in the tree that compose this workspace RootNodes map[string]*tree.Node `` /* 139-byte string literal not displayed */ // Context-resolved to quickly check if workspace is editable or not PoliciesContextEditable bool `protobuf:"varint,12,opt,name=PoliciesContextEditable" json:"PoliciesContextEditable,omitempty"` }
A Workspace is composed of a set of nodes UUIDs and is used to provide accesses to the tree via ACLs.
func (*Workspace) Descriptor ¶
func (*Workspace) GetAttributes ¶
func (*Workspace) GetDescription ¶
func (*Workspace) GetLastUpdated ¶
func (*Workspace) GetPolicies ¶
func (m *Workspace) GetPolicies() []*service.ResourcePolicy
func (*Workspace) GetPoliciesContextEditable ¶
func (*Workspace) GetRootUUIDs ¶ added in v1.2.0
func (*Workspace) GetScope ¶
func (m *Workspace) GetScope() WorkspaceScope
func (*Workspace) MarshalLogObject ¶ added in v1.5.0
func (workspace *Workspace) MarshalLogObject(encoder zapcore.ObjectEncoder) error
MarshalLogObject implements custom marshalling for logs
func (*Workspace) ProtoMessage ¶
func (*Workspace) ProtoMessage()
type WorkspaceScope ¶
type WorkspaceScope int32
const ( WorkspaceScope_ANY WorkspaceScope = 0 WorkspaceScope_ADMIN WorkspaceScope = 1 WorkspaceScope_ROOM WorkspaceScope = 2 WorkspaceScope_LINK WorkspaceScope = 3 )
func (WorkspaceScope) EnumDescriptor ¶
func (WorkspaceScope) EnumDescriptor() ([]byte, []int)
func (WorkspaceScope) String ¶
func (x WorkspaceScope) String() string
type WorkspaceService ¶
type WorkspaceService struct {
WorkspaceServiceHandler
}
func (*WorkspaceService) CreateWorkspace ¶
func (h *WorkspaceService) CreateWorkspace(ctx context.Context, in *CreateWorkspaceRequest, out *CreateWorkspaceResponse) error
func (*WorkspaceService) DeleteWorkspace ¶
func (h *WorkspaceService) DeleteWorkspace(ctx context.Context, in *DeleteWorkspaceRequest, out *DeleteWorkspaceResponse) error
func (*WorkspaceService) SearchWorkspace ¶
func (*WorkspaceService) StreamWorkspace ¶
type WorkspaceServiceClient ¶
type WorkspaceServiceClient interface { CreateWorkspace(ctx context.Context, in *CreateWorkspaceRequest, opts ...client.CallOption) (*CreateWorkspaceResponse, error) DeleteWorkspace(ctx context.Context, in *DeleteWorkspaceRequest, opts ...client.CallOption) (*DeleteWorkspaceResponse, error) SearchWorkspace(ctx context.Context, in *SearchWorkspaceRequest, opts ...client.CallOption) (WorkspaceService_SearchWorkspaceClient, error) StreamWorkspace(ctx context.Context, opts ...client.CallOption) (WorkspaceService_StreamWorkspaceClient, error) }
func NewWorkspaceServiceClient ¶
func NewWorkspaceServiceClient(serviceName string, c client.Client) WorkspaceServiceClient
type WorkspaceServiceHandler ¶
type WorkspaceServiceHandler interface { CreateWorkspace(context.Context, *CreateWorkspaceRequest, *CreateWorkspaceResponse) error DeleteWorkspace(context.Context, *DeleteWorkspaceRequest, *DeleteWorkspaceResponse) error SearchWorkspace(context.Context, *SearchWorkspaceRequest, WorkspaceService_SearchWorkspaceStream) error StreamWorkspace(context.Context, WorkspaceService_StreamWorkspaceStream) error }
type WorkspaceService_SearchWorkspaceClient ¶
type WorkspaceService_SearchWorkspaceClient interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Recv() (*SearchWorkspaceResponse, error) }
type WorkspaceService_SearchWorkspaceStream ¶
type WorkspaceService_SearchWorkspaceStream interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Send(*SearchWorkspaceResponse) error }
type WorkspaceService_StreamWorkspaceClient ¶
type WorkspaceService_StreamWorkspaceClient interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Send(*SearchWorkspaceRequest) error Recv() (*SearchWorkspaceResponse, error) }
type WorkspaceService_StreamWorkspaceStream ¶
type WorkspaceService_StreamWorkspaceStream interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Send(*SearchWorkspaceResponse) error Recv() (*SearchWorkspaceRequest, error) }
type WorkspaceSingleQuery ¶
type WorkspaceSingleQuery struct { Uuid string `protobuf:"bytes,1,opt,name=uuid" json:"uuid,omitempty"` Label string `protobuf:"bytes,2,opt,name=label" json:"label,omitempty"` Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"` Slug string `protobuf:"bytes,4,opt,name=slug" json:"slug,omitempty"` Scope WorkspaceScope `protobuf:"varint,5,opt,name=scope,enum=idm.WorkspaceScope" json:"scope,omitempty"` LastUpdated string `protobuf:"bytes,7,opt,name=LastUpdated" json:"LastUpdated,omitempty"` HasAttribute string `protobuf:"bytes,8,opt,name=HasAttribute" json:"HasAttribute,omitempty"` AttributeName string `protobuf:"bytes,9,opt,name=AttributeName" json:"AttributeName,omitempty"` AttributeValue string `protobuf:"bytes,10,opt,name=AttributeValue" json:"AttributeValue,omitempty"` Not bool `protobuf:"varint,6,opt,name=not" json:"not,omitempty"` }
func (*WorkspaceSingleQuery) Descriptor ¶
func (*WorkspaceSingleQuery) Descriptor() ([]byte, []int)
func (*WorkspaceSingleQuery) GetAttributeName ¶
func (m *WorkspaceSingleQuery) GetAttributeName() string
func (*WorkspaceSingleQuery) GetAttributeValue ¶
func (m *WorkspaceSingleQuery) GetAttributeValue() string
func (*WorkspaceSingleQuery) GetDescription ¶
func (m *WorkspaceSingleQuery) GetDescription() string
func (*WorkspaceSingleQuery) GetHasAttribute ¶
func (m *WorkspaceSingleQuery) GetHasAttribute() string
func (*WorkspaceSingleQuery) GetLabel ¶
func (m *WorkspaceSingleQuery) GetLabel() string
func (*WorkspaceSingleQuery) GetLastUpdated ¶
func (m *WorkspaceSingleQuery) GetLastUpdated() string
func (*WorkspaceSingleQuery) GetNot ¶
func (m *WorkspaceSingleQuery) GetNot() bool
func (*WorkspaceSingleQuery) GetScope ¶
func (m *WorkspaceSingleQuery) GetScope() WorkspaceScope
func (*WorkspaceSingleQuery) GetSlug ¶
func (m *WorkspaceSingleQuery) GetSlug() string
func (*WorkspaceSingleQuery) GetUuid ¶
func (m *WorkspaceSingleQuery) GetUuid() string
func (*WorkspaceSingleQuery) Matches ¶
func (m *WorkspaceSingleQuery) Matches(idmObject interface{}) bool
func (*WorkspaceSingleQuery) ParseLastUpdated ¶
func (m *WorkspaceSingleQuery) ParseLastUpdated() (lt bool, d time.Duration, e error)
func (*WorkspaceSingleQuery) ProtoMessage ¶
func (*WorkspaceSingleQuery) ProtoMessage()
func (*WorkspaceSingleQuery) Reset ¶
func (m *WorkspaceSingleQuery) Reset()
func (*WorkspaceSingleQuery) String ¶
func (m *WorkspaceSingleQuery) String() string
func (*WorkspaceSingleQuery) Validate ¶ added in v1.6.0
func (this *WorkspaceSingleQuery) Validate() error