Documentation ¶
Overview ¶
metadata.go contains code that ports and shims backwards compatibility for the metadata of api responses
Index ¶
- func Create(ctx context.Context, clientGetter KubernetesClientGetter, ...) error
- func Delete(ctx context.Context, clientGetter KubernetesClientGetter, ...) error
- func ExpandModel(model any) map[string]any
- func FlattenManifest(manifest map[string]any, model any) error
- func Read(ctx context.Context, clientGetter KubernetesClientGetter, ...) error
- func Update(ctx context.Context, clientGetter KubernetesClientGetter, ...) error
- type KubernetesClientGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
func Delete(ctx context.Context, clientGetter KubernetesClientGetter, kind, apiVersion string, req resource.DeleteRequest, wait bool) error
func ExpandModel ¶
ExpandModel takes a framework Model struct and converts it to a map compatible with kubernetes unstructured.Object
func FlattenManifest ¶
FlattenModel takes a Kubernetes unstructured object and flattens it into a Terraform Model
func Read ¶
func Read(ctx context.Context, clientGetter KubernetesClientGetter, kind, apiVersion string, req resource.ReadRequest, model any) error
Types ¶
type KubernetesClientGetter ¶
Click to show internal directories.
Click to hide internal directories.