Documentation
¶
Index ¶
- Variables
- type Command
- type Config
- type OnePassword
- func (op *OnePassword) Get(ctx context.Context, account, vaultUUID, itemUUID, field string) (string, error)
- func (op *OnePassword) GetOnetimePassword(ctx context.Context, account, uuid string) (string, error)
- func (op *OnePassword) Render(ctx context.Context, source string) ([]byte, error)
- func (op *OnePassword) RenderFile(ctx context.Context, source string) ([]byte, error)
- func (op *OnePassword) RenderFileTo(ctx context.Context, source, target string) error
- func (op *OnePassword) Session(account string) (bool, error)
- func (op *OnePassword) SignIn(ctx context.Context, account string) error
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotSignedIn = errors.New("you're not signed into your 1password account")
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func NewCommand ¶
func NewCommand(l log.Logger, cfg Config, client *OnePassword) *Command
func (*Command) Description ¶
type OnePassword ¶
type OnePassword struct {
// contains filtered or unexported fields
}
func (*OnePassword) GetOnetimePassword ¶
func (*OnePassword) RenderFile ¶
func (*OnePassword) RenderFileTo ¶
func (op *OnePassword) RenderFileTo(ctx context.Context, source, target string) error
Click to show internal directories.
Click to hide internal directories.