Documentation
¶
Index ¶
- Variables
- func GetCommand(options ...ClientOption) (*cobra.Command, error)
- func ListCommand() *cobra.Command
- func RmCommand(options ...ClientOption) (*cobra.Command, error)
- func RunCommand(options ...ClientOption) (*cobra.Command, error)
- func SetCommand(options ...ClientOption) (*cobra.Command, error)
- func StoreFrom(ctx context.Context) (secrets.Store, error)
- func VersionCommand(info VersionInfo) *cobra.Command
- func WithStore(ctx context.Context, s secrets.Store) context.Context
- type ClientOption
- 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 GetCommand(options ...ClientOption) (*cobra.Command, error)
func ListCommand ¶
func RunCommand ¶ added in v0.0.29
func RunCommand(options ...ClientOption) (*cobra.Command, error)
RunCommand uses config.DesktopSocketPath by default.
func SetCommand ¶
func SetCommand(options ...ClientOption) (*cobra.Command, error)
func VersionCommand ¶
func VersionCommand(info VersionInfo) *cobra.Command
Types ¶
type ClientOption ¶ added in v0.4.0
type ClientOption func(*clientOpts) error
func WithResponseTimeout ¶ added in v0.2.3
func WithResponseTimeout(responseTimeout time.Duration) ClientOption
WithResponseTimeout sets the client response header timeout; 0 disables it.
func WithSocketPath ¶ added in v0.2.3
func WithSocketPath(socketPath string) ClientOption
WithSocketPath overrides the default config.DesktopSocketPath.
func WithTimeout ¶ added in v0.2.2
func WithTimeout(timeout time.Duration) ClientOption
WithTimeout sets the client request timeout; 0 disables it.
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 VersionInfo ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.