Documentation
¶
Overview ¶
Copyright © 2022 Roberto Hidalgo <joao@un.rob.mx> SPDX-License-Identifier: Apache-2.0
Copyright © 2022 Roberto Hidalgo <joao@un.rob.mx> SPDX-License-Identifier: Apache-2.0
Copyright © 2022 Roberto Hidalgo <joao@un.rob.mx> SPDX-License-Identifier: Apache-2.0
Index ¶
- Constants
- Variables
- func Checksum(fields []*op.ItemField) string
- func DefaultExec(program string, args []string, stdin *bytes.Buffer) (stdout bytes.Buffer, err error)
- func Get(vault, name string) (*op.Item, error)
- func IsValidClientUUID(uuid string) bool
- func ItemMissingError(name string, err error) bool
- func List(vault, prefix string) ([]string, error)
- func Update(vault, name string, item *op.Item) error
- func Use(newClient opClient)
- type CLI
- func (b *CLI) Create(vault string, item *op.Item) error
- func (b *CLI) DeprecatedUpdate(updated *op.Item, original *op.Item) error
- func (b *CLI) Get(vault, name string) (*op.Item, error)
- func (b *CLI) List(vault, prefix string) ([]string, error)
- func (b *CLI) Update(item *op.Item, remote *op.Item) error
- func (b *CLI) UpdateModern(updated *op.Item, original *op.Item) error
- type Connect
- type ExecFunc
Constants ¶
View Source
const UUIDLength = 26
UUIDLength defines the required length of UUIDs.
Variables ¶
View Source
var ConnectClientFactory func(host, token, userAgent string) connect.Client = connect.NewClientWithUserAgent
View Source
var Path = "op"
Path points to the op binary.
Functions ¶
func DefaultExec ¶
func IsValidClientUUID ¶
IsValidClientUUID returns true if the given client uuid is valid.
func ItemMissingError ¶
Types ¶
type CLI ¶
type CLI struct {
DryRun bool // Won't write to 1Password
}
func (*CLI) DeprecatedUpdate ¶
Click to show internal directories.
Click to hide internal directories.