resource

package
v2.21.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(ctx context.Context, cli client.Client, objects []*unstructured.Unstructured, metaOptions ...cluster.MetaOptions) error

func Patch

func Patch(ctx context.Context, cli client.Client, patches []*unstructured.Unstructured) error

Types

type Applier

type Applier interface {
	Apply(ctx context.Context, cli client.Client, data map[string]any, options ...cluster.MetaOptions) error
}

Applier is an interface that allows to apply a set of resources.

type Creator

type Creator interface {
	Create() ([]Applier, error)
}

Creator is an interface that allows to create a set of resources to be applied.

Jump to

Keyboard shortcuts

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