crypto

package module
v0.0.0-...-cd6ae7c Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: CC0-1.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	CryptoAPI
	KeysAPI
	// contains filtered or unexported fields
}

func Must

func Must(client *Client, err error) *Client

func NewClient

func NewClient(ctx context.Context, opts ...ClientOption) (*Client, error)

NewClient returns a 1Password Go SDK client using the provided ClientOption list.

type ClientOption

type ClientOption func(client *Client)

func WithOSVersion

func WithOSVersion(osVersion string) ClientOption

type CryptoAPI

type CryptoAPI interface {
	Encrypt(key, plaintext string) (string, error)
	Decrypt(key, ciphertext string) (string, error)
}

func NewCryptoAPI

func NewCryptoAPI(innerSDK internal.InnerSDK) CryptoAPI

type KeysAPI

type KeysAPI interface {
	GetKeys(ctx context.Context) ([]string, error)
}

func NewKeysAPI

func NewKeysAPI(innerSDK internal.InnerSDK) KeysAPI

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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