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 MockCreateConfigurationEntrypoint ¶
MockCreateConfigurationEntrypoint is a mock of Entrypoint interface
func NewMockCreateConfigurationEntrypoint ¶
func NewMockCreateConfigurationEntrypoint() *MockCreateConfigurationEntrypoint
NewMockCreateConfigurationEntrypoint provides an implementation Entrypoint interface
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
Click to show internal directories.
Click to hide internal directories.