types

package
v0.0.0-...-479c569 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultVersion = "v0"

	ConfigType          = "configmap"
	ServiceType         = "service"
	PodType             = "pod"
	DeploymentType      = "deploy"
	DaemonSetType       = "ds"
	NamespaceType       = "namespace"
	RouterType          = "router"
	ExternalServiceType = "externalservice"
	SecretType          = "secret"
	BuildType           = "taskrun"
	StackType           = "stack"
)

Variables

View Source
var (
	Aliases = map[string]string{
		"config":           ConfigType,
		"configs":          ConfigType,
		"configmaps":       ConfigType,
		"svc":              ServiceType,
		"svcs":             ServiceType,
		"pods":             PodType,
		"deployment":       DeploymentType,
		"deployments":      DeploymentType,
		"deploys":          DeploymentType,
		"routers":          RouterType,
		"externalservices": ExternalServiceType,
		"secrets":          SecretType,
		"build":            BuildType,
		"taskruns":         BuildType,
		"stacks":           StackType,
		"ns":               NamespaceType,
		"namespace":        NamespaceType,
	}
)

Functions

This section is empty.

Types

type Resource

type Resource struct {
	LookupName, Name, Namespace, Type string
	App, Version                      string
	Object                            runtime.Object
}

func FromObject

func FromObject(obj runtime.Object) (Resource, error)

func (Resource) String

func (r Resource) String() string

func (Resource) StringDefaultNamespace

func (r Resource) StringDefaultNamespace(defaultNamespace string) string

Jump to

Keyboard shortcuts

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