build

package
v0.0.0-...-d0717c5 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirectoryHash

func DirectoryHash(algorithm resources.HashAlgorithm, baseDir string, relativeDir string) ([]byte, error)

func KustomizeBuildCommand

func KustomizeBuildCommand(path string, flags []string) (string, error)

func NormalizeLineEndings

func NormalizeLineEndings(content string) string

Types

type DiscoveryIntersection

type DiscoveryIntersection struct {
	Delete []PairedDiscovery
	Check  []PairedDiscovery
	Create []PairedDiscovery
}

func Intersect

func Intersect(repository *resources.Repository, lockfile *resources.Lockfile) *DiscoveryIntersection

Intersect finds the intersection and difference of the resources.Repository and resources.Lockfile based on the source path.

type PairedDiscovery

type PairedDiscovery struct {
	Source      *resources.Source
	Discovery   *resources.Discovery
	BuildStatus *resources.BuildStatus
}

PairedDiscovery matches a source resources.Discovery together with its resources.BuildStatus. This information is used when sending metadata about the state of the repository to a processor

func ReconcileDifferences

func ReconcileDifferences(repository *resources.Repository, lockfile *resources.Lockfile, intersection *DiscoveryIntersection) ([]PairedDiscovery, error)

Jump to

Keyboard shortcuts

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