configuration

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsoleWriter added in v0.11.3

type ConsoleWriter interface {
	Info(msg ...interface{})
	Warn(msg ...interface{})
	Error(msg ...interface{})
	Debug(msg ...interface{})
}

type Consoler added in v0.11.3

type Consoler interface {
	io.Writer
	ConsoleWriter
}

type CreateConfigurationEntrypoint

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

CreateConfigurationEntrypoint defines the entrypoint for the application

func NewCreateConfigurationEntrypoint

func NewCreateConfigurationEntrypoint(opts ...OptionsFunc) *CreateConfigurationEntrypoint

NewCreateConfigurationEntrypoint returns a new entrypoint

func (*CreateConfigurationEntrypoint) Execute

func (e *CreateConfigurationEntrypoint) Execute(ctx context.Context, options *Options) error

Execute is a pseudo-main method for the command

func (*CreateConfigurationEntrypoint) Options

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

Options provides the options for the entrypoint

type EncryptionKeyGenerator

type EncryptionKeyGenerator interface {
	GenerateEncryptionKey() (string, error)
}

type MockCreateConfigurationEntrypoint

type MockCreateConfigurationEntrypoint struct {
	mock.Mock
}

MockCreateConfigurationEntrypoint is a mock of Entrypoint interface

func NewMockCreateConfigurationEntrypoint

func NewMockCreateConfigurationEntrypoint() *MockCreateConfigurationEntrypoint

NewMockCreateConfigurationEntrypoint provides an implementation Entrypoint interface

func (*MockCreateConfigurationEntrypoint) Execute

Execute provides a mock function

type Options

type Options struct {
	BuildersPath                     string
	Concurrency                      int
	ConfigurationFilePath            string
	CredentialsEncryptionKey         string
	CredentialsFormat                string
	CredentialsLocalStoragePath      string
	CredentialsStorageType           string
	EnableSemanticVersionTags        bool
	Force                            bool
	GenerateCredentialsEncryptionKey bool
	ImagesPath                       string
	LogPathFile                      string
	PushImages                       bool
	SemanticVersionTagsTemplates     []string
}

type OptionsFunc

type OptionsFunc func(opts *CreateConfigurationEntrypoint)

OptionsFunc defines the signature for an option function to set entrypoint attributes

func WithConsole added in v0.11.3

func WithConsole(console Consoler) OptionsFunc

WithConsole sets the writer for the entrypoint

func WithEncryption

func WithEncryption(encryption EncryptionKeyGenerator) OptionsFunc

WithEncryption sets the encription for the entrypoint

func WithFileSystem

func WithFileSystem(fs afero.Fs) OptionsFunc

WithFileSystem sets the writer for the entrypoint

Jump to

Keyboard shortcuts

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