Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(typeversion TypeVersion, unmarshaller Unmarshaller)
Register is used to register new InfoData type versions
func UpsertInfoData ¶
func UpsertInfoData(resourceDataList *gardencorev1alpha1helper.GardenerResourceDataList, name string, data InfoData) error
UpsertInfoData updates or inserts an InfoData object into the GardenerResourceDataList
Types ¶
type InfoData ¶
type InfoData interface { TypeVersion() TypeVersion Marshal() ([]byte, error) }
InfoData is an interface which allows
func GetInfoData ¶
func GetInfoData(resourceDataList gardencorev1alpha1helper.GardenerResourceDataList, name string) (InfoData, error)
GetInfoData retrieves the go representation of an object from the GardenerResourceDataList
func Unmarshal ¶
func Unmarshal(entry *gardencorev1alpha1.GardenerResourceData) (InfoData, error)
Unmarshal unmarshals a GardenerResourceData into its respective Go struct representation
type Loader ¶ added in v1.7.0
Loader is an interface which declares methods that can be used to extract InfoData from Kubernetes resources data. TODO: This interface can be removed in a later version after all resources have been synced to the ShootState.
type TypeVersion ¶
type TypeVersion string
TypeVersion is the potentially versioned type name of an InfoData representation.
type Unmarshaller ¶
Unmarshaller is a factory to create a dedicated InfoData object from a byte stream
func GetUnmarshaller ¶
func GetUnmarshaller(typeName TypeVersion) Unmarshaller
GetUnmarshaller returns an Unmarshaller for the given typeName.