cli

package
v0.0.0-...-674084c Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageRefSliceValue

type ImageRefSliceValue struct {
	// contains filtered or unexported fields
}

ImageRefSliceValue is a slice of image references (name.Reference) for use with pflag. Adapted from https://github.com/spf13/pflag/blob/master/string_slice.go

func NewImageRefSliceValue

func NewImageRefSliceValue(p *[]name.Reference) *ImageRefSliceValue

NewImageRefSliceValue creates a `pflag.Value` wrapper for a slice of name.Reference (image reference) values.

func (*ImageRefSliceValue) Set

func (value *ImageRefSliceValue) Set(v string) error

Set sets the underlying value given a string passed to the flag. As with other slice values, if it has already been set, being called again will append to the slice.

func (*ImageRefSliceValue) String

func (value *ImageRefSliceValue) String() string

String returns a string representation of the value

func (*ImageRefSliceValue) Type

func (*ImageRefSliceValue) Type() string

Type returns a name for the type of flag

Jump to

Keyboard shortcuts

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