Documentation ¶
Index ¶
- type Codec
- type DynamicResource
- 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
- 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
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 ¶
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 (*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 (*DynamicResource) GetSelfLink ¶
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 (in *DynamicResource) List(ctx context.Context, options *internalversion.ListOptions) (runtime.Object, error)
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 (*DynamicResource) SetSelfLink ¶
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 }
Click to show internal directories.
Click to hide internal directories.