publickey

package
v0.0.0-...-1d3367c Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: BSD-3-Clause Imports: 9 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 {
	HTTPClient  *http.Client
	Credentials *auth.TokenResponse
}

func NewClient

func NewClient(httpClient *http.Client, credentials *auth.TokenResponse) *Client

func (*Client) RegisterKeyED25519

func (c *Client) RegisterKeyED25519(key ed25519.PublicKey) (RegisterPublicKeyResponse, error)

func (*Client) RegisterKeyRSA

func (c *Client) RegisterKeyRSA(key *rsa.PublicKey) (RegisterPublicKeyResponse, error)

type RegisterPublicKeyResponse

type RegisterPublicKeyResponse struct {
	Key        string    `json:"key"`
	AccountID  string    `json:"account_id"`
	KeyGUID    string    `json:"key_guid"`
	KID        string    `json:"kid"`
	Expiration time.Time `json:"expiration"`
	JWT        string    `json:"jwt"`
	Type       string    `json:"type"`
}

Jump to

Keyboard shortcuts

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