Documentation
¶
Overview ¶
Package verify provides functionality for verifying that an existing Lockfile is up-to-date.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DifferentLockfileError ¶ added in v0.6.4
type DifferentLockfileError struct {
ExistingLockfile *generate.Lockfile
NewLockfile *generate.Lockfile
}
DifferentLockfileError reports differences between the existing Lockfile and one that is newly generated.
func (*DifferentLockfileError) Error ¶ added in v0.6.4
func (d *DifferentLockfileError) Error() string
Error returns the different files, indented as JSON.
type Verifier ¶
type Verifier struct {
Generator generate.IGenerator
DockerfileDifferentiator diff.IDockerfileDifferentiator
ComposefileDifferentiator diff.IComposefileDifferentiator
KubernetesfileDifferentiator diff.IKubernetesfileDifferentiator
}
Verifier verifies that the Lockfile is the same as one that would be generated if a new one were generated.
func NewVerifier ¶
func NewVerifier( generator generate.IGenerator, dockerfileDifferentiator diff.IDockerfileDifferentiator, composefileDifferentiator diff.IComposefileDifferentiator, kubernetesfileDifferentiator diff.IKubernetesfileDifferentiator, ) (*Verifier, error)
NewVerifier returns a Verifier after validating its fields.
Click to show internal directories.
Click to hide internal directories.