lookup

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FullDomainNameTypeNameType   = NameType("domainName")
	SingleNameNameType           = NameType("singleName")
	NamespaceScopedNameType      = NameType("stackScoped")
	NamespacedSecretNameType     = NameType("secretName")
	ThreePartsNameType           = NameType("threeParts")
	VersionedSingleNameNameType  = NameType("versionedSingleName")
	VersionedStackScopedNameType = NameType("versionedStackScoped")
)

Variables

This section is empty.

Functions

func All added in v0.1.0

func All(ctx ClientLookup, name string, typeNames ...string) ([]types.Resource, error)

func Lookup

func Lookup(ctx ClientLookup, name string, typeNames ...string) (types.Resource, error)

func RegisterType added in v0.1.0

func RegisterType(typeName string, supportedNameTypes ...NameType)

Types

type ClientLookup added in v0.0.3

type ClientLookup interface {
	ByID(namespace, name, typeName string) (types.Resource, error)
	GetDefaultNamespace() string
	GetSystemNamespace() string
}

type NameType added in v0.1.0

type NameType string

type ParsedContainer

type ParsedContainer struct {
	PodName       string
	ContainerName string
	Service       StackScoped
}

func ParseContainer added in v0.1.0

func ParseContainer(defaultStackName string, name string) (ParsedContainer, bool)

func (ParsedContainer) String

func (p ParsedContainer) String() string

type StackScoped added in v0.1.0

type StackScoped struct {
	DefaultStackName string
	StackName        string
	ResourceName     string
	Version          string
	ServiceName      string
	Other            string
}

func ParseStackScoped added in v0.1.0

func ParseStackScoped(defaultStackName string, serviceName string) StackScoped

func StackScopedFromLabels added in v0.1.0

func StackScopedFromLabels(defaultStackName string, pod *corev1.Pod) StackScoped

func (StackScoped) String added in v0.1.0

func (p StackScoped) String() string

Jump to

Keyboard shortcuts

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