verify

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 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(client *registry.HTTPClient) (*cobra.Command, error)

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

func SetupVerifier

func SetupVerifier(
	client *registry.HTTPClient,
	flags *Flags,
) (*verify.Verifier, error)

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

Types

type Flags

type Flags struct {
	LockfileName         string
	ConfigPath           string
	EnvPath              string
	IgnoreMissingDigests bool
	ExcludeTags          bool
}

Flags are all possible flags to initialize a Verifier.

func NewFlags

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

NewFlags returns Flags after validating its fields.

Jump to

Keyboard shortcuts

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