annotations

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OrganizationAnnotation   = "cloudcasa.io/organizationid"
	ClusterIDAnnotation      = "cloudcasa.io/clusterid"
	UserGroupAnnotation      = "cloudcasa.io/usergroup"
	UserEmailOverridePattern = "user.cloudcasa.io"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotations

type Annotations interface {
	OwnerEmail(tenant *capsulev1beta2.Tenant, owner capsulev1beta2.OwnerSpec) string
	UserGroupID(object client.Object) (string, bool)
	ClusterID(object client.Object) (string, bool)
	OrganizationID(tenant *capsulev1beta2.Tenant) string
}

type Extractor

type Extractor struct{}

func (Extractor) ClusterID

func (e Extractor) ClusterID(object client.Object) (string, bool)

func (Extractor) OrganizationID

func (e Extractor) OrganizationID(tenant *capsulev1beta2.Tenant) string

func (Extractor) OwnerEmail

func (e Extractor) OwnerEmail(tenant *capsulev1beta2.Tenant, owner capsulev1beta2.OwnerSpec) string

func (Extractor) UserGroupID

func (e Extractor) UserGroupID(object client.Object) (string, bool)

Jump to

Keyboard shortcuts

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