selector

package
v0.0.0-...-9e9d5e8 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CoreResource = "pattern.khulnasoft.com/core"
	MeshResource = "pattern.khulnasoft.com/mesh/workload"
	K8sResource  = "pattern.khulnasoft.com/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