Documentation
¶
Index ¶
- Constants
- func Builder(ctx context.Context, c any) (secrets.Keeper, error)
- type Config
- type OnePassword
- func (o *OnePassword) CopySecret(_ context.Context, id string, location string) (secrets.Secret, error)
- func (o *OnePassword) DeleteSecret(_ context.Context, id string) error
- func (o *OnePassword) GetSecret(_ context.Context, id string) (secrets.Secret, error)
- func (o *OnePassword) GetSecretsByName(_ context.Context, name string) ([]secrets.Secret, error)
- func (o *OnePassword) ListLocations(_ context.Context) ([]string, error)
- func (o *OnePassword) ListSecrets(_ context.Context, location string) ([]string, error)
- func (o *OnePassword) MoveSecret(_ context.Context, id string, location string) (secrets.Secret, error)
- func (o *OnePassword) SetSecret(_ context.Context, secret secrets.Secret) (secrets.Secret, error)
- type Single
- func (s *Single) Fields() map[string]string
- func (s *Single) GetField(field string) string
- func (s *Single) ID() string
- func (s *Single) LastModified() time.Time
- func (s *Single) Location() string
- func (s *Single) Name() string
- func (s *Single) Password() string
- func (s *Single) SetField(field, value string)
- func (s *Single) SetFields(fields map[string]string)
- func (s *Single) SetName(name string)
- func (s *Single) SetPassword(password string)
- func (s *Single) SetType(typ string)
- func (s *Single) SetUrl(nu *url.URL)
- func (s *Single) SetUsername(username string)
- func (s *Single) Type() string
- func (s *Single) Url() *url.URL
- func (s *Single) Username() string
Constants ¶
View Source
const ConfigType = "1password"
ConfigType is the name of the config type for the 1password secret keeper.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // ConnectHost is the host to connect to the 1password service. ConnectHost string `mapstructure:"connect_host" yaml:"connect_host"` // ConnectToken is the token to use to connect to the 1password service. ConnectToken string `mapstructure:"connect_token" yaml:"connect_token"` }
Config is the configuration for the 1password secret keeper.
type OnePassword ¶
type OnePassword struct {
// contains filtered or unexported fields
}
func NewOnePassword ¶
func NewOnePassword(url string, token string) *OnePassword
func NewOnePasswordFromEnvironment ¶
func NewOnePasswordFromEnvironment() (*OnePassword, error)
func (*OnePassword) CopySecret ¶
func (*OnePassword) DeleteSecret ¶
func (o *OnePassword) DeleteSecret(_ context.Context, id string) error
func (*OnePassword) GetSecretsByName ¶
func (*OnePassword) ListLocations ¶
func (o *OnePassword) ListLocations(_ context.Context) ([]string, error)
func (*OnePassword) ListSecrets ¶
func (*OnePassword) MoveSecret ¶
type Single ¶
type Single struct {
// contains filtered or unexported fields
}
func (*Single) LastModified ¶
func (*Single) SetPassword ¶
func (*Single) SetUsername ¶
Click to show internal directories.
Click to hide internal directories.