diff

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Changes

type Changes struct {
	Added     []string
	Group     string
	Modified  map[string]string
	Removed   []string
	Reordered []*LineMove
}

func Clusters

func Clusters(a map[string]interface{}, b map[string]interface{}, opts ClustersDiffOptions) (*Changes, error)

func VirtualHosts

func VirtualHosts(a map[string]interface{}, b map[string]interface{}, opts VirtualHostsDiffOptions) (*Changes, error)

func (*Changes) Empty

func (c *Changes) Empty() bool

type ClustersDiffOptions added in v0.0.3

type ClustersDiffOptions struct {
	IncludedClusters []string
}

func (ClustersDiffOptions) GetIncludedClustersAsMap added in v0.0.3

func (c ClustersDiffOptions) GetIncludedClustersAsMap() map[string]struct{}

type LineMove

type LineMove struct {
	Line   string
	NewPos int
	OldPos int
}

type VirtualHostsDiffOptions added in v0.0.3

type VirtualHostsDiffOptions struct {
	RouteConfigName      string
	IncludedVirtualHosts []string
}

func (VirtualHostsDiffOptions) GetIncludedVirtualHostsAsMap added in v0.0.3

func (v VirtualHostsDiffOptions) GetIncludedVirtualHostsAsMap() map[string]struct{}

Jump to

Keyboard shortcuts

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