Documentation
¶
Index ¶
- func MergeEnv(base, other []string) []string
- func MergeEnvWithMap(base []string, otherMap map[string]string) []string
- type Entrypoint
- func (e *Entrypoint) DetectCommand(ctx context.Context, event Event) ([]string, error)
- func (e *Entrypoint) DetectEnviron(ctx context.Context, event Event) ([]string, error)
- func (e *Entrypoint) Execute(ctx context.Context, opt *ExecuteOption, commands ...string) error
- func (e *Entrypoint) Run(ctx context.Context, args ...string) error
- type Event
- type ExecuteOption
- type Executer
- type SSMWrapExecuter
- type ShellExecuter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Entrypoint ¶
type Entrypoint struct {
Executer
// contains filtered or unexported fields
}
func (*Entrypoint) DetectCommand ¶
func (*Entrypoint) DetectEnviron ¶ added in v0.3.0
func (*Entrypoint) Execute ¶
func (e *Entrypoint) Execute(ctx context.Context, opt *ExecuteOption, commands ...string) error
type ExecuteOption ¶ added in v0.3.0
type Executer ¶
type Executer interface {
Execute(ctx context.Context, opt *ExecuteOption, commands ...string) error
}
type SSMWrapExecuter ¶
type SSMWrapExecuter struct {
Executer
// contains filtered or unexported fields
}
func NewSSMWrapExecuter ¶
func NewSSMWrapExecuter(executer Executer, cacheExpires time.Duration) *SSMWrapExecuter
func (*SSMWrapExecuter) Execute ¶
func (e *SSMWrapExecuter) Execute(ctx context.Context, opt *ExecuteOption, commands ...string) error
type ShellExecuter ¶
type ShellExecuter struct {
// contains filtered or unexported fields
}
func NewShellExecuter ¶
func NewShellExecuter() *ShellExecuter
func (*ShellExecuter) Clone ¶
func (e *ShellExecuter) Clone() *ShellExecuter
func (*ShellExecuter) Execute ¶
func (e *ShellExecuter) Execute(ctx context.Context, opt *ExecuteOption, commands ...string) error
func (*ShellExecuter) SetShell ¶
func (e *ShellExecuter) SetShell(shell string, shellArgs []string) *ShellExecuter
Click to show internal directories.
Click to hide internal directories.