Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrConflictingFlag ¶
type ErrConflictingFlag struct {
Flag string
}
ErrConflictingFlag indicates a deck flag was provided when kongctl injects it.
func (ErrConflictingFlag) Error ¶
func (e ErrConflictingFlag) Error() string
type ErrDeckNotFound ¶
type ErrDeckNotFound struct{}
ErrDeckNotFound indicates the deck executable could not be located.
func (ErrDeckNotFound) Error ¶
func (e ErrDeckNotFound) Error() string
type ErrInvalidArgs ¶
type ErrInvalidArgs struct {
Reason string
}
ErrInvalidArgs reports invalid deck arguments or missing execution context.
func (ErrInvalidArgs) Error ¶
func (e ErrInvalidArgs) Error() string
type ExecRunner ¶
type ExecRunner struct {
// contains filtered or unexported fields
}
ExecRunner runs deck via os/exec.
func NewRunner ¶
func NewRunner() *ExecRunner
NewRunner returns a runner that executes deck commands.
func (*ExecRunner) Run ¶
func (r *ExecRunner) Run(ctx context.Context, opts RunOptions) (*RunResult, error)
Run executes deck with the provided options.
type RunOptions ¶
type RunOptions struct {
Args []string
Mode string
KonnectToken string
KonnectControlPlaneName string
KonnectAddress string
WorkDir string
}
RunOptions configures a deck invocation.
Click to show internal directories.
Click to hide internal directories.