v1

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TODO: maybe should move to metal-lib?
	// FIXME: overlaps with metalstack.cloud annotations
	TagEmail       = "metal-stack.io/email"
	TagPhoneNumber = "metal-stack.io/phone"
	TagAvatarURL   = "metal-stack.io/avatarurl"
	TagCreator     = "metal-stack.io/creator"

	TenantRoleAnnotation = "metal-stack.io/tenant-role"

	// Master Tenant which must be present on every metal-stack installation
	MasterTenant = "metal-stack"
	// Master Tenant Project ID must be present on every metal-stack installation
	MasterTenantProjectId = "00000000-0000-0000-0000-000000000000"
)

Variables

This section is empty.

Functions

func Convert

func Convert(t *apiv2.Tenant) *mdcv1.Tenant

func ConvertFromTenant

func ConvertFromTenant(t *mdcv1.Tenant) *apiv2.Tenant

func EnsureProviderTenant

func EnsureProviderTenant(ctx context.Context, c mdc.Client, providerTenantID string) error

func GetTenantMember

func GetTenantMember(ctx context.Context, c mdc.Client, tenantID, memberID string) (*mdcv1.TenantMember, error)

func TenantRoleFromMap

func TenantRoleFromMap(annotations map[string]string) apiv2.TenantRole

Types

This section is empty.

Jump to

Keyboard shortcuts

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