tenant

package
v0.0.0-...-64decf6 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FrameProjectInfo = ProjectInfo{
						// contains filtered or unexported fields
	}
	TestProjectInfo = ProjectInfo{
					// contains filtered or unexported fields
	}
	DefaultUserProjectInfo = ProjectInfo{
							// contains filtered or unexported fields
	}
)

tenant const variables

Functions

This section is empty.

Types

type ProjectID

type ProjectID = string

ProjectID is the project id type of tenant

type ProjectInfo

type ProjectInfo struct {
	// contains filtered or unexported fields
}

ProjectInfo is the tenant/project information which is consistent with cloud service provider

func NewProjectInfo

func NewProjectInfo(tenant string, project string) ProjectInfo

NewProjectInfo return an immutable ProjectInfo

func (ProjectInfo) ProjectID

func (p ProjectInfo) ProjectID() string

ProjectID return project id

func (ProjectInfo) TenantID

func (p ProjectInfo) TenantID() string

TenantID return tenant id

func (ProjectInfo) UniqueID

func (p ProjectInfo) UniqueID() string

UniqueID get the unique id for project Theoretically, ProjectID is global uniqueness and can used as the identifier We offer this method here to hide the implementation of getting a unique ID

type Tenant

type Tenant = string

Tenant is the tenant id type

Jump to

Keyboard shortcuts

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