deck

package
v0.3.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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.

type RunResult

type RunResult struct {
	Stdout string
	Stderr string
}

RunResult captures deck command output.

type Runner

type Runner interface {
	Run(ctx context.Context, opts RunOptions) (*RunResult, error)
}

Runner executes deck commands.

Jump to

Keyboard shortcuts

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