opkl

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2025 License: MIT Imports: 7 Imported by: 0

README

OPkl: 1Password Resource Reader for Pkl

Extends the pkl-go library by providing a custom ResourceReader that fetches secrets directly from 1Password vaults, allowing for secure and dynamic configuration management in Pkl.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(options ...option) (pkl.ResourceReader, error)

func WithClient added in v0.2.0

func WithClient(client Client) option

func WithClientDefault added in v0.2.0

func WithClientDefault(token string) option

func WithToken

func WithToken(token string) option

Configures the 1Password token used when reading a secret

Types

type Client added in v0.2.0

type Client interface {
	ReadSecret(ctx context.Context, ref string) (string, error)
}

Jump to

Keyboard shortcuts

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