Documentation ¶
Index ¶
- Variables
- func RegisterIAMRoleServiceServer(s grpc.ServiceRegistrar, srv IAMRoleServiceServer)
- type AddPolicyRequest
- func (*AddPolicyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddPolicyRequest) GetPolicyNamespace() string
- func (x *AddPolicyRequest) GetPolicyUUID() string
- func (x *AddPolicyRequest) GetRoleNamespace() string
- func (x *AddPolicyRequest) GetRoleUUID() string
- func (*AddPolicyRequest) ProtoMessage()
- func (x *AddPolicyRequest) ProtoReflect() protoreflect.Message
- func (x *AddPolicyRequest) Reset()
- func (x *AddPolicyRequest) String() string
- type AddPolicyResponse
- type AssignedPolicy
- func (*AssignedPolicy) Descriptor() ([]byte, []int)deprecated
- func (x *AssignedPolicy) GetNamespace() string
- func (x *AssignedPolicy) GetUuid() string
- func (*AssignedPolicy) ProtoMessage()
- func (x *AssignedPolicy) ProtoReflect() protoreflect.Message
- func (x *AssignedPolicy) Reset()
- func (x *AssignedPolicy) String() string
- type BuiltInManagedData
- func (*BuiltInManagedData) Descriptor() ([]byte, []int)deprecated
- func (x *BuiltInManagedData) GetType() BuiltInRoleType
- func (*BuiltInManagedData) ProtoMessage()
- func (x *BuiltInManagedData) ProtoReflect() protoreflect.Message
- func (x *BuiltInManagedData) Reset()
- func (x *BuiltInManagedData) String() string
- type BuiltInRoleType
- func (BuiltInRoleType) Descriptor() protoreflect.EnumDescriptor
- func (x BuiltInRoleType) Enum() *BuiltInRoleType
- func (BuiltInRoleType) EnumDescriptor() ([]byte, []int)deprecated
- func (x BuiltInRoleType) Number() protoreflect.EnumNumber
- func (x BuiltInRoleType) String() string
- func (BuiltInRoleType) Type() protoreflect.EnumType
- type CountRolesRequest
- func (*CountRolesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CountRolesRequest) GetNamespace() string
- func (x *CountRolesRequest) GetUseCache() bool
- func (*CountRolesRequest) ProtoMessage()
- func (x *CountRolesRequest) ProtoReflect() protoreflect.Message
- func (x *CountRolesRequest) Reset()
- func (x *CountRolesRequest) String() string
- type CountRolesResponse
- func (*CountRolesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CountRolesResponse) GetCount() uint64
- func (*CountRolesResponse) ProtoMessage()
- func (x *CountRolesResponse) ProtoReflect() protoreflect.Message
- func (x *CountRolesResponse) Reset()
- func (x *CountRolesResponse) String() string
- type CreateRoleRequest
- func (*CreateRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRoleRequest) GetDescription() string
- func (x *CreateRoleRequest) GetIdentity() *IdentityManagedData
- func (m *CreateRoleRequest) GetManaged() isCreateRoleRequest_Managed
- func (x *CreateRoleRequest) GetName() string
- func (x *CreateRoleRequest) GetNamespace() string
- func (x *CreateRoleRequest) GetNo() *NotManagedData
- func (x *CreateRoleRequest) GetService() *ServiceManagedData
- func (*CreateRoleRequest) ProtoMessage()
- func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRoleRequest) Reset()
- func (x *CreateRoleRequest) String() string
- type CreateRoleRequest_Identity
- type CreateRoleRequest_No
- type CreateRoleRequest_Service
- type CreateRoleResponse
- type DeleteRoleRequest
- func (*DeleteRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRoleRequest) GetNamespace() string
- func (x *DeleteRoleRequest) GetUuid() string
- func (*DeleteRoleRequest) ProtoMessage()
- func (x *DeleteRoleRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRoleRequest) Reset()
- func (x *DeleteRoleRequest) String() string
- type DeleteRoleResponse
- func (*DeleteRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRoleResponse) GetExisted() bool
- func (*DeleteRoleResponse) ProtoMessage()
- func (x *DeleteRoleResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteRoleResponse) Reset()
- func (x *DeleteRoleResponse) String() string
- type ExistRoleRequest
- func (*ExistRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExistRoleRequest) GetNamespace() string
- func (x *ExistRoleRequest) GetUseCache() bool
- func (x *ExistRoleRequest) GetUuid() string
- func (*ExistRoleRequest) ProtoMessage()
- func (x *ExistRoleRequest) ProtoReflect() protoreflect.Message
- func (x *ExistRoleRequest) Reset()
- func (x *ExistRoleRequest) String() string
- type ExistRoleResponse
- type GetBuiltInRoleRequest
- func (*GetBuiltInRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBuiltInRoleRequest) GetNamespace() string
- func (x *GetBuiltInRoleRequest) GetType() BuiltInRoleType
- func (*GetBuiltInRoleRequest) ProtoMessage()
- func (x *GetBuiltInRoleRequest) ProtoReflect() protoreflect.Message
- func (x *GetBuiltInRoleRequest) Reset()
- func (x *GetBuiltInRoleRequest) String() string
- type GetBuiltInRoleResponse
- func (*GetBuiltInRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBuiltInRoleResponse) GetRole() *Role
- func (*GetBuiltInRoleResponse) ProtoMessage()
- func (x *GetBuiltInRoleResponse) ProtoReflect() protoreflect.Message
- func (x *GetBuiltInRoleResponse) Reset()
- func (x *GetBuiltInRoleResponse) String() string
- type GetMultipleRolesRequest
- func (*GetMultipleRolesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMultipleRolesRequest) GetRoles() []*GetMultipleRolesRequest_RequestedRole
- func (*GetMultipleRolesRequest) ProtoMessage()
- func (x *GetMultipleRolesRequest) ProtoReflect() protoreflect.Message
- func (x *GetMultipleRolesRequest) Reset()
- func (x *GetMultipleRolesRequest) String() string
- type GetMultipleRolesRequest_RequestedRole
- func (*GetMultipleRolesRequest_RequestedRole) Descriptor() ([]byte, []int)deprecated
- func (x *GetMultipleRolesRequest_RequestedRole) GetNamespace() string
- func (x *GetMultipleRolesRequest_RequestedRole) GetUuid() string
- func (*GetMultipleRolesRequest_RequestedRole) ProtoMessage()
- func (x *GetMultipleRolesRequest_RequestedRole) ProtoReflect() protoreflect.Message
- func (x *GetMultipleRolesRequest_RequestedRole) Reset()
- func (x *GetMultipleRolesRequest_RequestedRole) String() string
- type GetMultipleRolesResponse
- func (*GetMultipleRolesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetMultipleRolesResponse) GetRole() *Role
- func (*GetMultipleRolesResponse) ProtoMessage()
- func (x *GetMultipleRolesResponse) ProtoReflect() protoreflect.Message
- func (x *GetMultipleRolesResponse) Reset()
- func (x *GetMultipleRolesResponse) String() string
- type GetRoleRequest
- func (*GetRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRoleRequest) GetNamespace() string
- func (x *GetRoleRequest) GetUseCache() bool
- func (x *GetRoleRequest) GetUuid() string
- func (*GetRoleRequest) ProtoMessage()
- func (x *GetRoleRequest) ProtoReflect() protoreflect.Message
- func (x *GetRoleRequest) Reset()
- func (x *GetRoleRequest) String() string
- type GetRoleResponse
- type GetServiceManagedRoleRequest
- func (*GetServiceManagedRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetServiceManagedRoleRequest) GetManagedId() string
- func (x *GetServiceManagedRoleRequest) GetNamespace() string
- func (x *GetServiceManagedRoleRequest) GetService() string
- func (x *GetServiceManagedRoleRequest) GetUseCache() bool
- func (*GetServiceManagedRoleRequest) ProtoMessage()
- func (x *GetServiceManagedRoleRequest) ProtoReflect() protoreflect.Message
- func (x *GetServiceManagedRoleRequest) Reset()
- func (x *GetServiceManagedRoleRequest) String() string
- type GetServiceManagedRoleResponse
- func (*GetServiceManagedRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetServiceManagedRoleResponse) GetRole() *Role
- func (*GetServiceManagedRoleResponse) ProtoMessage()
- func (x *GetServiceManagedRoleResponse) ProtoReflect() protoreflect.Message
- func (x *GetServiceManagedRoleResponse) Reset()
- func (x *GetServiceManagedRoleResponse) String() string
- type IAMRoleServiceClient
- type IAMRoleServiceServer
- type IAMRoleService_GetMultipleClient
- type IAMRoleService_GetMultipleServer
- type IAMRoleService_ListClient
- type IAMRoleService_ListServer
- type IdentityManagedData
- func (*IdentityManagedData) Descriptor() ([]byte, []int)deprecated
- func (x *IdentityManagedData) GetIdentityNamespace() string
- func (x *IdentityManagedData) GetIdentityUUID() string
- func (*IdentityManagedData) ProtoMessage()
- func (x *IdentityManagedData) ProtoReflect() protoreflect.Message
- func (x *IdentityManagedData) Reset()
- func (x *IdentityManagedData) String() string
- type ListRolesRequest
- func (*ListRolesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRolesRequest) GetLimit() uint64
- func (x *ListRolesRequest) GetNamespace() string
- func (x *ListRolesRequest) GetSkip() uint64
- func (*ListRolesRequest) ProtoMessage()
- func (x *ListRolesRequest) ProtoReflect() protoreflect.Message
- func (x *ListRolesRequest) Reset()
- func (x *ListRolesRequest) String() string
- type ListRolesResponse
- type NotManagedData
- type RemovePolicyRequest
- func (*RemovePolicyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemovePolicyRequest) GetPolicyNamespace() string
- func (x *RemovePolicyRequest) GetPolicyUUID() string
- func (x *RemovePolicyRequest) GetRoleNamespace() string
- func (x *RemovePolicyRequest) GetRoleUUID() string
- func (*RemovePolicyRequest) ProtoMessage()
- func (x *RemovePolicyRequest) ProtoReflect() protoreflect.Message
- func (x *RemovePolicyRequest) Reset()
- func (x *RemovePolicyRequest) String() string
- type RemovePolicyResponse
- func (*RemovePolicyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RemovePolicyResponse) GetRole() *Role
- func (*RemovePolicyResponse) ProtoMessage()
- func (x *RemovePolicyResponse) ProtoReflect() protoreflect.Message
- func (x *RemovePolicyResponse) Reset()
- func (x *RemovePolicyResponse) String() string
- type Role
- func (*Role) Descriptor() ([]byte, []int)deprecated
- func (x *Role) GetBuiltIn() *BuiltInManagedData
- func (x *Role) GetCreated() *timestamp.Timestamp
- func (x *Role) GetDescription() string
- func (x *Role) GetIdentity() *IdentityManagedData
- func (m *Role) GetManaged() isRole_Managed
- func (x *Role) GetName() string
- func (x *Role) GetNamespace() string
- func (x *Role) GetNo() *NotManagedData
- func (x *Role) GetPolicies() []*AssignedPolicy
- func (x *Role) GetService() *ServiceManagedData
- func (x *Role) GetTags() []string
- func (x *Role) GetUpdated() *timestamp.Timestamp
- func (x *Role) GetUuid() string
- func (x *Role) GetVersion() uint64
- func (*Role) ProtoMessage()
- func (x *Role) ProtoReflect() protoreflect.Message
- func (x *Role) Reset()
- func (x *Role) String() string
- type Role_BuiltIn
- type Role_Identity
- type Role_No
- type Role_Service
- type ServiceManagedData
- func (*ServiceManagedData) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceManagedData) GetManagementId() string
- func (x *ServiceManagedData) GetReason() string
- func (x *ServiceManagedData) GetService() string
- func (*ServiceManagedData) ProtoMessage()
- func (x *ServiceManagedData) ProtoReflect() protoreflect.Message
- func (x *ServiceManagedData) Reset()
- func (x *ServiceManagedData) String() string
- type UnimplementedIAMRoleServiceServer
- func (UnimplementedIAMRoleServiceServer) AddPolicy(context.Context, *AddPolicyRequest) (*AddPolicyResponse, error)
- func (UnimplementedIAMRoleServiceServer) Count(context.Context, *CountRolesRequest) (*CountRolesResponse, error)
- func (UnimplementedIAMRoleServiceServer) Create(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error)
- func (UnimplementedIAMRoleServiceServer) Delete(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error)
- func (UnimplementedIAMRoleServiceServer) Exist(context.Context, *ExistRoleRequest) (*ExistRoleResponse, error)
- func (UnimplementedIAMRoleServiceServer) Get(context.Context, *GetRoleRequest) (*GetRoleResponse, error)
- func (UnimplementedIAMRoleServiceServer) GetBuiltInRole(context.Context, *GetBuiltInRoleRequest) (*GetBuiltInRoleResponse, error)
- func (UnimplementedIAMRoleServiceServer) GetMultiple(*GetMultipleRolesRequest, IAMRoleService_GetMultipleServer) error
- func (UnimplementedIAMRoleServiceServer) GetServiceManagedRole(context.Context, *GetServiceManagedRoleRequest) (*GetServiceManagedRoleResponse, error)
- func (UnimplementedIAMRoleServiceServer) List(*ListRolesRequest, IAMRoleService_ListServer) error
- func (UnimplementedIAMRoleServiceServer) RemovePolicy(context.Context, *RemovePolicyRequest) (*RemovePolicyResponse, error)
- func (UnimplementedIAMRoleServiceServer) Update(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error)
- type UnsafeIAMRoleServiceServer
- type UpdateRoleRequest
- func (*UpdateRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRoleRequest) GetNamespace() string
- func (x *UpdateRoleRequest) GetNewDescription() string
- func (x *UpdateRoleRequest) GetNewName() string
- func (x *UpdateRoleRequest) GetUuid() string
- func (*UpdateRoleRequest) ProtoMessage()
- func (x *UpdateRoleRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRoleRequest) Reset()
- func (x *UpdateRoleRequest) String() string
- type UpdateRoleResponse
Constants ¶
This section is empty.
Variables ¶
var ( BuiltInRoleType_name = map[int32]string{ 0: "GLOBAL_ROOT", 1: "NAMESPACE_ROOT", 2: "EMPTY", } BuiltInRoleType_value = map[string]int32{ "GLOBAL_ROOT": 0, "NAMESPACE_ROOT": 1, "EMPTY": 2, } )
Enum value maps for BuiltInRoleType.
var File_role_proto protoreflect.FileDescriptor
var IAMRoleService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "native_iam_role.IAMRoleService", HandlerType: (*IAMRoleServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _IAMRoleService_Create_Handler, }, { MethodName: "Get", Handler: _IAMRoleService_Get_Handler, }, { MethodName: "Count", Handler: _IAMRoleService_Count_Handler, }, { MethodName: "Update", Handler: _IAMRoleService_Update_Handler, }, { MethodName: "Delete", Handler: _IAMRoleService_Delete_Handler, }, { MethodName: "GetServiceManagedRole", Handler: _IAMRoleService_GetServiceManagedRole_Handler, }, { MethodName: "GetBuiltInRole", Handler: _IAMRoleService_GetBuiltInRole_Handler, }, { MethodName: "AddPolicy", Handler: _IAMRoleService_AddPolicy_Handler, }, { MethodName: "RemovePolicy", Handler: _IAMRoleService_RemovePolicy_Handler, }, { MethodName: "Exist", Handler: _IAMRoleService_Exist_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetMultiple", Handler: _IAMRoleService_GetMultiple_Handler, ServerStreams: true, }, { StreamName: "List", Handler: _IAMRoleService_List_Handler, ServerStreams: true, }, }, Metadata: "role.proto", }
IAMRoleService_ServiceDesc is the grpc.ServiceDesc for IAMRoleService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterIAMRoleServiceServer ¶
func RegisterIAMRoleServiceServer(s grpc.ServiceRegistrar, srv IAMRoleServiceServer)
Types ¶
type AddPolicyRequest ¶
type AddPolicyRequest struct { // Namespace where role is located RoleNamespace string `protobuf:"bytes,1,opt,name=roleNamespace,proto3" json:"roleNamespace,omitempty"` // Unique identifier of the role RoleUUID string `protobuf:"bytes,2,opt,name=roleUUID,proto3" json:"roleUUID,omitempty"` // Namespace where policy is located PolicyNamespace string `protobuf:"bytes,3,opt,name=policyNamespace,proto3" json:"policyNamespace,omitempty"` // Unique identifier of the policy PolicyUUID string `protobuf:"bytes,4,opt,name=policyUUID,proto3" json:"policyUUID,omitempty"` // contains filtered or unexported fields }
func (*AddPolicyRequest) Descriptor
deprecated
func (*AddPolicyRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddPolicyRequest.ProtoReflect.Descriptor instead.
func (*AddPolicyRequest) GetPolicyNamespace ¶
func (x *AddPolicyRequest) GetPolicyNamespace() string
func (*AddPolicyRequest) GetPolicyUUID ¶
func (x *AddPolicyRequest) GetPolicyUUID() string
func (*AddPolicyRequest) GetRoleNamespace ¶
func (x *AddPolicyRequest) GetRoleNamespace() string
func (*AddPolicyRequest) GetRoleUUID ¶
func (x *AddPolicyRequest) GetRoleUUID() string
func (*AddPolicyRequest) ProtoMessage ¶
func (*AddPolicyRequest) ProtoMessage()
func (*AddPolicyRequest) ProtoReflect ¶
func (x *AddPolicyRequest) ProtoReflect() protoreflect.Message
func (*AddPolicyRequest) Reset ¶
func (x *AddPolicyRequest) Reset()
func (*AddPolicyRequest) String ¶
func (x *AddPolicyRequest) String() string
type AddPolicyResponse ¶
type AddPolicyResponse struct { // Role after this operation Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*AddPolicyResponse) Descriptor
deprecated
func (*AddPolicyResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddPolicyResponse.ProtoReflect.Descriptor instead.
func (*AddPolicyResponse) GetRole ¶
func (x *AddPolicyResponse) GetRole() *Role
func (*AddPolicyResponse) ProtoMessage ¶
func (*AddPolicyResponse) ProtoMessage()
func (*AddPolicyResponse) ProtoReflect ¶
func (x *AddPolicyResponse) ProtoReflect() protoreflect.Message
func (*AddPolicyResponse) Reset ¶
func (x *AddPolicyResponse) Reset()
func (*AddPolicyResponse) String ¶
func (x *AddPolicyResponse) String() string
type AssignedPolicy ¶
type AssignedPolicy struct { // Namespace of the assigned policy Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Unique identifier of the assigned policy inside namespace Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
Respresents pointer to the assigned policy
func (*AssignedPolicy) Descriptor
deprecated
func (*AssignedPolicy) Descriptor() ([]byte, []int)
Deprecated: Use AssignedPolicy.ProtoReflect.Descriptor instead.
func (*AssignedPolicy) GetNamespace ¶
func (x *AssignedPolicy) GetNamespace() string
func (*AssignedPolicy) GetUuid ¶
func (x *AssignedPolicy) GetUuid() string
func (*AssignedPolicy) ProtoMessage ¶
func (*AssignedPolicy) ProtoMessage()
func (*AssignedPolicy) ProtoReflect ¶
func (x *AssignedPolicy) ProtoReflect() protoreflect.Message
func (*AssignedPolicy) Reset ¶
func (x *AssignedPolicy) Reset()
func (*AssignedPolicy) String ¶
func (x *AssignedPolicy) String() string
type BuiltInManagedData ¶
type BuiltInManagedData struct { // Type of the builtin role Type BuiltInRoleType `protobuf:"varint,1,opt,name=type,proto3,enum=native_iam_role.BuiltInRoleType" json:"type,omitempty"` // contains filtered or unexported fields }
Information about built in role
func (*BuiltInManagedData) Descriptor
deprecated
func (*BuiltInManagedData) Descriptor() ([]byte, []int)
Deprecated: Use BuiltInManagedData.ProtoReflect.Descriptor instead.
func (*BuiltInManagedData) GetType ¶
func (x *BuiltInManagedData) GetType() BuiltInRoleType
func (*BuiltInManagedData) ProtoMessage ¶
func (*BuiltInManagedData) ProtoMessage()
func (*BuiltInManagedData) ProtoReflect ¶
func (x *BuiltInManagedData) ProtoReflect() protoreflect.Message
func (*BuiltInManagedData) Reset ¶
func (x *BuiltInManagedData) Reset()
func (*BuiltInManagedData) String ¶
func (x *BuiltInManagedData) String() string
type BuiltInRoleType ¶
type BuiltInRoleType int32
const ( // Role with full access to everything BuiltInRoleType_GLOBAL_ROOT BuiltInRoleType = 0 // Role with full access to namespace BuiltInRoleType_NAMESPACE_ROOT BuiltInRoleType = 1 // Empty role that gives nothing. Use it if you want to correlate something with namespace but dont want to give any permisions. BuiltInRoleType_EMPTY BuiltInRoleType = 2 )
func (BuiltInRoleType) Descriptor ¶
func (BuiltInRoleType) Descriptor() protoreflect.EnumDescriptor
func (BuiltInRoleType) Enum ¶
func (x BuiltInRoleType) Enum() *BuiltInRoleType
func (BuiltInRoleType) EnumDescriptor
deprecated
func (BuiltInRoleType) EnumDescriptor() ([]byte, []int)
Deprecated: Use BuiltInRoleType.Descriptor instead.
func (BuiltInRoleType) Number ¶
func (x BuiltInRoleType) Number() protoreflect.EnumNumber
func (BuiltInRoleType) String ¶
func (x BuiltInRoleType) String() string
func (BuiltInRoleType) Type ¶
func (BuiltInRoleType) Type() protoreflect.EnumType
type CountRolesRequest ¶
type CountRolesRequest struct { // Namespace where to count roles Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Use cache or not. Cached role data may not be actual under very rare conditions. Invalid cache data is automatically clear after short period of time. UseCache bool `protobuf:"varint,2,opt,name=useCache,proto3" json:"useCache,omitempty"` // contains filtered or unexported fields }
func (*CountRolesRequest) Descriptor
deprecated
func (*CountRolesRequest) Descriptor() ([]byte, []int)
Deprecated: Use CountRolesRequest.ProtoReflect.Descriptor instead.
func (*CountRolesRequest) GetNamespace ¶
func (x *CountRolesRequest) GetNamespace() string
func (*CountRolesRequest) GetUseCache ¶
func (x *CountRolesRequest) GetUseCache() bool
func (*CountRolesRequest) ProtoMessage ¶
func (*CountRolesRequest) ProtoMessage()
func (*CountRolesRequest) ProtoReflect ¶
func (x *CountRolesRequest) ProtoReflect() protoreflect.Message
func (*CountRolesRequest) Reset ¶
func (x *CountRolesRequest) Reset()
func (*CountRolesRequest) String ¶
func (x *CountRolesRequest) String() string
type CountRolesResponse ¶
type CountRolesResponse struct { // Total count of roles in the namespace Count uint64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*CountRolesResponse) Descriptor
deprecated
func (*CountRolesResponse) Descriptor() ([]byte, []int)
Deprecated: Use CountRolesResponse.ProtoReflect.Descriptor instead.
func (*CountRolesResponse) GetCount ¶
func (x *CountRolesResponse) GetCount() uint64
func (*CountRolesResponse) ProtoMessage ¶
func (*CountRolesResponse) ProtoMessage()
func (*CountRolesResponse) ProtoReflect ¶
func (x *CountRolesResponse) ProtoReflect() protoreflect.Message
func (*CountRolesResponse) Reset ¶
func (x *CountRolesResponse) Reset()
func (*CountRolesResponse) String ¶
func (x *CountRolesResponse) String() string
type CreateRoleRequest ¶
type CreateRoleRequest struct { // Namespace where role will be located. Leave empty for global role. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Short, human-readable name Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // Arbitrary description Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // //Indicates if this role is managed by someone else. // //This is only a flag to inform everyone that it is managed by third party actor and //manual interaction with this role may result in big problems. In order to interact with the role, //you should ask someone who manages this role to do something for you. // //There are several possible managements: //NotManaged* - there is no clear actor responsible for this role //BuiltIn* - this is predefined role that doesn't belong to any service. The list is predefined. For example "GLOBAL_ROOT" role. Cant be created using this request. //Identity* - this role was created by identity. This identity is responsible for it //Service* - this role was create by one of the services. This services now manages this role. // // Types that are assignable to Managed: // *CreateRoleRequest_No // *CreateRoleRequest_Identity // *CreateRoleRequest_Service Managed isCreateRoleRequest_Managed `protobuf_oneof:"managed"` // contains filtered or unexported fields }
func (*CreateRoleRequest) Descriptor
deprecated
func (*CreateRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleRequest.ProtoReflect.Descriptor instead.
func (*CreateRoleRequest) GetDescription ¶
func (x *CreateRoleRequest) GetDescription() string
func (*CreateRoleRequest) GetIdentity ¶
func (x *CreateRoleRequest) GetIdentity() *IdentityManagedData
func (*CreateRoleRequest) GetManaged ¶
func (m *CreateRoleRequest) GetManaged() isCreateRoleRequest_Managed
func (*CreateRoleRequest) GetName ¶
func (x *CreateRoleRequest) GetName() string
func (*CreateRoleRequest) GetNamespace ¶
func (x *CreateRoleRequest) GetNamespace() string
func (*CreateRoleRequest) GetNo ¶
func (x *CreateRoleRequest) GetNo() *NotManagedData
func (*CreateRoleRequest) GetService ¶
func (x *CreateRoleRequest) GetService() *ServiceManagedData
func (*CreateRoleRequest) ProtoMessage ¶
func (*CreateRoleRequest) ProtoMessage()
func (*CreateRoleRequest) ProtoReflect ¶
func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message
func (*CreateRoleRequest) Reset ¶
func (x *CreateRoleRequest) Reset()
func (*CreateRoleRequest) String ¶
func (x *CreateRoleRequest) String() string
type CreateRoleRequest_Identity ¶
type CreateRoleRequest_Identity struct { // Role is managed by identity Identity *IdentityManagedData `protobuf:"bytes,11,opt,name=identity,proto3,oneof"` }
type CreateRoleRequest_No ¶
type CreateRoleRequest_No struct { // Role is not managed No *NotManagedData `protobuf:"bytes,10,opt,name=no,proto3,oneof"` }
type CreateRoleRequest_Service ¶
type CreateRoleRequest_Service struct { // Role is managed by service Service *ServiceManagedData `protobuf:"bytes,12,opt,name=service,proto3,oneof"` }
type CreateRoleResponse ¶
type CreateRoleResponse struct { // Created role Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*CreateRoleResponse) Descriptor
deprecated
func (*CreateRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleResponse.ProtoReflect.Descriptor instead.
func (*CreateRoleResponse) GetRole ¶
func (x *CreateRoleResponse) GetRole() *Role
func (*CreateRoleResponse) ProtoMessage ¶
func (*CreateRoleResponse) ProtoMessage()
func (*CreateRoleResponse) ProtoReflect ¶
func (x *CreateRoleResponse) ProtoReflect() protoreflect.Message
func (*CreateRoleResponse) Reset ¶
func (x *CreateRoleResponse) Reset()
func (*CreateRoleResponse) String ¶
func (x *CreateRoleResponse) String() string
type DeleteRoleRequest ¶
type DeleteRoleRequest struct { // Namespace where to search for role. Leave empty for global role. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Unique identifier of the role inside searched namespace Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
func (*DeleteRoleRequest) Descriptor
deprecated
func (*DeleteRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRoleRequest.ProtoReflect.Descriptor instead.
func (*DeleteRoleRequest) GetNamespace ¶
func (x *DeleteRoleRequest) GetNamespace() string
func (*DeleteRoleRequest) GetUuid ¶
func (x *DeleteRoleRequest) GetUuid() string
func (*DeleteRoleRequest) ProtoMessage ¶
func (*DeleteRoleRequest) ProtoMessage()
func (*DeleteRoleRequest) ProtoReflect ¶
func (x *DeleteRoleRequest) ProtoReflect() protoreflect.Message
func (*DeleteRoleRequest) Reset ¶
func (x *DeleteRoleRequest) Reset()
func (*DeleteRoleRequest) String ¶
func (x *DeleteRoleRequest) String() string
type DeleteRoleResponse ¶
type DeleteRoleResponse struct { // Indicates if role existed before this request. Existed bool `protobuf:"varint,1,opt,name=existed,proto3" json:"existed,omitempty"` // contains filtered or unexported fields }
func (*DeleteRoleResponse) Descriptor
deprecated
func (*DeleteRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRoleResponse.ProtoReflect.Descriptor instead.
func (*DeleteRoleResponse) GetExisted ¶
func (x *DeleteRoleResponse) GetExisted() bool
func (*DeleteRoleResponse) ProtoMessage ¶
func (*DeleteRoleResponse) ProtoMessage()
func (*DeleteRoleResponse) ProtoReflect ¶
func (x *DeleteRoleResponse) ProtoReflect() protoreflect.Message
func (*DeleteRoleResponse) Reset ¶
func (x *DeleteRoleResponse) Reset()
func (*DeleteRoleResponse) String ¶
func (x *DeleteRoleResponse) String() string
type ExistRoleRequest ¶
type ExistRoleRequest struct { // Namespace where to search for role. Leave empty for global role. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Unique identifier of the role inside searched namespace Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` // Use cache or not. Cached role data may not be actual under very rare conditions. Invalid cache data is automatically clear after short period of time. UseCache bool `protobuf:"varint,3,opt,name=useCache,proto3" json:"useCache,omitempty"` // contains filtered or unexported fields }
func (*ExistRoleRequest) Descriptor
deprecated
func (*ExistRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExistRoleRequest.ProtoReflect.Descriptor instead.
func (*ExistRoleRequest) GetNamespace ¶
func (x *ExistRoleRequest) GetNamespace() string
func (*ExistRoleRequest) GetUseCache ¶
func (x *ExistRoleRequest) GetUseCache() bool
func (*ExistRoleRequest) GetUuid ¶
func (x *ExistRoleRequest) GetUuid() string
func (*ExistRoleRequest) ProtoMessage ¶
func (*ExistRoleRequest) ProtoMessage()
func (*ExistRoleRequest) ProtoReflect ¶
func (x *ExistRoleRequest) ProtoReflect() protoreflect.Message
func (*ExistRoleRequest) Reset ¶
func (x *ExistRoleRequest) Reset()
func (*ExistRoleRequest) String ¶
func (x *ExistRoleRequest) String() string
type ExistRoleResponse ¶
type ExistRoleResponse struct { // Indicates if role exists or not Exist bool `protobuf:"varint,1,opt,name=exist,proto3" json:"exist,omitempty"` // contains filtered or unexported fields }
func (*ExistRoleResponse) Descriptor
deprecated
func (*ExistRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExistRoleResponse.ProtoReflect.Descriptor instead.
func (*ExistRoleResponse) GetExist ¶
func (x *ExistRoleResponse) GetExist() bool
func (*ExistRoleResponse) ProtoMessage ¶
func (*ExistRoleResponse) ProtoMessage()
func (*ExistRoleResponse) ProtoReflect ¶
func (x *ExistRoleResponse) ProtoReflect() protoreflect.Message
func (*ExistRoleResponse) Reset ¶
func (x *ExistRoleResponse) Reset()
func (*ExistRoleResponse) String ¶
func (x *ExistRoleResponse) String() string
type GetBuiltInRoleRequest ¶
type GetBuiltInRoleRequest struct { // Namespace where to get builtin role. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Type of the role to search Type BuiltInRoleType `protobuf:"varint,2,opt,name=type,proto3,enum=native_iam_role.BuiltInRoleType" json:"type,omitempty"` // contains filtered or unexported fields }
func (*GetBuiltInRoleRequest) Descriptor
deprecated
func (*GetBuiltInRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBuiltInRoleRequest.ProtoReflect.Descriptor instead.
func (*GetBuiltInRoleRequest) GetNamespace ¶
func (x *GetBuiltInRoleRequest) GetNamespace() string
func (*GetBuiltInRoleRequest) GetType ¶
func (x *GetBuiltInRoleRequest) GetType() BuiltInRoleType
func (*GetBuiltInRoleRequest) ProtoMessage ¶
func (*GetBuiltInRoleRequest) ProtoMessage()
func (*GetBuiltInRoleRequest) ProtoReflect ¶
func (x *GetBuiltInRoleRequest) ProtoReflect() protoreflect.Message
func (*GetBuiltInRoleRequest) Reset ¶
func (x *GetBuiltInRoleRequest) Reset()
func (*GetBuiltInRoleRequest) String ¶
func (x *GetBuiltInRoleRequest) String() string
type GetBuiltInRoleResponse ¶
type GetBuiltInRoleResponse struct { Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*GetBuiltInRoleResponse) Descriptor
deprecated
func (*GetBuiltInRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBuiltInRoleResponse.ProtoReflect.Descriptor instead.
func (*GetBuiltInRoleResponse) GetRole ¶
func (x *GetBuiltInRoleResponse) GetRole() *Role
func (*GetBuiltInRoleResponse) ProtoMessage ¶
func (*GetBuiltInRoleResponse) ProtoMessage()
func (*GetBuiltInRoleResponse) ProtoReflect ¶
func (x *GetBuiltInRoleResponse) ProtoReflect() protoreflect.Message
func (*GetBuiltInRoleResponse) Reset ¶
func (x *GetBuiltInRoleResponse) Reset()
func (*GetBuiltInRoleResponse) String ¶
func (x *GetBuiltInRoleResponse) String() string
type GetMultipleRolesRequest ¶
type GetMultipleRolesRequest struct { // List of roles to get Roles []*GetMultipleRolesRequest_RequestedRole `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
func (*GetMultipleRolesRequest) Descriptor
deprecated
func (*GetMultipleRolesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMultipleRolesRequest.ProtoReflect.Descriptor instead.
func (*GetMultipleRolesRequest) GetRoles ¶
func (x *GetMultipleRolesRequest) GetRoles() []*GetMultipleRolesRequest_RequestedRole
func (*GetMultipleRolesRequest) ProtoMessage ¶
func (*GetMultipleRolesRequest) ProtoMessage()
func (*GetMultipleRolesRequest) ProtoReflect ¶
func (x *GetMultipleRolesRequest) ProtoReflect() protoreflect.Message
func (*GetMultipleRolesRequest) Reset ¶
func (x *GetMultipleRolesRequest) Reset()
func (*GetMultipleRolesRequest) String ¶
func (x *GetMultipleRolesRequest) String() string
type GetMultipleRolesRequest_RequestedRole ¶
type GetMultipleRolesRequest_RequestedRole struct { // Namespace where to search for role. Leave empty for global role. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Unique identifier of the role inside searched namespace Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
Hold information on where to find the role
func (*GetMultipleRolesRequest_RequestedRole) Descriptor
deprecated
func (*GetMultipleRolesRequest_RequestedRole) Descriptor() ([]byte, []int)
Deprecated: Use GetMultipleRolesRequest_RequestedRole.ProtoReflect.Descriptor instead.
func (*GetMultipleRolesRequest_RequestedRole) GetNamespace ¶
func (x *GetMultipleRolesRequest_RequestedRole) GetNamespace() string
func (*GetMultipleRolesRequest_RequestedRole) GetUuid ¶
func (x *GetMultipleRolesRequest_RequestedRole) GetUuid() string
func (*GetMultipleRolesRequest_RequestedRole) ProtoMessage ¶
func (*GetMultipleRolesRequest_RequestedRole) ProtoMessage()
func (*GetMultipleRolesRequest_RequestedRole) ProtoReflect ¶
func (x *GetMultipleRolesRequest_RequestedRole) ProtoReflect() protoreflect.Message
func (*GetMultipleRolesRequest_RequestedRole) Reset ¶
func (x *GetMultipleRolesRequest_RequestedRole) Reset()
func (*GetMultipleRolesRequest_RequestedRole) String ¶
func (x *GetMultipleRolesRequest_RequestedRole) String() string
type GetMultipleRolesResponse ¶
type GetMultipleRolesResponse struct { // Founded role. The ordering is random. Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*GetMultipleRolesResponse) Descriptor
deprecated
func (*GetMultipleRolesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetMultipleRolesResponse.ProtoReflect.Descriptor instead.
func (*GetMultipleRolesResponse) GetRole ¶
func (x *GetMultipleRolesResponse) GetRole() *Role
func (*GetMultipleRolesResponse) ProtoMessage ¶
func (*GetMultipleRolesResponse) ProtoMessage()
func (*GetMultipleRolesResponse) ProtoReflect ¶
func (x *GetMultipleRolesResponse) ProtoReflect() protoreflect.Message
func (*GetMultipleRolesResponse) Reset ¶
func (x *GetMultipleRolesResponse) Reset()
func (*GetMultipleRolesResponse) String ¶
func (x *GetMultipleRolesResponse) String() string
type GetRoleRequest ¶
type GetRoleRequest struct { // Namespace where to search for role. Leave empty for global role. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Unique identifier of the role inside searched namespace Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` // Use cache or not. Cached role data may not be actual under very rare conditions. Invalid cache data is automatically clear after short period of time. UseCache bool `protobuf:"varint,3,opt,name=useCache,proto3" json:"useCache,omitempty"` // contains filtered or unexported fields }
func (*GetRoleRequest) Descriptor
deprecated
func (*GetRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRoleRequest.ProtoReflect.Descriptor instead.
func (*GetRoleRequest) GetNamespace ¶
func (x *GetRoleRequest) GetNamespace() string
func (*GetRoleRequest) GetUseCache ¶
func (x *GetRoleRequest) GetUseCache() bool
func (*GetRoleRequest) GetUuid ¶
func (x *GetRoleRequest) GetUuid() string
func (*GetRoleRequest) ProtoMessage ¶
func (*GetRoleRequest) ProtoMessage()
func (*GetRoleRequest) ProtoReflect ¶
func (x *GetRoleRequest) ProtoReflect() protoreflect.Message
func (*GetRoleRequest) Reset ¶
func (x *GetRoleRequest) Reset()
func (*GetRoleRequest) String ¶
func (x *GetRoleRequest) String() string
type GetRoleResponse ¶
type GetRoleResponse struct { // Founded role Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*GetRoleResponse) Descriptor
deprecated
func (*GetRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRoleResponse.ProtoReflect.Descriptor instead.
func (*GetRoleResponse) GetRole ¶
func (x *GetRoleResponse) GetRole() *Role
func (*GetRoleResponse) ProtoMessage ¶
func (*GetRoleResponse) ProtoMessage()
func (*GetRoleResponse) ProtoReflect ¶
func (x *GetRoleResponse) ProtoReflect() protoreflect.Message
func (*GetRoleResponse) Reset ¶
func (x *GetRoleResponse) Reset()
func (*GetRoleResponse) String ¶
func (x *GetRoleResponse) String() string
type GetServiceManagedRoleRequest ¶
type GetServiceManagedRoleRequest struct { // Namespace where to search for role Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Service which manages this role Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` // Special ID for this role defined by this service ManagedId string `protobuf:"bytes,3,opt,name=managedId,proto3" json:"managedId,omitempty"` // Use cache or not. Cached role data may not be actual under very rare conditions. Invalid cache data is automatically clear after short period of time. UseCache bool `protobuf:"varint,4,opt,name=useCache,proto3" json:"useCache,omitempty"` // contains filtered or unexported fields }
func (*GetServiceManagedRoleRequest) Descriptor
deprecated
func (*GetServiceManagedRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetServiceManagedRoleRequest.ProtoReflect.Descriptor instead.
func (*GetServiceManagedRoleRequest) GetManagedId ¶
func (x *GetServiceManagedRoleRequest) GetManagedId() string
func (*GetServiceManagedRoleRequest) GetNamespace ¶
func (x *GetServiceManagedRoleRequest) GetNamespace() string
func (*GetServiceManagedRoleRequest) GetService ¶
func (x *GetServiceManagedRoleRequest) GetService() string
func (*GetServiceManagedRoleRequest) GetUseCache ¶
func (x *GetServiceManagedRoleRequest) GetUseCache() bool
func (*GetServiceManagedRoleRequest) ProtoMessage ¶
func (*GetServiceManagedRoleRequest) ProtoMessage()
func (*GetServiceManagedRoleRequest) ProtoReflect ¶
func (x *GetServiceManagedRoleRequest) ProtoReflect() protoreflect.Message
func (*GetServiceManagedRoleRequest) Reset ¶
func (x *GetServiceManagedRoleRequest) Reset()
func (*GetServiceManagedRoleRequest) String ¶
func (x *GetServiceManagedRoleRequest) String() string
type GetServiceManagedRoleResponse ¶
type GetServiceManagedRoleResponse struct { // Founded role Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*GetServiceManagedRoleResponse) Descriptor
deprecated
func (*GetServiceManagedRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetServiceManagedRoleResponse.ProtoReflect.Descriptor instead.
func (*GetServiceManagedRoleResponse) GetRole ¶
func (x *GetServiceManagedRoleResponse) GetRole() *Role
func (*GetServiceManagedRoleResponse) ProtoMessage ¶
func (*GetServiceManagedRoleResponse) ProtoMessage()
func (*GetServiceManagedRoleResponse) ProtoReflect ¶
func (x *GetServiceManagedRoleResponse) ProtoReflect() protoreflect.Message
func (*GetServiceManagedRoleResponse) Reset ¶
func (x *GetServiceManagedRoleResponse) Reset()
func (*GetServiceManagedRoleResponse) String ¶
func (x *GetServiceManagedRoleResponse) String() string
type IAMRoleServiceClient ¶
type IAMRoleServiceClient interface { // Create new role Create(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*CreateRoleResponse, error) // Get role Get(ctx context.Context, in *GetRoleRequest, opts ...grpc.CallOption) (*GetRoleResponse, error) // Get multiple roles in one request. GetMultiple(ctx context.Context, in *GetMultipleRolesRequest, opts ...grpc.CallOption) (IAMRoleService_GetMultipleClient, error) // Get list of roles in the namespace List(ctx context.Context, in *ListRolesRequest, opts ...grpc.CallOption) (IAMRoleService_ListClient, error) // Count roles in the namespace Count(ctx context.Context, in *CountRolesRequest, opts ...grpc.CallOption) (*CountRolesResponse, error) // Update role information Update(ctx context.Context, in *UpdateRoleRequest, opts ...grpc.CallOption) (*UpdateRoleResponse, error) // Delete role Delete(ctx context.Context, in *DeleteRoleRequest, opts ...grpc.CallOption) (*DeleteRoleResponse, error) // Get role that is managed by service GetServiceManagedRole(ctx context.Context, in *GetServiceManagedRoleRequest, opts ...grpc.CallOption) (*GetServiceManagedRoleResponse, error) // Get one of the builtin roles GetBuiltInRole(ctx context.Context, in *GetBuiltInRoleRequest, opts ...grpc.CallOption) (*GetBuiltInRoleResponse, error) // Add policy to the role. If policy was already added - does nothing. AddPolicy(ctx context.Context, in *AddPolicyRequest, opts ...grpc.CallOption) (*AddPolicyResponse, error) // Removes policy from the role. If policy was already removed - does nothing. RemovePolicy(ctx context.Context, in *RemovePolicyRequest, opts ...grpc.CallOption) (*RemovePolicyResponse, error) Exist(ctx context.Context, in *ExistRoleRequest, opts ...grpc.CallOption) (*ExistRoleResponse, error) }
IAMRoleServiceClient is the client API for IAMRoleService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewIAMRoleServiceClient ¶
func NewIAMRoleServiceClient(cc grpc.ClientConnInterface) IAMRoleServiceClient
type IAMRoleServiceServer ¶
type IAMRoleServiceServer interface { // Create new role Create(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error) // Get role Get(context.Context, *GetRoleRequest) (*GetRoleResponse, error) // Get multiple roles in one request. GetMultiple(*GetMultipleRolesRequest, IAMRoleService_GetMultipleServer) error // Get list of roles in the namespace List(*ListRolesRequest, IAMRoleService_ListServer) error // Count roles in the namespace Count(context.Context, *CountRolesRequest) (*CountRolesResponse, error) // Update role information Update(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error) // Delete role Delete(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error) // Get role that is managed by service GetServiceManagedRole(context.Context, *GetServiceManagedRoleRequest) (*GetServiceManagedRoleResponse, error) // Get one of the builtin roles GetBuiltInRole(context.Context, *GetBuiltInRoleRequest) (*GetBuiltInRoleResponse, error) // Add policy to the role. If policy was already added - does nothing. AddPolicy(context.Context, *AddPolicyRequest) (*AddPolicyResponse, error) // Removes policy from the role. If policy was already removed - does nothing. RemovePolicy(context.Context, *RemovePolicyRequest) (*RemovePolicyResponse, error) Exist(context.Context, *ExistRoleRequest) (*ExistRoleResponse, error) // contains filtered or unexported methods }
IAMRoleServiceServer is the server API for IAMRoleService service. All implementations must embed UnimplementedIAMRoleServiceServer for forward compatibility
type IAMRoleService_GetMultipleClient ¶
type IAMRoleService_GetMultipleClient interface { Recv() (*GetMultipleRolesResponse, error) grpc.ClientStream }
type IAMRoleService_GetMultipleServer ¶
type IAMRoleService_GetMultipleServer interface { Send(*GetMultipleRolesResponse) error grpc.ServerStream }
type IAMRoleService_ListClient ¶
type IAMRoleService_ListClient interface { Recv() (*ListRolesResponse, error) grpc.ClientStream }
type IAMRoleService_ListServer ¶
type IAMRoleService_ListServer interface { Send(*ListRolesResponse) error grpc.ServerStream }
type IdentityManagedData ¶
type IdentityManagedData struct { // Namespace where identity is located IdentityNamespace string `protobuf:"bytes,1,opt,name=identityNamespace,proto3" json:"identityNamespace,omitempty"` // Identity UUID inside this namespace IdentityUUID string `protobuf:"bytes,2,opt,name=identityUUID,proto3" json:"identityUUID,omitempty"` // contains filtered or unexported fields }
Information about identity that manages this role
func (*IdentityManagedData) Descriptor
deprecated
func (*IdentityManagedData) Descriptor() ([]byte, []int)
Deprecated: Use IdentityManagedData.ProtoReflect.Descriptor instead.
func (*IdentityManagedData) GetIdentityNamespace ¶
func (x *IdentityManagedData) GetIdentityNamespace() string
func (*IdentityManagedData) GetIdentityUUID ¶
func (x *IdentityManagedData) GetIdentityUUID() string
func (*IdentityManagedData) ProtoMessage ¶
func (*IdentityManagedData) ProtoMessage()
func (*IdentityManagedData) ProtoReflect ¶
func (x *IdentityManagedData) ProtoReflect() protoreflect.Message
func (*IdentityManagedData) Reset ¶
func (x *IdentityManagedData) Reset()
func (*IdentityManagedData) String ¶
func (x *IdentityManagedData) String() string
type ListRolesRequest ¶
type ListRolesRequest struct { // Namesapce where to search for roles Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Skip specified number of roles before return response. All the roleas are returned sorted, so this parameter can be used for list pagination. Skip uint64 `protobuf:"varint,2,opt,name=skip,proto3" json:"skip,omitempty"` // Limits the count of returned responses to specified value Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` // contains filtered or unexported fields }
func (*ListRolesRequest) Descriptor
deprecated
func (*ListRolesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRolesRequest.ProtoReflect.Descriptor instead.
func (*ListRolesRequest) GetLimit ¶
func (x *ListRolesRequest) GetLimit() uint64
func (*ListRolesRequest) GetNamespace ¶
func (x *ListRolesRequest) GetNamespace() string
func (*ListRolesRequest) GetSkip ¶
func (x *ListRolesRequest) GetSkip() uint64
func (*ListRolesRequest) ProtoMessage ¶
func (*ListRolesRequest) ProtoMessage()
func (*ListRolesRequest) ProtoReflect ¶
func (x *ListRolesRequest) ProtoReflect() protoreflect.Message
func (*ListRolesRequest) Reset ¶
func (x *ListRolesRequest) Reset()
func (*ListRolesRequest) String ¶
func (x *ListRolesRequest) String() string
type ListRolesResponse ¶
type ListRolesResponse struct { Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*ListRolesResponse) Descriptor
deprecated
func (*ListRolesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListRolesResponse.ProtoReflect.Descriptor instead.
func (*ListRolesResponse) GetRole ¶
func (x *ListRolesResponse) GetRole() *Role
func (*ListRolesResponse) ProtoMessage ¶
func (*ListRolesResponse) ProtoMessage()
func (*ListRolesResponse) ProtoReflect ¶
func (x *ListRolesResponse) ProtoReflect() protoreflect.Message
func (*ListRolesResponse) Reset ¶
func (x *ListRolesResponse) Reset()
func (*ListRolesResponse) String ¶
func (x *ListRolesResponse) String() string
type NotManagedData ¶
type NotManagedData struct {
// contains filtered or unexported fields
}
Empty information to indicate that management for this role is not defined.
func (*NotManagedData) Descriptor
deprecated
func (*NotManagedData) Descriptor() ([]byte, []int)
Deprecated: Use NotManagedData.ProtoReflect.Descriptor instead.
func (*NotManagedData) ProtoMessage ¶
func (*NotManagedData) ProtoMessage()
func (*NotManagedData) ProtoReflect ¶
func (x *NotManagedData) ProtoReflect() protoreflect.Message
func (*NotManagedData) Reset ¶
func (x *NotManagedData) Reset()
func (*NotManagedData) String ¶
func (x *NotManagedData) String() string
type RemovePolicyRequest ¶
type RemovePolicyRequest struct { // Namespace where role is located RoleNamespace string `protobuf:"bytes,1,opt,name=roleNamespace,proto3" json:"roleNamespace,omitempty"` // Unique identifier of the role RoleUUID string `protobuf:"bytes,2,opt,name=roleUUID,proto3" json:"roleUUID,omitempty"` // Namespace where policy is located PolicyNamespace string `protobuf:"bytes,3,opt,name=policyNamespace,proto3" json:"policyNamespace,omitempty"` // Unique identifier of the policy PolicyUUID string `protobuf:"bytes,4,opt,name=policyUUID,proto3" json:"policyUUID,omitempty"` // contains filtered or unexported fields }
func (*RemovePolicyRequest) Descriptor
deprecated
func (*RemovePolicyRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemovePolicyRequest.ProtoReflect.Descriptor instead.
func (*RemovePolicyRequest) GetPolicyNamespace ¶
func (x *RemovePolicyRequest) GetPolicyNamespace() string
func (*RemovePolicyRequest) GetPolicyUUID ¶
func (x *RemovePolicyRequest) GetPolicyUUID() string
func (*RemovePolicyRequest) GetRoleNamespace ¶
func (x *RemovePolicyRequest) GetRoleNamespace() string
func (*RemovePolicyRequest) GetRoleUUID ¶
func (x *RemovePolicyRequest) GetRoleUUID() string
func (*RemovePolicyRequest) ProtoMessage ¶
func (*RemovePolicyRequest) ProtoMessage()
func (*RemovePolicyRequest) ProtoReflect ¶
func (x *RemovePolicyRequest) ProtoReflect() protoreflect.Message
func (*RemovePolicyRequest) Reset ¶
func (x *RemovePolicyRequest) Reset()
func (*RemovePolicyRequest) String ¶
func (x *RemovePolicyRequest) String() string
type RemovePolicyResponse ¶
type RemovePolicyResponse struct { // Role after this operation Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*RemovePolicyResponse) Descriptor
deprecated
func (*RemovePolicyResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemovePolicyResponse.ProtoReflect.Descriptor instead.
func (*RemovePolicyResponse) GetRole ¶
func (x *RemovePolicyResponse) GetRole() *Role
func (*RemovePolicyResponse) ProtoMessage ¶
func (*RemovePolicyResponse) ProtoMessage()
func (*RemovePolicyResponse) ProtoReflect ¶
func (x *RemovePolicyResponse) ProtoReflect() protoreflect.Message
func (*RemovePolicyResponse) Reset ¶
func (x *RemovePolicyResponse) Reset()
func (*RemovePolicyResponse) String ¶
func (x *RemovePolicyResponse) String() string
type Role ¶
type Role struct { // Namespace of the role. Empty for global roles Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Unique identifier of the role in the namespace Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` // Short, human-readable name Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // Arbitrary description Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // //Indicates if this role is managed by someone else. // //This is only a flag to inform everyone that it is managed by third party actor and //manual interaction with this role may result in big problems. In order to interact with the role, //you should ask someone who manages this role to do something for you. // //There are several possible managements: //NotManaged* - there is no clear actor responsible for this role //BuiltIn* - this is predefined role that doesn't belong to any service. The list is predefined. For example "GLOBAL_ROOT" role. It is not possible to delete builtin role. //Identity* - this role was created by identity. This identity is responsible for it //Service* - this role was create by one of the services. This services now manages this role. // // Types that are assignable to Managed: // *Role_No // *Role_BuiltIn // *Role_Identity // *Role_Service Managed isRole_Managed `protobuf_oneof:"managed"` // List of the policies assigned to the role Policies []*AssignedPolicy `protobuf:"bytes,5,rep,name=policies,proto3" json:"policies,omitempty"` // List of tags associated with this role Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` // When the role was created Created *timestamp.Timestamp `protobuf:"bytes,7,opt,name=created,proto3" json:"created,omitempty"` // Last time when the role information was updated. Updated *timestamp.Timestamp `protobuf:"bytes,8,opt,name=updated,proto3" json:"updated,omitempty"` // Counter that increases after every update of the role Version uint64 `protobuf:"varint,9,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
Role is a group of scopes
func (*Role) Descriptor
deprecated
func (*Role) GetBuiltIn ¶
func (x *Role) GetBuiltIn() *BuiltInManagedData
func (*Role) GetCreated ¶
func (*Role) GetDescription ¶
func (*Role) GetIdentity ¶
func (x *Role) GetIdentity() *IdentityManagedData
func (*Role) GetManaged ¶
func (m *Role) GetManaged() isRole_Managed
func (*Role) GetNamespace ¶
func (*Role) GetNo ¶
func (x *Role) GetNo() *NotManagedData
func (*Role) GetPolicies ¶
func (x *Role) GetPolicies() []*AssignedPolicy
func (*Role) GetService ¶
func (x *Role) GetService() *ServiceManagedData
func (*Role) GetUpdated ¶
func (*Role) GetVersion ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
type Role_BuiltIn ¶
type Role_BuiltIn struct { // Role is builtIn and predifined BuiltIn *BuiltInManagedData `protobuf:"bytes,11,opt,name=builtIn,proto3,oneof"` }
type Role_Identity ¶
type Role_Identity struct { // Role is managed by identity Identity *IdentityManagedData `protobuf:"bytes,12,opt,name=identity,proto3,oneof"` }
type Role_No ¶
type Role_No struct { // Role is not managed No *NotManagedData `protobuf:"bytes,10,opt,name=no,proto3,oneof"` }
type Role_Service ¶
type Role_Service struct { // Role is managed by service Service *ServiceManagedData `protobuf:"bytes,13,opt,name=service,proto3,oneof"` }
type ServiceManagedData ¶
type ServiceManagedData struct { // Name of the service Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` // Reason why this service created this role Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` // This is an ID that can be defined by managed service to find this role. Set to empty string if you dont need this. If this is not empty Service+ID combination is unique. ManagementId string `protobuf:"bytes,3,opt,name=managementId,proto3" json:"managementId,omitempty"` // contains filtered or unexported fields }
Handles information about the service that manages this role
func (*ServiceManagedData) Descriptor
deprecated
func (*ServiceManagedData) Descriptor() ([]byte, []int)
Deprecated: Use ServiceManagedData.ProtoReflect.Descriptor instead.
func (*ServiceManagedData) GetManagementId ¶
func (x *ServiceManagedData) GetManagementId() string
func (*ServiceManagedData) GetReason ¶
func (x *ServiceManagedData) GetReason() string
func (*ServiceManagedData) GetService ¶
func (x *ServiceManagedData) GetService() string
func (*ServiceManagedData) ProtoMessage ¶
func (*ServiceManagedData) ProtoMessage()
func (*ServiceManagedData) ProtoReflect ¶
func (x *ServiceManagedData) ProtoReflect() protoreflect.Message
func (*ServiceManagedData) Reset ¶
func (x *ServiceManagedData) Reset()
func (*ServiceManagedData) String ¶
func (x *ServiceManagedData) String() string
type UnimplementedIAMRoleServiceServer ¶
type UnimplementedIAMRoleServiceServer struct { }
UnimplementedIAMRoleServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedIAMRoleServiceServer) AddPolicy ¶
func (UnimplementedIAMRoleServiceServer) AddPolicy(context.Context, *AddPolicyRequest) (*AddPolicyResponse, error)
func (UnimplementedIAMRoleServiceServer) Count ¶
func (UnimplementedIAMRoleServiceServer) Count(context.Context, *CountRolesRequest) (*CountRolesResponse, error)
func (UnimplementedIAMRoleServiceServer) Create ¶
func (UnimplementedIAMRoleServiceServer) Create(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error)
func (UnimplementedIAMRoleServiceServer) Delete ¶
func (UnimplementedIAMRoleServiceServer) Delete(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error)
func (UnimplementedIAMRoleServiceServer) Exist ¶
func (UnimplementedIAMRoleServiceServer) Exist(context.Context, *ExistRoleRequest) (*ExistRoleResponse, error)
func (UnimplementedIAMRoleServiceServer) Get ¶
func (UnimplementedIAMRoleServiceServer) Get(context.Context, *GetRoleRequest) (*GetRoleResponse, error)
func (UnimplementedIAMRoleServiceServer) GetBuiltInRole ¶
func (UnimplementedIAMRoleServiceServer) GetBuiltInRole(context.Context, *GetBuiltInRoleRequest) (*GetBuiltInRoleResponse, error)
func (UnimplementedIAMRoleServiceServer) GetMultiple ¶
func (UnimplementedIAMRoleServiceServer) GetMultiple(*GetMultipleRolesRequest, IAMRoleService_GetMultipleServer) error
func (UnimplementedIAMRoleServiceServer) GetServiceManagedRole ¶
func (UnimplementedIAMRoleServiceServer) GetServiceManagedRole(context.Context, *GetServiceManagedRoleRequest) (*GetServiceManagedRoleResponse, error)
func (UnimplementedIAMRoleServiceServer) RemovePolicy ¶
func (UnimplementedIAMRoleServiceServer) RemovePolicy(context.Context, *RemovePolicyRequest) (*RemovePolicyResponse, error)
func (UnimplementedIAMRoleServiceServer) Update ¶
func (UnimplementedIAMRoleServiceServer) Update(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error)
type UnsafeIAMRoleServiceServer ¶
type UnsafeIAMRoleServiceServer interface {
// contains filtered or unexported methods
}
UnsafeIAMRoleServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IAMRoleServiceServer will result in compilation errors.
type UpdateRoleRequest ¶
type UpdateRoleRequest struct { // Namespace where the role is located Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Unique identifier of the role to update Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` NewName string `protobuf:"bytes,3,opt,name=newName,proto3" json:"newName,omitempty"` NewDescription string `protobuf:"bytes,4,opt,name=newDescription,proto3" json:"newDescription,omitempty"` // contains filtered or unexported fields }
func (*UpdateRoleRequest) Descriptor
deprecated
func (*UpdateRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleRequest.ProtoReflect.Descriptor instead.
func (*UpdateRoleRequest) GetNamespace ¶
func (x *UpdateRoleRequest) GetNamespace() string
func (*UpdateRoleRequest) GetNewDescription ¶
func (x *UpdateRoleRequest) GetNewDescription() string
func (*UpdateRoleRequest) GetNewName ¶
func (x *UpdateRoleRequest) GetNewName() string
func (*UpdateRoleRequest) GetUuid ¶
func (x *UpdateRoleRequest) GetUuid() string
func (*UpdateRoleRequest) ProtoMessage ¶
func (*UpdateRoleRequest) ProtoMessage()
func (*UpdateRoleRequest) ProtoReflect ¶
func (x *UpdateRoleRequest) ProtoReflect() protoreflect.Message
func (*UpdateRoleRequest) Reset ¶
func (x *UpdateRoleRequest) Reset()
func (*UpdateRoleRequest) String ¶
func (x *UpdateRoleRequest) String() string
type UpdateRoleResponse ¶
type UpdateRoleResponse struct { // Updated role Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*UpdateRoleResponse) Descriptor
deprecated
func (*UpdateRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleResponse.ProtoReflect.Descriptor instead.
func (*UpdateRoleResponse) GetRole ¶
func (x *UpdateRoleResponse) GetRole() *Role
func (*UpdateRoleResponse) ProtoMessage ¶
func (*UpdateRoleResponse) ProtoMessage()
func (*UpdateRoleResponse) ProtoReflect ¶
func (x *UpdateRoleResponse) ProtoReflect() protoreflect.Message
func (*UpdateRoleResponse) Reset ¶
func (x *UpdateRoleResponse) Reset()
func (*UpdateRoleResponse) String ¶
func (x *UpdateRoleResponse) String() string