Documentation
¶
Index ¶
- Constants
- type ComponentServiceCreateRequest
- type ComponentServiceUpdateRequest
- type ProjectMemberCreateRequest
- type ProjectMemberQuery
- type ProjectMemberUpdateRequest
- type ProjectsAndTenants
- type ProjectsAndTenantsGetter
- type SwitchServiceCreateRequest
- type SwitchStatus
- type TenantMemberCreateRequest
- type TenantMemberQuery
- type TenantMemberUpdateRequest
- type TenantWithMembershipAnnotations
Constants ¶
View Source
const ( // TODO: Migrate to common fields introduced in https://github.com/metal-stack/masterdata-api/pull/127 TenantTagEmail = "metal-stack.io/email" TenantTagAvatarURL = "metal-stack.io/avatarurl" TenantTagCreator = "metal-stack.io/creator" // TODO: Use scoped memberships: https://github.com/metal-stack/masterdata-api/issues/130 TenantRoleAnnotation = "metal-stack.io/tenant-role" )
View Source
const (
AuditingComponent = "metal-stack.io"
)
View Source
const (
ProjectRoleAnnotation = "metal-stack.io/project-role"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentServiceUpdateRequest ¶
type ComponentServiceUpdateRequest struct {
}
func (*ComponentServiceUpdateRequest) GetUpdateMeta ¶
func (*ComponentServiceUpdateRequest) GetUpdateMeta() *apiv2.UpdateMeta
type ProjectMemberCreateRequest ¶
type ProjectMemberCreateRequest struct {
TenantId string
Role apiv2.ProjectRole
}
type ProjectMemberQuery ¶
type ProjectMemberUpdateRequest ¶
type ProjectMemberUpdateRequest struct {
Role apiv2.ProjectRole
Meta apiv2.Meta
}
func (*ProjectMemberUpdateRequest) GetUpdateMeta ¶
func (*ProjectMemberUpdateRequest) GetUpdateMeta() *apiv2.UpdateMeta
type ProjectsAndTenants ¶
type ProjectsAndTenantsGetter ¶
type ProjectsAndTenantsGetter func(ctx context.Context, userId string) (*ProjectsAndTenants, error)
type SwitchStatus ¶
type SwitchStatus struct {
ID string
LastSync *apiv2.SwitchSync
LastSyncError *apiv2.SwitchSync
}
func (*SwitchStatus) GetID ¶
func (s *SwitchStatus) GetID() string
type TenantMemberCreateRequest ¶
type TenantMemberCreateRequest struct {
MemberID string
Role apiv2.TenantRole
}
type TenantMemberQuery ¶
type TenantMemberUpdateRequest ¶
type TenantMemberUpdateRequest struct {
Role apiv2.TenantRole
}
func (*TenantMemberUpdateRequest) GetUpdateMeta ¶
func (*TenantMemberUpdateRequest) GetUpdateMeta() *apiv2.UpdateMeta
Click to show internal directories.
Click to hide internal directories.