sdk

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 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 {
	ServiceAccountToken string
	IntegrationName     string
	IntegrationVersion  string
}

Config holds the configuration for the 1Password SDK client.

type SDK

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

SDK is a client for interacting with 1Password using the SDK.

func NewClient

func NewClient(ctx context.Context, config Config) (*SDK, error)

func (*SDK) GetFileContent

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

func (*SDK) GetItemByID

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

func (*SDK) GetItemsByTitle

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

func (*SDK) GetVaultsByTitle

func (s *SDK) GetVaultsByTitle(ctx context.Context, title string) ([]model.Vault, error)

Jump to

Keyboard shortcuts

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