connect

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ConnectHost  string
	ConnectToken string
}

Config holds the configuration for the Connect client.

type Connect

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

Connect is a client for interacting with 1Password using the Connect API.

func NewClient

func NewClient(config Config) *Connect

NewClient creates a new Connect client using provided configuration.

func (*Connect) GetFileContent

func (c *Connect) GetFileContent(ctx context.Context, vaultID, itemID, fileID string) ([]byte, error)

func (*Connect) GetItemByID

func (c *Connect) GetItemByID(ctx context.Context, vaultID, itemID string) (*model.Item, error)

func (*Connect) GetItemsByTitle

func (c *Connect) GetItemsByTitle(ctx context.Context, vaultID, itemTitle string) ([]model.Item, error)

func (*Connect) GetVaultsByTitle

func (c *Connect) GetVaultsByTitle(ctx context.Context, vaultQuery string) ([]model.Vault, error)

Jump to

Keyboard shortcuts

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