deck

package
v1.28.4 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeMaskedJSONOutput added in v0.10.0

func NormalizeMaskedJSONOutput(stdout string) (string, bool)

NormalizeMaskedJSONOutput quotes bare [masked] values emitted by deck for masked DECK_* numeric values. This is a temporary compatibility workaround for Kong/deck#2047.

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 KonnectTokenSource added in v0.10.0

type KonnectTokenSource interface {
	Token(ctx context.Context) (string, error)
}

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