dynamicresource

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec interface {
	Source() Typer
	Target() Typer
	Encode(src *unstructured.Unstructured) (*unstructured.Unstructured, error)
	Decode(src *unstructured.Unstructured) (*unstructured.Unstructured, error)
}

func NewTemplateCodec

func NewTemplateCodec(encodeTemplate, decodeTemplate string) (Codec, error)

type DynamicResource

type DynamicResource struct {
	Uns *unstructured.Unstructured
	// contains filtered or unexported fields
}

func NewDynamicResourceWithCodec

func NewDynamicResourceWithCodec(encoderTemplate, decoderTemplate string) (obj *DynamicResource, err error)

func (*DynamicResource) ConvertToTable

func (in *DynamicResource) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)

func (*DynamicResource) Create

func (in *DynamicResource) Create(ctx context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error)

func (*DynamicResource) DeepCopyObject

func (in *DynamicResource) DeepCopyObject() runtime.Object

func (*DynamicResource) Delete

func (in *DynamicResource) Delete(ctx context.Context, name string, deleteValidation rest.ValidateObjectFunc, options *metav1.DeleteOptions) (runtime.Object, bool, error)

func (*DynamicResource) Destroy

func (in *DynamicResource) Destroy()

func (*DynamicResource) Get

func (in *DynamicResource) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)

func (*DynamicResource) GetAnnotations

func (in *DynamicResource) GetAnnotations() map[string]string

func (*DynamicResource) GetCreationTimestamp

func (in *DynamicResource) GetCreationTimestamp() metav1.Time

func (*DynamicResource) GetDeletionGracePeriodSeconds

func (in *DynamicResource) GetDeletionGracePeriodSeconds() *int64

func (*DynamicResource) GetDeletionTimestamp

func (in *DynamicResource) GetDeletionTimestamp() *metav1.Time

func (*DynamicResource) GetFinalizers

func (in *DynamicResource) GetFinalizers() []string

func (*DynamicResource) GetGenerateName

func (in *DynamicResource) GetGenerateName() string

func (*DynamicResource) GetGeneration

func (in *DynamicResource) GetGeneration() int64

func (*DynamicResource) GetGroupVersion

func (in *DynamicResource) GetGroupVersion() schema.GroupVersion

func (*DynamicResource) GetGroupVersionKind

func (in *DynamicResource) GetGroupVersionKind() schema.GroupVersionKind

func (*DynamicResource) GetGroupVersionResource

func (in *DynamicResource) GetGroupVersionResource() schema.GroupVersionResource

func (*DynamicResource) GetLabels

func (in *DynamicResource) GetLabels() map[string]string

func (*DynamicResource) GetManagedFields

func (in *DynamicResource) GetManagedFields() []metav1.ManagedFieldsEntry

func (*DynamicResource) GetName

func (in *DynamicResource) GetName() string

func (*DynamicResource) GetNamespace

func (in *DynamicResource) GetNamespace() string

func (*DynamicResource) GetObjectKind

func (in *DynamicResource) GetObjectKind() schema.ObjectKind

func (*DynamicResource) GetObjectMeta

func (in *DynamicResource) GetObjectMeta() *metav1.ObjectMeta

func (*DynamicResource) GetOwnerReferences

func (in *DynamicResource) GetOwnerReferences() []metav1.OwnerReference

func (*DynamicResource) GetResourceVersion

func (in *DynamicResource) GetResourceVersion() string
func (in *DynamicResource) GetSelfLink() string

func (*DynamicResource) GetUID

func (in *DynamicResource) GetUID() types.UID

func (*DynamicResource) GroupVersionKind

func (in *DynamicResource) GroupVersionKind(containingGV schema.GroupVersion) schema.GroupVersionKind

func (*DynamicResource) GroupVersionResource

func (in *DynamicResource) GroupVersionResource() schema.GroupVersionResource

func (*DynamicResource) IsStorageVersion

func (in *DynamicResource) IsStorageVersion() bool

func (*DynamicResource) List

func (*DynamicResource) MarshalJSON

func (in *DynamicResource) MarshalJSON() ([]byte, error)

func (*DynamicResource) NamespaceScoped

func (in *DynamicResource) NamespaceScoped() bool

func (*DynamicResource) New

func (in *DynamicResource) New() runtime.Object

func (*DynamicResource) NewList

func (in *DynamicResource) NewList() runtime.Object

func (*DynamicResource) SetAnnotations

func (in *DynamicResource) SetAnnotations(annotations map[string]string)

func (*DynamicResource) SetCreationTimestamp

func (in *DynamicResource) SetCreationTimestamp(timestamp metav1.Time)

func (*DynamicResource) SetDeletionGracePeriodSeconds

func (in *DynamicResource) SetDeletionGracePeriodSeconds(i *int64)

func (*DynamicResource) SetDeletionTimestamp

func (in *DynamicResource) SetDeletionTimestamp(timestamp *metav1.Time)

func (*DynamicResource) SetFinalizers

func (in *DynamicResource) SetFinalizers(finalizers []string)

func (*DynamicResource) SetGenerateName

func (in *DynamicResource) SetGenerateName(name string)

func (*DynamicResource) SetGeneration

func (in *DynamicResource) SetGeneration(generation int64)

func (*DynamicResource) SetLabels

func (in *DynamicResource) SetLabels(labels map[string]string)

func (*DynamicResource) SetManagedFields

func (in *DynamicResource) SetManagedFields(managedFields []metav1.ManagedFieldsEntry)

func (*DynamicResource) SetName

func (in *DynamicResource) SetName(name string)

func (*DynamicResource) SetNamespace

func (in *DynamicResource) SetNamespace(namespace string)

func (*DynamicResource) SetOwnerReferences

func (in *DynamicResource) SetOwnerReferences(references []metav1.OwnerReference)

func (*DynamicResource) SetResourceVersion

func (in *DynamicResource) SetResourceVersion(version string)
func (in *DynamicResource) SetSelfLink(selfLink string)

func (*DynamicResource) SetUID

func (in *DynamicResource) SetUID(uid types.UID)

func (*DynamicResource) UnmarshalJSON

func (in *DynamicResource) UnmarshalJSON(bs []byte) error

func (*DynamicResource) Update

func (in *DynamicResource) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (runtime.Object, bool, error)

type DynamicResourceList

type DynamicResourceList struct {
	UnsList *unstructured.UnstructuredList
	// contains filtered or unexported fields
}

func (*DynamicResourceList) DeepCopyObject

func (in *DynamicResourceList) DeepCopyObject() runtime.Object

func (*DynamicResourceList) GetObjectKind

func (in *DynamicResourceList) GetObjectKind() schema.ObjectKind

func (*DynamicResourceList) GroupVersionKind

func (in *DynamicResourceList) GroupVersionKind() schema.GroupVersionKind

func (*DynamicResourceList) MarshalJSON

func (in *DynamicResourceList) MarshalJSON() ([]byte, error)

func (*DynamicResourceList) SetGroupVersionKind

func (in *DynamicResourceList) SetGroupVersionKind(kind schema.GroupVersionKind)

func (*DynamicResourceList) UnmarshalJSON

func (in *DynamicResourceList) UnmarshalJSON(bs []byte) error

type Typer

type Typer interface {
	GroupVersion() schema.GroupVersion
	GroupVersionKind() schema.GroupVersionKind
	GroupVersionKindList() schema.GroupVersionKind
	GroupVersionResource() schema.GroupVersionResource
	Kind() string
	KindList() string
	Resource() string
	Namespaced() bool
}

func NewDefaultTyper

func NewDefaultTyper(apiVersion string, kind string) (Typer, error)

Jump to

Keyboard shortcuts

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