maker

package
v0.1.1-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KubernetesGroup = "k8s.kubefox.io"
	AdminAPIVersion = "admin.kubefox.io/v1alpha1"
)

Variables

This section is empty.

Functions

func Empty

func Empty[T any]() *T

func Labels

func Labels(props Props) map[string]string

Labels generates a map of labels for any non-empty properties.

func New

func New[T any](props Props) *T

func ObjectFromURI

func ObjectFromURI(u uri.URI) admin.Object

func SubObjFromURI

func SubObjFromURI(u uri.URI) admin.SubObject

Types

type Props

type Props struct {
	Name string

	// Organization string
	Platform string

	Environment    string
	EnvironmentId  string
	EnvironmentRef string
	Config         string
	ConfigId       string
	ConfigRef      string
	System         string
	SystemId       string
	SystemRef      string
	Component      string
	CompHash       string

	Namespace string
	Instance  string

	Group   string
	Version string
	Kind    string
}

Jump to

Keyboard shortcuts

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