Documentation ¶
Index ¶
- type AppItem
- type Client
- func (client *Client) CreateApp(options CreateOptions) (*CreateResponse, error)
- func (client *Client) DeleteApp(options DeleteOptions) (*DeleteResponse, error)
- func (client *Client) HandleHttpRequest(req *http.Request) (*http.Response, error)
- func (client *Client) ListApps(options ListOptions) (*ListResponse, error)
- func (client *Client) NewApiRequest(method string, endpoint string, body io.Reader) (*http.Request, error)
- func (client *Client) ShowApp(options ShowOptions) (*ShowResponse, error)
- func (client *Client) UpdateApp(options UpdateOptions) (*UpdateResponse, error)
- func (client Client) Upload(options UploadOptions) (*UploadResponse, error)
- type CreateOptions
- type CreateResponse
- type CreatedAppItem
- type DeleteOptions
- type DeleteResponse
- type DetailedAppItem
- type ListOptions
- type ListResponse
- type ShowOptions
- type ShowResponse
- type UpdateForm
- type UpdateOptions
- type UpdateResponse
- type UploadOptions
- type UploadResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppItem ¶
type AppItem struct { PublicKey string `json:publicKey` PrivateKey string `json:privateKey` Created time.Time `json:created` Updated time.Time `json:updated` Platform string `json:platform` VersionCode int `json:versionCode` Email string `json:email` // optional... LaunchUrl string `json:launchUrl` Timeout int `json:timeout` Disabled bool `json:disabled` Note string `json:note` }
create/upload と list/show/update とで共通する部分をここに定義
type Client ¶
type Client struct {
ApiToken string
}
func (*Client) CreateApp ¶
func (client *Client) CreateApp(options CreateOptions) (*CreateResponse, error)
func (*Client) DeleteApp ¶
func (client *Client) DeleteApp(options DeleteOptions) (*DeleteResponse, error)
func (*Client) HandleHttpRequest ¶
func (*Client) ListApps ¶
func (client *Client) ListApps(options ListOptions) (*ListResponse, error)
func (*Client) NewApiRequest ¶
func (*Client) ShowApp ¶
func (client *Client) ShowApp(options ShowOptions) (*ShowResponse, error)
func (*Client) UpdateApp ¶
func (client *Client) UpdateApp(options UpdateOptions) (*UpdateResponse, error)
func (Client) Upload ¶
func (client Client) Upload(options UploadOptions) (*UploadResponse, error)
type CreateOptions ¶
type CreateResponse ¶
type CreateResponse struct {
*CreatedAppItem
}
func (*CreateResponse) ViewUrl ¶
func (createResponse *CreateResponse) ViewUrl() string
type CreatedAppItem ¶
type CreatedAppItem struct { *AppItem PublicUrl string `json:publicURL` AppUrl string `json:appURL` ManageUrl string `json:manageURL` }
create/upload のレスポンス
type DeleteOptions ¶
type DeleteOptions struct {
PublicKey string
}
type DeleteResponse ¶
type DeleteResponse struct {
Body string
}
type DetailedAppItem ¶
type DetailedAppItem struct { *AppItem AppVersionCode string `json:appVersionCode` AppVersionName string `json:appVersionName` Bundle string `json:bundle` IconUrl string `json:iconUrl` Name string `json:name` }
list/show/update のレスポンス
type ListOptions ¶
type ListOptions struct { }
type ListResponse ¶
type ListResponse struct {
Data []DetailedAppItem `json:data`
}
type ShowOptions ¶
type ShowOptions struct {
PublicKey string
}
type ShowResponse ¶
type ShowResponse struct {
*DetailedAppItem
}
func (*ShowResponse) ViewUrl ¶
func (showResponse *ShowResponse) ViewUrl() string
type UpdateForm ¶
type UpdateOptions ¶
type UpdateOptions struct { PublicKey string UpdateForm UpdateForm }
type UpdateResponse ¶
type UpdateResponse struct {
*DetailedAppItem
}
func (*UpdateResponse) ViewUrl ¶
func (updateResponse *UpdateResponse) ViewUrl() string
type UploadOptions ¶
type UploadResponse ¶
type UploadResponse struct {
*CreatedAppItem
}
Click to show internal directories.
Click to hide internal directories.