statediff

package
v0.1.75 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diff

type Diff struct {
	Apps            *MapDiff
	Dependencies    *MapDiff
	DNSRecords      *MapDiff
	DomainsInfo     *MapDiff
	PluginsRegistry map[string]*RegistryDiff
	PluginsOther    map[string]*MapDiff
	PluginsDelete   map[string]struct{}
}

func New

func New(state1, state2 *types.StateData) (*Diff, error)

func (*Diff) Apply

func (s *Diff) Apply(state *types.StateData) error

func (*Diff) IsEmpty

func (s *Diff) IsEmpty() bool

func (*Diff) String

func (s *Diff) String() string

type MapDiff

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

func NewMapDiff

func NewMapDiff(m1, m2 interface{}, maxLevel int) (*MapDiff, error)

func (*MapDiff) Apply

func (d *MapDiff) Apply(m interface{})

func (*MapDiff) IsEmpty

func (d *MapDiff) IsEmpty() bool

func (*MapDiff) String

func (d *MapDiff) String() string

type RegistryDiff

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

func NewRegistryDiff

func NewRegistryDiff(m1, m2 *types.PluginState) (*RegistryDiff, error)

func (*RegistryDiff) Apply

func (d *RegistryDiff) Apply(m *types.PluginState) error

func (*RegistryDiff) IsEmpty

func (d *RegistryDiff) IsEmpty() bool

func (*RegistryDiff) String

func (d *RegistryDiff) String() string

type ResourceDiff

type ResourceDiff struct {
	Res          *registry.ResourceSerialized
	Properties   *MapDiff
	Dependencies *MapDiff
	DependedBy   *MapDiff
}

Jump to

Keyboard shortcuts

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