verify

package
v0.8.10 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package verify provides the "verify" command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVerifyCmd

func NewVerifyCmd() (*cobra.Command, error)

NewVerifyCmd creates the command 'verify' used in 'docker lock verify'.

func SetupVerifier

func SetupVerifier(flags *Flags) (verify.IVerifier, error)

SetupVerifier creates a Verifier configured for docker-lock's cli.

Types

type Flags

type Flags struct {
	LockfileName          string
	IgnoreMissingDigests  bool
	UpdateExistingDigests bool
	ExcludeTags           bool
}

Flags holds all command line options for Dockerfiles, Composefiles, and Kubernetesfiles.

func NewFlags

func NewFlags(
	lockfileName string,
	ignoreMissingDigests bool,
	updateExistingDigests bool,
	excludeTags bool,
) (*Flags, error)

NewFlags returns Flags for Dockerfiles, Composefiles, and Kubernetesfiles, after validating their fields.

lockfileName may not contain slashes.

Jump to

Keyboard shortcuts

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