Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NamespaceInfo ¶
type NamespaceInfo struct { // OrgID defined in namespace (1 when using stack ids) OrgID int64 // The cloud stack ID (must match the value in cfg.Settings) StackID string // The original namespace string regardless the input Value string }
func NamespaceInfoFrom ¶
func NamespaceInfoFrom(ctx context.Context, requireOrgID bool) (NamespaceInfo, error)
func ParseNamespace ¶
func ParseNamespace(ns string) (NamespaceInfo, error)
type NamespaceMapper ¶
NamespaceMapper converts an orgID into a namespace
func GetNamespaceMapper ¶
func GetNamespaceMapper(cfg *setting.Cfg) NamespaceMapper
GetNamespaceMapper returns a function that will convert orgIds into a consistent namespace
Click to show internal directories.
Click to hide internal directories.