commands

package
v0.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoStoreInContext = errors.New("docker-pass: store not attached to context")

Functions

func GetCommand

func GetCommand() *cobra.Command

func ListCommand

func ListCommand() *cobra.Command

func RmCommand

func RmCommand() *cobra.Command

func RunCommand added in v0.0.29

func RunCommand(options ...RunOption) (*cobra.Command, error)

RunCommand uses api.DesktopSocketPath by default.

func SetCommand

func SetCommand() *cobra.Command

func StoreFrom added in v0.0.39

func StoreFrom(ctx context.Context) (store.Store, error)

func VersionCommand

func VersionCommand(info VersionInfo) *cobra.Command

func WithStore added in v0.0.39

func WithStore(ctx context.Context, s store.Store) context.Context

Types

type ExitCodeError added in v0.0.29

type ExitCodeError struct {
	Code int
}

ExitCodeError is returned when the child process exits non-zero, letting the OTel span wrapper finish before the process exits.

func (*ExitCodeError) Error added in v0.0.29

func (e *ExitCodeError) Error() string

type RunOption added in v0.2.2

type RunOption func(*runOpts) error

func WithResponseTimeout added in v0.2.3

func WithResponseTimeout(responseTimeout time.Duration) RunOption

WithResponseTimeout sets the client response header timeout; 0 disables it.

func WithSocketPath added in v0.2.3

func WithSocketPath(socketPath string) RunOption

WithSocketPath overrides the default api.DesktopSocketPath.

func WithTimeout added in v0.2.2

func WithTimeout(timeout time.Duration) RunOption

WithTimeout sets the client request timeout; 0 disables it.

type VersionInfo

type VersionInfo struct {
	Version string
	Commit  string
}

Jump to

Keyboard shortcuts

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