package diff

import "github.com/docker/compose-on-kubernetes/internal/stackresources/diff"

Index

Types

type StackStateDiff

type StackStateDiff struct {
	DeploymentsToAdd     []appstypes.Deployment
	DeploymentsToDelete  []appstypes.Deployment
	DeploymentsToUpdate  []appstypes.Deployment
	StatefulsetsToAdd    []appstypes.StatefulSet
	StatefulsetsToDelete []appstypes.StatefulSet
	StatefulsetsToUpdate []appstypes.StatefulSet
	DaemonsetsToAdd      []appstypes.DaemonSet
	DaemonsetsToDelete   []appstypes.DaemonSet
	DaemonsetsToUpdate   []appstypes.DaemonSet
	ServicesToAdd        []coretypes.Service
	ServicesToDelete     []coretypes.Service
	ServicesToUpdate     []coretypes.Service
}

StackStateDiff is a diff between a current and desired state

func ComputeDiff

func ComputeDiff(current, desired *stackresources.StackState) *StackStateDiff

ComputeDiff computes a diff between a current and a desired stack state

func (*StackStateDiff) Empty

func (d *StackStateDiff) Empty() bool

Empty returns true if the diff is empty

Source Files

stackstatediff.go

Version
v0.5.0 (latest)
Published
Jan 28, 2022
Platform
linux/amd64
Imports
6 packages
Last checked
5 hours ago

Tools for package owners.