kube

package
v0.0.0-...-8a6a459 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Origin

type Origin struct {
	Type            config.GroupVersionKind
	FullName        resource.FullName
	ResourceVersion resource.Version
	Ref             resource.Reference
	FieldsMap       map[string]int
	Cluster         cluster.ID
}

Origin is a K8s specific implementation of resource.Origin

func (*Origin) ClusterName

func (o *Origin) ClusterName() cluster.ID

ClusterName implements resource.Origin

func (*Origin) Comparator

func (o *Origin) Comparator() string

func (*Origin) FieldMap

func (o *Origin) FieldMap() map[string]int

FieldMap implements resource.Origin

func (*Origin) FriendlyName

func (o *Origin) FriendlyName() string

FriendlyName implements resource.Origin

func (*Origin) Namespace

func (o *Origin) Namespace() resource.Namespace

Namespace implements resource.Origin

func (*Origin) Reference

func (o *Origin) Reference() resource.Reference

Reference implements resource.Origin

type Position

type Position struct {
	Filename string // filename, if any
	Line     int    // line number, starting at 1
}

Position is a representation of the location of a source.

func (*Position) String

func (p *Position) String() string

String outputs the string representation of the position.

Jump to

Keyboard shortcuts

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