util

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClusterScope

func GetClusterScope(clusterScope string) (scope string, err error)

GetClusterScope returns cluster scope from url

func GetOrganizationScope

func GetOrganizationScope(organizationScope string) (scope string, err error)

GetOrganizationScope returns organization scope from url

func GetTemplateScope

func GetTemplateScope(templateScope string) (scope string, err error)

GetTemplateScope returns template scope from url

func GetUserScope

func GetUserScope(userScope string) (scope string, err error)

GetUserScope returns user scope from url

func ParseAddr

func ParseAddr(addr string) (host string, port int32)

ParseAddr parses addr into host and port

func SanitizeUsername

func SanitizeUsername(username string) (name string)

SanitizeUsername sanitizes username as a k8s name

func ToClusterScope

func ToClusterScope(scope string) string

ToClusterScope converts scope into cluster scope

func ToOrganizationScope

func ToOrganizationScope(scope string) string

ToOrganizationScope converts scope into organization scope

func ToTemplateScope

func ToTemplateScope(scope string) string

ToTemplateScope converts scope into template scope

func ToUserScope

func ToUserScope(scope string) string

ToUserScope converts scope into user scope

Types

This section is empty.

Jump to

Keyboard shortcuts

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