verify

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

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 IVerifier

type IVerifier interface {
	VerifyLockfile(reader io.Reader) error
}

IVerifier provides an interface for Verifiers's exported methods.

type Verifier

type Verifier struct {
	Generator generate.IGenerator
}

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,
) (*Verifier, error)

NewVerifier returns a Verifier after validating its fields.

func (*Verifier) VerifyLockfile

func (v *Verifier) VerifyLockfile(reader io.Reader) error

VerifyLockfile reads an existing Lockfile and generates a new one for the specified paths. If it is different, the differences are returned as an error.

Jump to

Keyboard shortcuts

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