executor

package
v1.4.21 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor struct {
	Type               string
	CollectedResources []*model.Resource
	CollectedRecords   []*model.Record
	// contains filtered or unexported fields
}

func NewExecutor

func NewExecutor(mode Mode, dhClient client.Client, doMigration bool, dataOnly bool, force bool, typ string, overrideConfig flags.OverrideConfig) *Executor

func (*Executor) Apply

func (a *Executor) Apply(ctx context.Context, inputFilePath string, format string) error

func (*Executor) ApplyWithPattern

func (a *Executor) ApplyWithPattern(ctx context.Context, inputFilePath string, format string) error

type Mode

type Mode string
const (
	APPLY   Mode = "APPLY"
	CREATE  Mode = "CREATE"
	UPDATE  Mode = "UPDATE"
	DELETE  Mode = "DELETE"
	COLLECT Mode = "COLLECT"
)

Jump to

Keyboard shortcuts

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