Documentation
¶
Index ¶
- Variables
- func GetCommand() *cobra.Command
- func ListCommand() *cobra.Command
- func RmCommand() *cobra.Command
- func RunCommand() *cobra.Command
- func SetCommand() *cobra.Command
- func StoreFrom(ctx context.Context) (store.Store, error)
- func VersionCommand(info VersionInfo) *cobra.Command
- func WithStore(ctx context.Context, s store.Store) context.Context
- type ExitCodeError
- type VersionInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoStoreInContext = errors.New("docker-pass: store not attached to context")
Functions ¶
func GetCommand ¶
func ListCommand ¶
func RunCommand ¶ added in v0.0.29
func SetCommand ¶
func VersionCommand ¶
func VersionCommand(info VersionInfo) *cobra.Command
Types ¶
type ExitCodeError ¶ added in v0.0.29
type ExitCodeError struct {
Code int
}
ExitCodeError is returned from RunCommand when the executed child process terminated with a non-zero status. It carries the exit code the wrapper should exit with. Returning this instead of calling os.Exit directly lets the surrounding OTel span wrapper finish recording metrics and span data before the process exits.
func (*ExitCodeError) Error ¶ added in v0.0.29
func (e *ExitCodeError) Error() string
type VersionInfo ¶
Click to show internal directories.
Click to hide internal directories.