krtcollections

package
v1.18.0-beta30 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLocalityPodsCollection

func NewLocalityPodsCollection(nodes krt.Collection[NodeMetadata], pods krt.Collection[*corev1.Pod]) krt.Collection[LocalityPod]

func NewNodeMetadataCollection

func NewNodeMetadataCollection(nodes krt.Collection[*corev1.Node]) krt.Collection[NodeMetadata]

func NewPodsCollection

func NewPodsCollection(ctx context.Context, istioClient kube.Client) krt.Collection[LocalityPod]

Types

type GlooResource

type GlooResource interface {
	proto.Message
	interface {
		GetMetadata() *core.Metadata
	}
}

type LocalityPod

type LocalityPod struct {
	krt.Named
	Locality        PodLocality
	AugmentedLabels map[string]string
}

func (LocalityPod) Equals

func (c LocalityPod) Equals(in LocalityPod) bool

type NodeMetadata

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

func (NodeMetadata) Equals

func (c NodeMetadata) Equals(in NodeMetadata) bool

func (NodeMetadata) ResourceName

func (c NodeMetadata) ResourceName() string

type PodLocality

type PodLocality struct {
	Region  string
	Zone    string
	Subzone string
}

type ResourceWrapper

type ResourceWrapper[T GlooResource] struct {
	Inner T
}

func (ResourceWrapper[T]) Equals

func (us ResourceWrapper[T]) Equals(in ResourceWrapper[T]) bool

func (ResourceWrapper[T]) GetMetadata

func (us ResourceWrapper[T]) GetMetadata() *core.Metadata

func (ResourceWrapper[T]) ResourceName

func (us ResourceWrapper[T]) ResourceName() string

Jump to

Keyboard shortcuts

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