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
Click to show internal directories.
Click to hide internal directories.