builders

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

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 GetBuildersEntrypoint

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

GetBuildersEntrypoint defines the entrypoint for the application

func NewGetBuildersEntrypoint

func NewGetBuildersEntrypoint(opts ...OptionsFunc) *GetBuildersEntrypoint

NewGetBuildersEntrypoint returns a new entrypoint

func (*GetBuildersEntrypoint) Execute

func (e *GetBuildersEntrypoint) Execute(ctx context.Context, args []string, conf *configuration.Configuration, inputHandlerOptions *handler.Options) error

Execute is a pseudo-main method for the command

func (*GetBuildersEntrypoint) Options

func (e *GetBuildersEntrypoint) Options(opts ...OptionsFunc)

Options provides the options for the entrypoint

type MockGetBuildersEntrypoint

type MockGetBuildersEntrypoint struct {
	mock.Mock
}

MockGetBuildersEntrypoint is a mock of Entrypoint interface

func NewMockGetBuildersEntrypoint

func NewMockGetBuildersEntrypoint() *MockGetBuildersEntrypoint

NewMockGetBuildersEntrypoint provides an implementation Entrypoint interface

func (*MockGetBuildersEntrypoint) Execute

Execute provides a mock function

type OptionsFunc

type OptionsFunc func(opts *GetBuildersEntrypoint)

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

Jump to

Keyboard shortcuts

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