Documentation ¶
Index ¶
- Variables
- func AuthChecker(p *OnePassword) check.Checker
- type Command
- func (c *Command) Complete(ctx context.Context, r *readline.Readline) []goprompt.Suggest
- func (c *Command) Description() string
- func (c *Command) Execute(ctx context.Context, r *readline.Readline) error
- func (c *Command) Help(ctx context.Context, r *readline.Readline) string
- func (c *Command) Name() string
- type CommandOption
- type Config
- type OnePassword
- func (op *OnePassword) Get(ctx context.Context, secret Secret) (string, error)
- func (op *OnePassword) GetDocument(ctx context.Context, secret Secret) (string, error)
- func (op *OnePassword) GetOnetimePassword(ctx context.Context, account, uuid string) (string, error)
- func (op *OnePassword) IsAuthenticated() (bool, 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) SignIn(ctx context.Context) error
- type Option
- type Secret
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotSignedIn = errors.New("you're not signed into your 1password account")
Functions ¶
func AuthChecker ¶ added in v0.3.0
func AuthChecker(p *OnePassword) check.Checker
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func NewCommand ¶
func NewCommand(l log.Logger, op *OnePassword, opts ...CommandOption) (*Command, error)
func (*Command) Description ¶
type CommandOption ¶
func CommandWithName ¶ added in v0.3.3
func CommandWithName(v string) CommandOption
type OnePassword ¶
type OnePassword struct {
// contains filtered or unexported fields
}
func (*OnePassword) GetDocument ¶ added in v0.1.0
func (*OnePassword) GetOnetimePassword ¶
func (*OnePassword) IsAuthenticated ¶ added in v0.3.0
func (op *OnePassword) IsAuthenticated() (bool, error)
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.