selector

package
v0.5.72 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CoreResource = "pattern.meshery.io/core"
	MeshResource = "pattern.meshery.io/mesh/workload"
	K8sResource  = "pattern.meshery.io/k8s"
)

Variables

This section is empty.

Functions

func GetAnnotationsForWorkload

func GetAnnotationsForWorkload(w core.WorkloadCapability) map[string]string

Types

type Helpers

type Helpers interface {
	GetServiceMesh() (name string, version string)
	GetAPIVersionForKind(kind string) string
}

type Selector

type Selector struct {
	// contains filtered or unexported fields
}

func New

func New(helpers Helpers) *Selector

func (*Selector) Trait

func (s *Selector) Trait(name string) (core.TraitCapability, bool)

func (*Selector) Workload

func (s *Selector) Workload(name string) (core.WorkloadCapability, bool)

Jump to

Keyboard shortcuts

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