Documentation
¶
Overview ¶
Package operatorbase contains the base functionality for operators.
Index ¶
- func BeforeConfig(composeCommand []string) func(ctx context.Context, cmd *cli.Command) (context.Context, error)
- func PrepareConfig(logger log.Logger, data map[string]any) (map[string]any, error)
- func ReadConfig(logger log.Logger, cmd *cli.Command) (map[string]any, error)
- func RunCmd(ctx context.Context, args []string) error
- func RunCompose(ctx context.Context, args []string) error
- func WriteConfig(logger log.Logger, data map[string]any, projectID string) (string, error)
- type ComposeCommandKey
- type ComposeFilePathKey
- type LoggerKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeforeConfig ¶
func BeforeConfig(composeCommand []string) func(ctx context.Context, cmd *cli.Command) (context.Context, error)
BeforeConfig is a function that is called before the command is executed.
func PrepareConfig ¶
PrepareConfig prepares the config
func ReadConfig ¶
ReadConfig reads the config from stdin
func RunCompose ¶
RunCompose is a function that is called to run a docker compose command.
Types ¶
type ComposeCommandKey ¶
type ComposeCommandKey struct{}
Click to show internal directories.
Click to hide internal directories.