constants

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterLabelOwnedBy      string = "kloudlite.io/owned-by"
	ClusterLabelLocalUuidKey string = "kloudlite.io/local-uuid"
)
View Source
const (
	CacheSessionPrefix = "sessions"
	CookieName         = "hotspot-session"
)
View Source
const (
	ProviderGithub = "github"
	ProviderGitlab = "gitlab"
	ProviderGoogle = "google"
)
View Source
const (
	ClusterNameKey string = "kloudlite.io/cluster.name"
	EdgeNameKey    string = "kloudlite.io/edge.name"
	AccountNameKey string = "kloudlite.io/account.name"

	EnvNameKey string = "kloudlite.io/env.name"

	RecordVersionKey string = "kloudlite.io/observability.record-version"

	ObservabilityTrackingKey    string = "kloudlite.io/observability.tracking.id"
	ObservabilityAccountNameKey string = "kloudlite.io/observability.account.name"
	ObservabilityClusterNameKey string = "kloudlite.io/observability.cluster.name"

	ManagedByKloudlite string = "kloudlite.io/managed-by.kloudlite"
)
View Source
const (
	// source: kubectl apply with an incorrect resource name
	K8sNameValidatorRegex = `^[a-z0-9]([-a-z0-9]*[a-z0-9])?([.][a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`
)
View Source
const (
	NamespaceCore string = "kl-core"
)

Variables

Functions

func GetAccountTargetNamespace

func GetAccountTargetNamespace(accountName string) string

Types

type Action

type Action string
const (
	Undefined           Action = ""
	CreateAccount       Action = "create-account"
	UpdateAccount       Action = "update-account"
	DeleteAccount       Action = "delete-account"
	InviteAccountMember Action = "invite-account-member"
	PayBill             Action = "pay-bill"

	ReadProject   Action = "read-project"
	CreateProject Action = "create-project"
	UpdateProject Action = "update-project"
	DeleteProject Action = "delete-project"

	InviteProjectMember Action = "invite-project-member"
	RemoveProjectMember Action = "remove-project-member"

	CreateApp         Action = "create-app"
	DeleteApp         Action = "delete-app"
	UpdateApp         Action = "update-app"
	FreezeApp         Action = "freeze-app"
	UnfreezeApp       Action = "unfreeze-app"
	RestartApp        Action = "restart-app"
	InterceptApp      Action = "intercept-app"
	CloseInterceptApp Action = "close-intercept-app"

	CreateConfig Action = "create-config"
	DeleteConfig Action = "delete-config"
	UpdateConfig Action = "update-config"

	CreateSecret Action = "create-secret"
	DeleteSecret Action = "delete-secret"
	UpdateSecret Action = "update-secret"

	CreateMsvc Action = "create-msvc"
	DeleteMsvc Action = "delete-msvc"
	UpdateMsvc Action = "update-msvc"

	CreateMres Action = "create-mres"
	DeleteMres Action = "delete-mres"
	UpdateMres Action = "update-mres"

	CreateRouter Action = "create-router"
	DeleteRouter Action = "delete-router"
	UpdateRouter Action = "update-router"

	CreateDevice Action = "create-device"
	DeleteDevice Action = "delete-device"
	UpdateDevice Action = "update-device"

	CreateEdgeRegion Action = "create-edge-region"
	UpdateEdgeRegion Action = "update-edge-region"
	DeleteEdgeRegion Action = "delete-edge-region"

	CreateCloudProvider Action = "create-cloud-provider"
	UpdateCloudProvider Action = "update-cloud-provider"
	DeleteCloudProvider Action = "delete-cloud-provider"

	CreateEnvironment Action = "create-environment"
	DeleteEnvironment Action = "delete-environment"
)

type ResourceType

type ResourceType string
const (
	ResourceConfig          ResourceType = "config"
	ResourceSecret          ResourceType = "secret"
	ResourceApp             ResourceType = "app"
	ResourceLambda          ResourceType = "lambda"
	ResourceProject         ResourceType = "project"
	ResourceAccount         ResourceType = "account"
	ResourceRouter          ResourceType = "router"
	ResourceManagedService  ResourceType = "mService"
	ResourceManagedResource ResourceType = "mResource"
	ResourceGitPipeline     ResourceType = "gitPipeline"

	ResourceEdgeRegion    ResourceType = "edge-region"
	ResourceCloudProvider ResourceType = "cloud-provider"
	ResourceDevice        ResourceType = "device"
	ResourceEnvironment   ResourceType = "environment"
)

type Role

type Role string
const (
	AccountOwner  Role = "account-owner"
	AccountAdmin  Role = "account-admin"
	AccountMember Role = "account-member"
	AccountGuest  Role = "account-guest"
	AccountBiller Role = "account-biller"

	ProjectAdmin  Role = "project-admin"
	ProjectMember Role = "project-member"
	ProjectGuest  Role = "project-guest"
)

Jump to

Keyboard shortcuts

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