onepassword

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OnePasswordConfig

type OnePasswordConfig struct {
	// Ref is the 1Password secret reference in the format: op://<vault>/<item>/[section/]<field>
	// Examples:
	//   - op://VaultName/ItemName/fieldName (specific field)
	//   - op://VaultName/ItemName/sectionName/fieldName (field in section)
	//   - op://VaultName/ItemName/sectionName (whole section)
	//   - op://VaultName/ItemName (whole item)
	Ref string `json:"ref" yaml:"ref"`
	// UseSectionPrefix controls whether section names are used as prefixes for field keys.
	// When true (default), fields in sections will have keys like "SectionName_FieldName".
	// When false, fields will use just "FieldName", and collisions will be warned.
	UseSectionPrefix *bool `json:"use_section_prefix,omitempty" yaml:"use_section_prefix,omitempty"`
}

OnePasswordConfig represents the configuration for 1Password provider

type OnePasswordProvider

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

OnePasswordProvider implements the provider interface for 1Password

func (*OnePasswordProvider) Fetch

func (p *OnePasswordProvider) Fetch(secretContext provider.SecretContext, mapID string, config map[string]interface{}, keys map[string]string) ([]provider.KeyValue, error)

Fetch fetches secrets from 1Password

func (*OnePasswordProvider) Name

func (p *OnePasswordProvider) Name() string

Name returns the provider name

Jump to

Keyboard shortcuts

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