types

package
v0.7.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: Apache-2.0 Imports: 10 Imported by: 19

Documentation

Index

Constants

View Source
const (
	DefaultVersion = "v0"

	ConfigType          = "configmap"
	ServiceType         = "service"
	PodType             = "pod"
	DeploymentType      = "deploy"
	DaemonSetType       = "ds"
	NamespaceType       = "namespace"
	RouterType          = "router"
	ExternalServiceType = "externalservice"
	PublicDomainType    = "publicdomain"
	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 added in v0.6.0

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

func (Resource) String added in v0.6.0

func (r Resource) String() string

func (Resource) StringDefaultNamespace added in v0.6.0

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