Documentation ¶
Index ¶
- func SpecSignature(metaObject MetaObject) (string, error)
- type GroupKindNamer
- type Grouped
- type KnownTypeReference
- type MetaObject
- type NamespaceNamer
- type TypedReference
- func (tr TypedReference) GetAPIGroup() string
- func (tr TypedReference) GetKind() string
- func (tr TypedReference) GetName() string
- func (tr TypedReference) GetNamespace() string
- func (tr TypedReference) SetAPIGroup(val string)
- func (tr TypedReference) SetKind(kind string)
- func (tr TypedReference) SetName(name string)
- func (tr TypedReference) SetNamespace(ns string)
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 NamespaceNamer ¶
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)
Click to show internal directories.
Click to hide internal directories.