onepassword

package module
v0.0.0-...-737c463 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 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 AccountState

type AccountState string
const (
	AccountStateActive AccountState = "ACTIVE"
)

type AccountType

type AccountType string
const (
	AccountTypeIndividual AccountType = "INDIVIDUAL"
)

type Client

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

func NewClient

func NewClient(opts *ClientOptions) (*Client, error)

func (*Client) GetAccount

func (c *Client) GetAccount() (*GetAccountOutput, error)

func (*Client) ListAccounts

func (c *Client) ListAccounts() (*ListAccountsOutput, error)

func (*Client) Read

func (c *Client) Read(reference string) (string, error)

type ClientOptions

type ClientOptions struct {
	Account *string
	Cache   *bool
	Config  *string
	Session *string
}

type GetAccountOutput

type GetAccountOutput struct {
	CreatedAt time.Time    `json:"created_at,omitempty"`
	Domain    string       `json:"domain,omitempty"`
	ID        string       `json:"id,omitempty"`
	Name      string       `json:"name,omitempty"`
	State     AccountState `json:"state,omitempty"`
	Type      AccountType  `json:"type,omitempty"`
}

type ListAccountsOutput

type ListAccountsOutput []struct {
	AccountID string `json:"account_uuid,omitempty"`
	Email     string `json:"email,omitempty"`
	URL       string `json:"url,omitempty"`
	UserID    string `json:"user_uuid,omitempty"`
}

Jump to

Keyboard shortcuts

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