vault

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Type1Password      = "1password"
	IntegrationName    = "token-operator"
	IntegrationVersion = "v0.1.0"
)
View Source
const (
	ErrItemNotFound  = errors.Error("item not found")
	ErrVaultNotFound = errors.Error("vault not found")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Name  string
	Path  string
	Field string
	Value string
}

Item defines a common vault item

type OnePassword

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

func NewOnePasswordVault

func NewOnePasswordVault(ctx context.Context, token string, obsvr *observe.Observer) (*OnePassword, error)

func (*OnePassword) CreateItem

func (o *OnePassword) CreateItem(vault *token.Vault, value string) (*Item, error)

func (*OnePassword) DeleteItem

func (o *OnePassword) DeleteItem(vault *token.Vault) error

func (*OnePassword) GetItem

func (o *OnePassword) GetItem(vault *token.Vault) (*Item, error)

func (*OnePassword) UpdateItem

func (o *OnePassword) UpdateItem(vault *token.Vault, value string) error

func (*OnePassword) WithDryRun

func (o *OnePassword) WithDryRun(dryRun bool)

Jump to

Keyboard shortcuts

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