lookup

package
v0.0.4-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lookup

func Lookup(c ClientLookup, name string, typeNames ...string) (*types.NamedResource, error)

Types

type ClientLookup added in v0.0.3

type ClientLookup interface {
	ClientLookup(typeName string) (clientbase.APIBaseClientInterface, error)
	LookupFilters(name, typeName string) (map[string]interface{}, bool, error)
	ByID(id, typeName string) (*types.NamedResource, error)
}

type ParsedContainer

type ParsedContainer struct {
	PodName       string
	ContainerName string
	Service       StackScoped
}

func ParseContainer added in v0.1.0

func ParseContainer(workspace *clientcfg.Workspace, name string) (ParsedContainer, bool)

func (ParsedContainer) K8sPodName

func (p ParsedContainer) K8sPodName() string

func (ParsedContainer) String

func (p ParsedContainer) String() string

type StackScoped added in v0.1.0

type StackScoped struct {
	Workspace    *clientcfg.Workspace
	StackName    string
	ResourceName string
	ResourceID   string
	Version      string
	Other        string
}

func ParseStackScoped added in v0.1.0

func ParseStackScoped(workspace *clientcfg.Workspace, serviceName string) StackScoped

func StackScopedFromLabels added in v0.1.0

func StackScopedFromLabels(workspace *clientcfg.Workspace, labels map[string]string) StackScoped

func (StackScoped) LookupName

func (p StackScoped) LookupName() string

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