cli

package
v1.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OP

type OP struct {
	// contains filtered or unexported fields
}

func New

func New(serviceAccountToken, binaryPath, account string) *OP

func (*OP) CreateItem

func (op *OP) CreateItem(ctx context.Context, item *onepassword.Item, vaultUuid string) (*onepassword.Item, error)

func (*OP) DeleteItem

func (op *OP) DeleteItem(ctx context.Context, item *onepassword.Item, vaultUuid string) error

func (*OP) GetItem

func (op *OP) GetItem(ctx context.Context, itemUuid, vaultUuid string) (*onepassword.Item, error)

func (*OP) GetItemByTitle

func (op *OP) GetItemByTitle(ctx context.Context, title string, vaultUuid string) (*onepassword.Item, error)

func (*OP) GetVault

func (op *OP) GetVault(ctx context.Context, uuid string) (*onepassword.Vault, error)

func (*OP) GetVaultsByTitle

func (op *OP) GetVaultsByTitle(ctx context.Context, title string) ([]onepassword.Vault, error)

func (*OP) GetVersion

func (op *OP) GetVersion(ctx context.Context) (*semver.Version, error)

func (*OP) UpdateItem

func (op *OP) UpdateItem(ctx context.Context, item *onepassword.Item, vaultUuid string) (*onepassword.Item, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL