comparable

package
v0.1.1342-mattc-compar... Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Differences

type Differences struct {
	SourceValue      string
	DestinationValue string
}

type OctopusResource

type OctopusResource interface {
	// Compare compares the current resource to another resource and returns a comparison object
	Compare(other OctopusResource) OctopusResourceComparison
	// GetChildResources returns a slice of child resources of the current resource
	GetChildResources() []OctopusResource
	// GetName returns the name of the resource
	GetName() string
}

OctopusResource is an interface that defines the methods that all Octopus resources must implement in order to be compared to another similar resource.

type OctopusResourceComparison

type OctopusResourceComparison struct {
	// SourceResource is the source resource that was compared (i.e this resource)
	SourceResource OctopusResource
	// DestinationResource is the destination resource that was compared (i.e the other resource)
	DestinationResource OctopusResource
	// Differences is a map of the differences between the source and destination resources
	Differences map[string]Differences
	// ChildOctopusResourceComparison is a map of the child resources of the source resource and their comparisons
	ChildOctopusResourceComparison map[string]OctopusResourceComparison
}

OctopusResourceComparison is a struct that defines the comparison between two Octopus resources

Jump to

Keyboard shortcuts

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