apply

package
v1.26.1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package apply provides the apply command, which upserts resources from a file to the store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(builder Builder) *cobra.Command

Command returns the bindplane apply cobra command.

Types

type Applier

type Applier interface {
	// ApplyResourcesFromFiles applies all resources from a list of files.
	ApplyResourcesFromFiles(ctx context.Context, filenames []string) ([]*model.AnyResourceStatus, error)

	// ApplyResourcesFromReader applies all resources from a reader.
	ApplyResourcesFromReader(ctx context.Context, reader io.Reader) ([]*model.AnyResourceStatus, error)
}

Applier is an interface for applying resources.

func NewApplier

func NewApplier(client client.BindPlane) Applier

NewApplier returns a new Applier.

type Builder

type Builder interface {
	// Build returns a new Applier.
	BuildApplier(ctx context.Context) (Applier, error)
}

Builder is an interface for building an Applier.

Jump to

Keyboard shortcuts

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