request

package
v11.1.4-modfix Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OrgIDForList

func OrgIDForList(ctx context.Context) (int64, error)

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

type NamespaceMapper = func(orgId int64) string

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

Jump to

Keyboard shortcuts

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