reconcile

package
v0.0.0-...-c2bc880 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	ResourceAPI ResourceAPI
	// contains filtered or unexported fields
}

func NewReconciler

func NewReconciler(api ResourceAPI) *Reconciler

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, env state.Environment, alias string, current diff.Type) (state.Type, error)

func (*Reconciler) ReconcileResource

func (r *Reconciler) ReconcileResource(ctx context.Context, env state.Environment, d diff.Resource) (state.Resource, error)

type ResourceAPI

type ResourceAPI interface {
	GetResource(context.Context, state.Resource) (state.Resource, error)
	CreateResource(context.Context, state.Resource) (state.Resource, error)
	DeleteResource(context.Context, state.Resource) error
	UpdateResource(context.Context, state.Resource, []api.Field) (state.Resource, error)
}

Jump to

Keyboard shortcuts

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