Versions in this module Expand all Collapse all v0 v0.0.1 Jul 2, 2024 Changes in this version + type Codec interface + Decode func(src *unstructured.Unstructured) (*unstructured.Unstructured, error) + Encode func(src *unstructured.Unstructured) (*unstructured.Unstructured, error) + Source func() Typer + Target func() Typer + func NewTemplateCodec(encodeTemplate, decodeTemplate string) (Codec, error) + type DynamicResource struct + Uns *unstructured.Unstructured + func NewDynamicResourceWithCodec(encoderTemplate, decoderTemplate string) (obj *DynamicResource, err error) + func (in *DynamicResource) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error) + func (in *DynamicResource) Create(ctx context.Context, obj runtime.Object, ...) (runtime.Object, error) + func (in *DynamicResource) DeepCopyObject() runtime.Object + func (in *DynamicResource) Delete(ctx context.Context, name string, deleteValidation rest.ValidateObjectFunc, ...) (runtime.Object, bool, error) + func (in *DynamicResource) Destroy() + func (in *DynamicResource) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error) + func (in *DynamicResource) GetAnnotations() map[string]string + func (in *DynamicResource) GetCreationTimestamp() metav1.Time + func (in *DynamicResource) GetDeletionGracePeriodSeconds() *int64 + func (in *DynamicResource) GetDeletionTimestamp() *metav1.Time + func (in *DynamicResource) GetFinalizers() []string + func (in *DynamicResource) GetGenerateName() string + func (in *DynamicResource) GetGeneration() int64 + func (in *DynamicResource) GetGroupVersion() schema.GroupVersion + func (in *DynamicResource) GetGroupVersionKind() schema.GroupVersionKind + func (in *DynamicResource) GetGroupVersionResource() schema.GroupVersionResource + func (in *DynamicResource) GetLabels() map[string]string + func (in *DynamicResource) GetManagedFields() []metav1.ManagedFieldsEntry + func (in *DynamicResource) GetName() string + func (in *DynamicResource) GetNamespace() string + func (in *DynamicResource) GetObjectKind() schema.ObjectKind + func (in *DynamicResource) GetObjectMeta() *metav1.ObjectMeta + func (in *DynamicResource) GetOwnerReferences() []metav1.OwnerReference + func (in *DynamicResource) GetResourceVersion() string + func (in *DynamicResource) GetSelfLink() string + func (in *DynamicResource) GetUID() types.UID + func (in *DynamicResource) GroupVersionKind(containingGV schema.GroupVersion) schema.GroupVersionKind + func (in *DynamicResource) GroupVersionResource() schema.GroupVersionResource + func (in *DynamicResource) IsStorageVersion() bool + func (in *DynamicResource) List(ctx context.Context, options *internalversion.ListOptions) (runtime.Object, error) + func (in *DynamicResource) MarshalJSON() ([]byte, error) + func (in *DynamicResource) NamespaceScoped() bool + func (in *DynamicResource) New() runtime.Object + func (in *DynamicResource) NewList() runtime.Object + func (in *DynamicResource) SetAnnotations(annotations map[string]string) + func (in *DynamicResource) SetCreationTimestamp(timestamp metav1.Time) + func (in *DynamicResource) SetDeletionGracePeriodSeconds(i *int64) + func (in *DynamicResource) SetDeletionTimestamp(timestamp *metav1.Time) + func (in *DynamicResource) SetFinalizers(finalizers []string) + func (in *DynamicResource) SetGenerateName(name string) + func (in *DynamicResource) SetGeneration(generation int64) + func (in *DynamicResource) SetLabels(labels map[string]string) + func (in *DynamicResource) SetManagedFields(managedFields []metav1.ManagedFieldsEntry) + func (in *DynamicResource) SetName(name string) + func (in *DynamicResource) SetNamespace(namespace string) + func (in *DynamicResource) SetOwnerReferences(references []metav1.OwnerReference) + func (in *DynamicResource) SetResourceVersion(version string) + func (in *DynamicResource) SetSelfLink(selfLink string) + func (in *DynamicResource) SetUID(uid types.UID) + func (in *DynamicResource) UnmarshalJSON(bs []byte) error + func (in *DynamicResource) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, ...) (runtime.Object, bool, error) + type DynamicResourceList struct + UnsList *unstructured.UnstructuredList + func (in *DynamicResourceList) DeepCopyObject() runtime.Object + func (in *DynamicResourceList) GetObjectKind() schema.ObjectKind + func (in *DynamicResourceList) GroupVersionKind() schema.GroupVersionKind + func (in *DynamicResourceList) MarshalJSON() ([]byte, error) + func (in *DynamicResourceList) SetGroupVersionKind(kind schema.GroupVersionKind) + func (in *DynamicResourceList) UnmarshalJSON(bs []byte) error + type Typer interface + GroupVersion func() schema.GroupVersion + GroupVersionKind func() schema.GroupVersionKind + GroupVersionKindList func() schema.GroupVersionKind + GroupVersionResource func() schema.GroupVersionResource + Kind func() string + KindList func() string + Namespaced func() bool + Resource func() string + func NewDefaultTyper(apiVersion string, kind string) (Typer, error)