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 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 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 (acl *ACL) Zap() zapcore.Field
- func (acl *ACL) ZapId() zapcore.Field
- type ACLAction
- 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) 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 (*ACLSingleQuery) ProtoMessage()
- func (m *ACLSingleQuery) Reset()
- func (m *ACLSingleQuery) String() string
- type BindUserRequest
- 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
- type ChangeEventType
- type CountUserResponse
- type CreateACLRequest
- type CreateACLResponse
- type CreateRoleRequest
- type CreateRoleResponse
- type CreateUserRequest
- type CreateUserResponse
- type CreateWorkspaceRequest
- type CreateWorkspaceResponse
- type DeleteACLRequest
- type DeleteACLResponse
- type DeletePolicyGroupRequest
- type DeletePolicyGroupResponse
- type DeleteRoleRequest
- type DeleteRoleResponse
- type DeleteUserRequest
- type DeleteUserResponse
- type DeleteWorkspaceRequest
- type DeleteWorkspaceResponse
- 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
- 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
- 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 (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
- 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
- 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
- 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 (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 (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 (*RoleSingleQuery) ProtoMessage()
- func (m *RoleSingleQuery) Reset()
- func (m *RoleSingleQuery) String() string
- 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
- type SearchUserMetaResponse
- type SearchUserRequest
- type SearchUserResponse
- type SearchWorkspaceRequest
- type SearchWorkspaceResponse
- type StorePolicyGroupRequest
- type StorePolicyGroupResponse
- 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
- 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
- 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
- type UpdateUserMetaRequest_UserMetaOp
- type UpdateUserMetaResponse
- 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) 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 (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
- 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
- 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) GetFullPath() string
- func (m *UserSingleQuery) GetGroupPath() 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 (*UserSingleQuery) ProtoMessage()
- func (m *UserSingleQuery) Reset()
- func (m *UserSingleQuery) String() string
- 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 (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) GetDescription() string
- func (m *WorkspaceSingleQuery) GetLabel() string
- func (m *WorkspaceSingleQuery) GetNot() bool
- func (m *WorkspaceSingleQuery) GetScope() WorkspaceScope
- func (m *WorkspaceSingleQuery) GetSlug() string
- func (m *WorkspaceSingleQuery) GetUuid() string
- func (*WorkspaceSingleQuery) ProtoMessage()
- func (m *WorkspaceSingleQuery) Reset()
- func (m *WorkspaceSingleQuery) String() string
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: "BIND",
5: "LOGOUT",
}
var ChangeEventType_value = map[string]int32{
"CREATE": 0,
"READ": 1,
"UPDATE": 2,
"DELETE": 3,
"BIND": 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 { ID string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"` Action *ACLAction `protobuf:"bytes,2,opt,name=Action" json:"Action,omitempty"` RoleID string `protobuf:"bytes,3,opt,name=RoleID" json:"RoleID,omitempty"` WorkspaceID string `protobuf:"bytes,4,opt,name=WorkspaceID" json:"WorkspaceID,omitempty"` NodeID string `protobuf:"bytes,5,opt,name=NodeID" json:"NodeID,omitempty"` }
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
type ACLServiceClient ¶
type ACLServiceClient interface { CreateACL(ctx context.Context, in *CreateACLRequest, opts ...client.CallOption) (*CreateACLResponse, 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 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) ProtoMessage ¶
func (*ACLSingleQuery) ProtoMessage()
func (*ACLSingleQuery) Reset ¶
func (m *ACLSingleQuery) Reset()
func (*ACLSingleQuery) String ¶
func (m *ACLSingleQuery) String() string
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
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
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
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_BIND 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
type CreateACLRequest ¶
type CreateACLRequest struct {
ACL *ACL `protobuf:"bytes,1,opt,name=ACL" json:"ACL,omitempty"`
}
*****************************************************************************
ACL Messages structure
*****************************************************************************
func (*CreateACLRequest) Descriptor ¶
func (*CreateACLRequest) Descriptor() ([]byte, []int)
func (*CreateACLRequest) GetACL ¶
func (m *CreateACLRequest) GetACL() *ACL
func (*CreateACLRequest) ProtoMessage ¶
func (*CreateACLRequest) ProtoMessage()
func (*CreateACLRequest) Reset ¶
func (m *CreateACLRequest) Reset()
func (*CreateACLRequest) String ¶
func (m *CreateACLRequest) String() string
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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) 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 { Uuid string `protobuf:"bytes,1,opt,name=Uuid" json:"Uuid,omitempty"` Label string `protobuf:"bytes,2,opt,name=Label" json:"Label,omitempty"` IsTeam bool `protobuf:"varint,3,opt,name=IsTeam" json:"IsTeam,omitempty"` GroupRole bool `protobuf:"varint,4,opt,name=GroupRole" json:"GroupRole,omitempty"` UserRole bool `protobuf:"varint,5,opt,name=UserRole" json:"UserRole,omitempty"` LastUpdated int32 `protobuf:"varint,6,opt,name=LastUpdated" json:"LastUpdated,omitempty"` AutoApplies []string `protobuf:"bytes,7,rep,name=AutoApplies" json:"AutoApplies,omitempty"` Policies []*service.ResourcePolicy `protobuf:"bytes,8,rep,name=Policies" json:"Policies,omitempty"` PoliciesContextEditable bool `protobuf:"varint,9,opt,name=PoliciesContextEditable" json:"PoliciesContextEditable,omitempty"` ForceOverride bool `protobuf:"varint,10,opt,name=ForceOverride" json:"ForceOverride,omitempty"` }
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 { Uuid []string `protobuf:"bytes,1,rep,name=Uuid" json:"Uuid,omitempty"` Label string `protobuf:"bytes,2,opt,name=Label" json:"Label,omitempty"` IsTeam bool `protobuf:"varint,3,opt,name=IsTeam" json:"IsTeam,omitempty"` IsGroupRole bool `protobuf:"varint,4,opt,name=IsGroupRole" json:"IsGroupRole,omitempty"` IsUserRole bool `protobuf:"varint,5,opt,name=IsUserRole" json:"IsUserRole,omitempty"` HasAutoApply bool `protobuf:"varint,6,opt,name=HasAutoApply" json:"HasAutoApply,omitempty"` Not bool `protobuf:"varint,7,opt,name=not" json:"not,omitempty"` }
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) ProtoMessage ¶
func (*RoleSingleQuery) ProtoMessage()
func (*RoleSingleQuery) Reset ¶
func (m *RoleSingleQuery) Reset()
func (*RoleSingleQuery) String ¶
func (m *RoleSingleQuery) String() string
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
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
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
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
type SearchUserMetaRequest ¶
type SearchUserMetaRequest struct { MetaUuids []string `protobuf:"bytes,1,rep,name=MetaUuids" json:"MetaUuids,omitempty"` NodeUuids []string `protobuf:"bytes,2,rep,name=NodeUuids" json:"NodeUuids,omitempty"` Namespace string `protobuf:"bytes,3,opt,name=Namespace" json:"Namespace,omitempty"` ResourceSubjectOwner string `protobuf:"bytes,4,opt,name=ResourceSubjectOwner" json:"ResourceSubjectOwner,omitempty"` 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
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
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
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
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
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
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
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
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
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
type UpdateUserMetaRequest ¶
type UpdateUserMetaRequest struct { Operation UpdateUserMetaRequest_UserMetaOp `protobuf:"varint,1,opt,name=Operation,enum=idm.UpdateUserMetaRequest_UserMetaOp" json:"Operation,omitempty"` 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
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 {
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
type User ¶
type User struct { Uuid string `protobuf:"bytes,1,opt,name=Uuid" json:"Uuid,omitempty"` GroupPath string `protobuf:"bytes,2,opt,name=GroupPath" json:"GroupPath,omitempty"` Attributes map[string]string `` /* 140-byte string literal not displayed */ Roles []*Role `protobuf:"bytes,4,rep,name=Roles" json:"Roles,omitempty"` // User specific data Login string `protobuf:"bytes,5,opt,name=Login" json:"Login,omitempty"` Password string `protobuf:"bytes,6,opt,name=Password" json:"Password,omitempty"` OldPassword string `protobuf:"bytes,11,opt,name=OldPassword" json:"OldPassword,omitempty"` // Group specific data IsGroup bool `protobuf:"varint,7,opt,name=IsGroup" json:"IsGroup,omitempty"` GroupLabel string `protobuf:"bytes,8,opt,name=GroupLabel" json:"GroupLabel,omitempty"` Policies []*service.ResourcePolicy `protobuf:"bytes,9,rep,name=Policies" json:"Policies,omitempty"` PoliciesContextEditable bool `protobuf:"varint,10,opt,name=PoliciesContextEditable" json:"PoliciesContextEditable,omitempty"` }
func (*User) Descriptor ¶
func (*User) GetAttributes ¶
func (*User) GetGroupLabel ¶
func (*User) GetGroupPath ¶
func (*User) GetIsGroup ¶
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 { Uuid string `protobuf:"bytes,1,opt,name=Uuid" json:"Uuid,omitempty"` NodeUuid string `protobuf:"bytes,2,opt,name=NodeUuid" json:"NodeUuid,omitempty"` Namespace string `protobuf:"bytes,3,opt,name=Namespace" json:"Namespace,omitempty"` JsonValue string `protobuf:"bytes,4,opt,name=JsonValue" json:"JsonValue,omitempty"` Policies []*service.ResourcePolicy `protobuf:"bytes,5,rep,name=Policies" json:"Policies,omitempty"` 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 string `protobuf:"bytes,1,opt,name=Namespace" json:"Namespace,omitempty"` Label string `protobuf:"bytes,2,opt,name=Label" json:"Label,omitempty"` Order int32 `protobuf:"varint,3,opt,name=Order" json:"Order,omitempty"` Indexable bool `protobuf:"varint,4,opt,name=Indexable" json:"Indexable,omitempty"` JsonDefinition string `protobuf:"bytes,5,opt,name=JsonDefinition" json:"JsonDefinition,omitempty"` 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
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"` 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) GetFullPath ¶
func (m *UserSingleQuery) GetFullPath() string
func (*UserSingleQuery) GetGroupPath ¶
func (m *UserSingleQuery) GetGroupPath() 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) ProtoMessage ¶
func (*UserSingleQuery) ProtoMessage()
func (*UserSingleQuery) Reset ¶
func (m *UserSingleQuery) Reset()
func (*UserSingleQuery) String ¶
func (m *UserSingleQuery) String() string
type Workspace ¶
type Workspace 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 int32 `protobuf:"varint,6,opt,name=LastUpdated" json:"LastUpdated,omitempty"` Policies []*service.ResourcePolicy `protobuf:"bytes,7,rep,name=Policies" json:"Policies,omitempty"` Attributes string `protobuf:"bytes,8,opt,name=Attributes" json:"Attributes,omitempty"` RootUUIDs []string `protobuf:"bytes,9,rep,name=RootUUIDs" json:"RootUUIDs,omitempty"` RootNodes map[string]*tree.Node `` /* 139-byte string literal not displayed */ PoliciesContextEditable bool `protobuf:"varint,12,opt,name=PoliciesContextEditable" json:"PoliciesContextEditable,omitempty"` }
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"` Not bool `protobuf:"varint,6,opt,name=not" json:"not,omitempty"` }
func (*WorkspaceSingleQuery) Descriptor ¶
func (*WorkspaceSingleQuery) Descriptor() ([]byte, []int)
func (*WorkspaceSingleQuery) GetDescription ¶
func (m *WorkspaceSingleQuery) GetDescription() string
func (*WorkspaceSingleQuery) GetLabel ¶
func (m *WorkspaceSingleQuery) GetLabel() 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) ProtoMessage ¶
func (*WorkspaceSingleQuery) ProtoMessage()
func (*WorkspaceSingleQuery) Reset ¶
func (m *WorkspaceSingleQuery) Reset()
func (*WorkspaceSingleQuery) String ¶
func (m *WorkspaceSingleQuery) String() string