v1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SpecSignature

func SpecSignature(metaObject MetaObject) (string, error)

Types

type GroupKindNamer

type GroupKindNamer interface {
	NamespaceNamer
	GetKind() string
	SetKind(string)
	GetAPIGroup() string
	SetAPIGroup(string)
}

type Grouped

type Grouped interface {
	GetResourceGroupObjectRef() *KnownTypeReference
}

Grouped provides the resource group reference for a given resource TODO: think about naming this something a little more informative

type KnownTypeReference

type KnownTypeReference struct {
	// Name is the name of resource being referenced
	Name string `json:"name"`
	// Namespace is the namespace of resource being referenced.
	Namespace string `json:"namespace"`
}

KnownTypeReference is a reference to an object which the type and version is already known

func (KnownTypeReference) GetName

func (ktr KnownTypeReference) GetName() string

func (KnownTypeReference) GetNamespace

func (ktr KnownTypeReference) GetNamespace() string

func (KnownTypeReference) SetName

func (ktr KnownTypeReference) SetName(name string)

func (KnownTypeReference) SetNamespace

func (ktr KnownTypeReference) SetNamespace(ns string)

type MetaObject

type MetaObject interface {
	runtime.Object
	metav1.Object
	ResourceType() string
}

type NamespaceNamer

type NamespaceNamer interface {
	GetNamespace() string
	SetNamespace(string)
	GetName() string
	SetName() string
}

type TypedReference

type TypedReference struct {
	// APIGroup is the group for the resource being referenced.
	APIGroup string `json:"apiGroup"`
	// Kind is the type of resource being referenced
	Kind string `json:"kind"`
	// Namespace is the namespace of resource being referenced.
	NameSpace string `json:"name"`
	// Name is the name of resource being referenced
	Name string `json:"namespace"`
}

TypedReference is a reference to an object sans version

func (TypedReference) GetAPIGroup

func (tr TypedReference) GetAPIGroup() string

func (TypedReference) GetKind

func (tr TypedReference) GetKind() string

func (TypedReference) GetName

func (tr TypedReference) GetName() string

func (TypedReference) GetNamespace

func (tr TypedReference) GetNamespace() string

func (TypedReference) SetAPIGroup

func (tr TypedReference) SetAPIGroup(val string)

func (TypedReference) SetKind

func (tr TypedReference) SetKind(kind string)

func (TypedReference) SetName

func (tr TypedReference) SetName(name string)

func (TypedReference) SetNamespace

func (tr TypedReference) SetNamespace(ns string)

Jump to

Keyboard shortcuts

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