diff

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

type Bool struct {
	From          state.Bool
	To            state.Bool
	DiffOperation Operation
}

func (Bool) Operation

func (b Bool) Operation() Operation

type Environment

type Environment struct {
	From     state.Environment
	To       state.Environment
	Diffs    map[string]Type
	Variable map[string]state.Type
	// TODO: delete.
	// Dependencies  map[string][]string
	DiffOperation Operation
}

func (Environment) Operation

func (e Environment) Operation() Operation

type File

type File struct {
	From          state.File
	To            state.File
	DiffOperation Operation
}

func (File) Operation

func (f File) Operation() Operation

type Identifier

type Identifier struct {
	From          state.Identifier
	To            state.Identifier
	DiffOperation Operation
}

func (Identifier) Operation

func (d Identifier) Operation() Operation

type Immutable

type Immutable struct {
	From state.Type
	To   state.Type
}

func (Immutable) Operation

func (i Immutable) Operation() Operation

type List

type List struct {
	From          state.List
	To            state.List
	Diffs         []Type
	DiffOperation Operation
}

func (List) Operation

func (l List) Operation() Operation

type Map

type Map struct {
	From          state.Map
	To            state.Map
	Diffs         map[string]Type
	DiffOperation Operation
}

func (Map) Operation

func (m Map) Operation() Operation

type Operation

type Operation string
const (
	OperationEmpty   Operation = ""
	OperationNoop    Operation = "noop"
	OperationCreate  Operation = "create"
	OperationUpdate  Operation = "update"
	OperationDelete  Operation = "delete"
	OperationUnknown Operation = "unknown"
)

type Resource

type Resource struct {
	From          state.Resource
	To            state.Resource
	ConfigDiff    Type
	ExistsDiff    Type
	DiffOperation Operation
}

func (Resource) Operation

func (r Resource) Operation() Operation

type String

type String struct {
	From          state.String
	To            state.String
	DiffOperation Operation
}

func (String) Operation

func (s String) Operation() Operation

type Type

type Type interface {
	Operation() Operation
}

func Diff

func Diff(from, to state.Type) (Type, error)

type Unknown

type Unknown struct {
}

func (Unknown) Operation

func (u Unknown) Operation() Operation

Jump to

Keyboard shortcuts

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