planner

package
v0.0.0-...-c7d747a Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Type      ActionType
	Group     string
	Kind      string
	Name      string
	Namespace string
	Original  *unstructured.Unstructured
	Updated   *unstructured.Unstructured
	Error     string
}

type ActionType

type ActionType string
const (
	Create    ActionType = "Create"
	Unchanged ActionType = "Unchanged"
	Delete    ActionType = "Delete"
	Update    ActionType = "Update"
	Skip      ActionType = "Skip"
	Error     ActionType = "Error"
)

type Applier

type Applier interface {
	Run(ctx context.Context, invInfo inventory.Info, objects object.UnstructuredSet, options apply.ApplierOptions) <-chan event.Event
}

type ClusterPlanner

type ClusterPlanner struct {
	// contains filtered or unexported fields
}

func NewClusterPlanner

func NewClusterPlanner(f util.Factory) (*ClusterPlanner, error)

func (*ClusterPlanner) BuildPlan

func (r *ClusterPlanner) BuildPlan(ctx context.Context, inv inventory.Info, objects []*unstructured.Unstructured, o Options) (*Plan, error)

type Options

type Options struct {
	ServerSideOptions common.ServerSideOptions
}

type Plan

type Plan struct {
	Actions []Action
}

type ResourceFetcher

type ResourceFetcher interface {
	FetchResource(ctx context.Context, id object.ObjMetadata) (*unstructured.Unstructured, bool, error)
}

func NewResourceFetcher

func NewResourceFetcher(f util.Factory) (ResourceFetcher, error)

Jump to

Keyboard shortcuts

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