selector

package
v0.6.93 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 6 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

This section is empty.

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(reg *meshmodel.RegistryManager, helpers Helpers) *Selector

func (*Selector) Trait

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

func (*Selector) Workload

func (s *Selector) Workload(name string, version string, model string, apiVersion string) (v1alpha1.ComponentDefinition, error)

Jump to

Keyboard shortcuts

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