account

package
v0.0.0-...-066dabf Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetRequest

type GetRequest struct {
	Client *api.Client
}

func (GetRequest) Get

func (g GetRequest) Get() (GetResponse, error)

func (GetRequest) GetAll

func (g GetRequest) GetAll() ([]byte, error)

func (GetRequest) ParseParams

func (g GetRequest) ParseParams(apiURL *url.URL) error

type GetResponse

type GetResponse []struct {
	Name string `json:"name"`
}

type ItemDeleteRequest

type ItemDeleteRequest struct {
	Client *api.Client

	Name string
}

func (ItemDeleteRequest) Delete

func (r ItemDeleteRequest) Delete() error

type ItemGetRequest

type ItemGetRequest struct {
	Client *api.Client

	Name string
}

func (ItemGetRequest) Get

func (g ItemGetRequest) Get() (*ItemGetResponse, error)

func (ItemGetRequest) GetItem

func (g ItemGetRequest) GetItem() ([]byte, error)

GetItem satisfies the ItemGetter interface Not to be used directly. Use Get() instead.

type ItemGetResponse

type ItemGetResponse struct {
	Account   ItemGetResponseAccount `json:"account"`
	Directory string                 `json:"directory"`
	Location  string                 `json:"location"`
	TOS       string                 `json:"tos"`
}

type ItemGetResponseAccount

type ItemGetResponseAccount struct {
	Contact   []string                  `json:"contact"`
	InitialIP string                    `json:"initialIp"`
	Status    string                    `json:"status"`
	CreatedAt string                    `json:"createdAt"`
	Key       ItemGetResponseAccountKey `json:"key"`
}

type ItemGetResponseAccountKey

type ItemGetResponseAccountKey struct {
	E   string `json:"e"`
	N   string `json:"n"`
	Use string `json:"use"`
	Kty string `json:"kty"`
}

type ItemPutRequest

type ItemPutRequest struct {
	Client *api.Client

	Name    string
	Contact string
}

func (ItemPutRequest) ParseParams

func (g ItemPutRequest) ParseParams(apiURL *url.URL) error

ParseParams satisfies the ItemPutter interface. Not to be used directly. Use Put() instead.

func (ItemPutRequest) Put

func (g ItemPutRequest) Put() (*ItemPutResponse, error)

func (ItemPutRequest) PutItem

func (g ItemPutRequest) PutItem() ([]byte, error)

PutItem satisfies the ItemPutter interface. Not to be used directly. Use Put() instead.

type ItemPutResponse

type ItemPutResponse string

type PostRequest

type PostRequest struct {
	Client    *api.Client
	Name      string  `json:"name"`
	Contact   string  `json:"contact"`
	Directory *string `json:"directory"`

	// TOSurl is the URL of CA TermsOfService - setting this indicates agreement.
	TOSurl *string `json:"tos_url"`
}

func (PostRequest) ParseParams

func (g PostRequest) ParseParams(apiURL *url.URL) error

ParseParams satisfies the ItemPutter interface. Not to be used directly. Use Post() instead.

func (PostRequest) Post

func (g PostRequest) Post() (*PostResponse, error)

func (PostRequest) PostItem

func (g PostRequest) PostItem() ([]byte, error)

PostItem satisfies the ItemPutter interface. Not to be used directly. Use Post() instead.

type PostResponse

type PostResponse string

Jump to

Keyboard shortcuts

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