Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compatibilitier ¶
type Compatibilitier interface { AddDeprecated(deprecated ...string) AddRemoved(removed ...string) AddChanged(changed ...string) }
Compatibilitier is the interface for the compatibility checker
type GetImagesEntrypoint ¶
type GetImagesEntrypoint struct {
// contains filtered or unexported fields
}
GetImagesEntrypoint defines the entrypoint for the application
func NewGetImagesEntrypoint ¶
func NewGetImagesEntrypoint(opts ...OptionsFunc) *GetImagesEntrypoint
NewGetImagesEntrypoint returns a new entrypoint
func (*GetImagesEntrypoint) Execute ¶
func (e *GetImagesEntrypoint) Execute(ctx context.Context, args []string, conf *configuration.Configuration, inputEntrypointOptions *Options, inputHandlerOptions *handler.Options) error
Execute is a pseudo-main method for the command
func (*GetImagesEntrypoint) Options ¶
func (e *GetImagesEntrypoint) Options(opts ...OptionsFunc)
Options provides the options for the entrypoint
type MockGetImagesEntrypoint ¶
MockGetImagesEntrypoint is a mock of Entrypoint interface
func NewMockGetImagesEntrypoint ¶
func NewMockGetImagesEntrypoint() *MockGetImagesEntrypoint
NewMockGetImagesEntrypoint provides an implementation Entrypoint interface
func (*MockGetImagesEntrypoint) Execute ¶
func (e *MockGetImagesEntrypoint) Execute(ctx context.Context, args []string, conf *configuration.Configuration, inputEntrypointOptions *Options, inputHandlerOptions *handler.Options) error
Execute provides a mock function
type Options ¶
type Options struct { // Tree enables the output in tree format Tree bool // UserDockerNormalizedName when is true are used Docker normalized name references UseDockerNormalizedName bool }
Options is the options for the get images command entrypoint
type OptionsFunc ¶
type OptionsFunc func(opts *GetImagesEntrypoint)
OptionsFunc defines the signature for an option function to set entrypoint attributes
func WithCompatibility ¶
func WithCompatibility(c Compatibilitier) OptionsFunc
WithCompatibility set the
func WithFileSystem ¶
func WithFileSystem(fs afero.Fs) OptionsFunc
WithFileSystem sets the writer for the entrypoint
func WithWriter ¶
func WithWriter(w io.Writer) OptionsFunc
WithWriter sets the writer for the entrypoint