Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetRequest ¶
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 ¶
func (ItemDeleteRequest) Delete ¶
func (r ItemDeleteRequest) Delete() error
type ItemGetRequest ¶
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 ItemPutRequest ¶
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
Click to show internal directories.
Click to hide internal directories.