client

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2025 License: AGPL-3.0 Imports: 10 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 {
	// contains filtered or unexported fields
}

func New

func New() *Client

func NewWithBaseURL

func NewWithBaseURL(baseURL string) *Client

func (*Client) ApproveDevice

func (c *Client) ApproveDevice(approvalID string, wrappedProjectKey string) (*types.DeviceApproval, error)

func (*Client) DeleteSecret

func (c *Client) DeleteSecret(orgSlug, projectSlug, secretKey string) error

func (*Client) GetDeviceApproval

func (c *Client) GetDeviceApproval(approvalID string) (*types.DeviceApproval, error)

func (*Client) GetEnvironment added in v0.6.0

func (c *Client) GetEnvironment(orgSlug, projectSlug, envSlug string) (*types.Environment, error)

func (*Client) GetProjectBySlug added in v0.4.0

func (c *Client) GetProjectBySlug(orgSlug, projectSlug string) (*types.Project, error)

func (*Client) GetSecret

func (c *Client) GetSecret(orgSlug, projectSlug, secretKey string) (*types.SecretWithValue, error)

func (*Client) GetWrappedProjectKey added in v0.4.0

func (c *Client) GetWrappedProjectKey(orgSlug, projectSlug string) (string, error)

func (*Client) InitializeProjectKey added in v0.4.0

func (c *Client) InitializeProjectKey(orgSlug, projectSlug string, wrappedKey []byte) error

func (*Client) ListDeviceApprovals

func (c *Client) ListDeviceApprovals() ([]types.DeviceApproval, error)

func (*Client) ListEnvironments added in v0.6.0

func (c *Client) ListEnvironments(orgSlug, projectSlug string) ([]types.Environment, error)

func (*Client) ListProjects added in v0.4.0

func (c *Client) ListProjects() ([]types.Project, error)

func (*Client) ListSecrets

func (c *Client) ListSecrets(orgSlug, projectSlug string) ([]types.Secret, error)

func (*Client) Login

func (c *Client) Login(email, password string) (*types.LoginResponse, error)

func (*Client) RegisterDevice

func (c *Client) RegisterDevice(
	token, name string,
	signingPublicKey ed25519.PublicKey,
	encryptionPublicKey []byte,
) (*types.DeviceRegistrationResponse, error)

func (*Client) RejectDevice

func (c *Client) RejectDevice(approvalID string) (*types.DeviceApproval, error)

func (*Client) SetSecret

func (c *Client) SetSecret(
	orgSlug, projectSlug, key string, encryptedValue, nonce []byte, description string, force bool,
) (*types.Secret, error)

Jump to

Keyboard shortcuts

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