fqmn

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: Apache-2.0 Imports: 3 Imported by: 5

Documentation

Index

Constants

View Source
const (
	NamespaceDefault = "default"
)

NamespaceDefault and others represent conts for namespaces.

Variables

View Source
var ErrFQMNConstructionFailure = errors.New("All FQMN must be defined")
View Source
var ErrFQMNParseFailure = errors.New("FQMN failed to parse")

Functions

func FromParts

func FromParts(tenant, namespace, module, ref string) (string, error)

FromParts returns an FQMN from the provided parts

Types

type FQMN

type FQMN struct {
	Tenant    string `json:"tenant"`
	Namespace string `json:"namespace"`
	Name      string `json:"name"`
	Ref       string `json:"ref"`
}

FQMN is a parsed fqmn.

func MigrateV1ToV2

func MigrateV1ToV2(name, ref string) (FQMN, error)

func Parse

func Parse(fqmnString string) (FQMN, error)

func (FQMN) URLPath

func (f FQMN) URLPath() string

URLPath returns the URL path for a function.

Jump to

Keyboard shortcuts

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