lookup

package
v0.0.3-rc7 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 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.Resource, error)

Types

type ClientLookup added in v0.0.3

type ClientLookup func(typeName string) clientbase.APIBaseClientInterface

type ParsedContainer

type ParsedContainer struct {
	PodName       string
	ContainerName string
	Service       ParsedService
}

func ParseContainerName

func ParseContainerName(name string) (ParsedContainer, bool)

func (ParsedContainer) String

func (p ParsedContainer) String() string

type ParsedService

type ParsedService struct {
	StackName   string
	ServiceName string
	Revision    string
}

func ParseServiceName

func ParseServiceName(serviceName string) ParsedService

func ParseServiceNameFromLabels

func ParseServiceNameFromLabels(labels map[string]string) ParsedService

func (ParsedService) Latest

func (p ParsedService) Latest() ParsedService

func (ParsedService) PodNamePrefix

func (p ParsedService) PodNamePrefix() string

func (ParsedService) SetRevision

func (p ParsedService) SetRevision(rev string) ParsedService

func (ParsedService) String

func (p ParsedService) String() string

Jump to

Keyboard shortcuts

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