Documentation
¶
Index ¶
- Variables
- type App
- type AppNameString
- type AppSearchRequest
- type AppStoreClient
- func (h *AppStoreClient) ChangePassword(oldPassword, newPassword string) error
- func (h *AppStoreClient) CheckAuth() error
- func (h *AppStoreClient) CreateApp(appName string) (string, error)
- func (h *AppStoreClient) DeleteApp(appId string) error
- func (h *AppStoreClient) DeleteUser() error
- func (h *AppStoreClient) DeleteVersion(versionId string) error
- func (h *AppStoreClient) DownloadVersion(versionId string) (*FullVersionInfo, error)
- func (h *AppStoreClient) GetVersions(appId string) ([]Version, error)
- func (h *AppStoreClient) ListOwnApps() ([]App, error)
- func (h *AppStoreClient) Login(username, password string) error
- func (h *AppStoreClient) Logout() error
- func (h *AppStoreClient) RegisterAndValidateUser(user, password, email string) error
- func (h *AppStoreClient) RegisterUser(user, password, email string) error
- func (h *AppStoreClient) SearchForApps(searchTerm string, showUnofficialApps bool) ([]AppWithLatestVersion, error)
- func (h *AppStoreClient) UploadVersion(appId, versionName string, content []byte) (string, error)
- func (h *AppStoreClient) ValidateCode() error
- func (h *AppStoreClient) WipeData()
- type AppWithLatestVersion
- type ChangePasswordForm
- type FullVersionInfo
- type LoginCredentials
- type NumberString
- type RegistrationForm
- type UserNameString
- type Version
- type VersionUpload
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ApiPrefix = "/api" WipeDataPath = ApiPrefix + "/wipe-data" RegistrationPath = userPath + "/registration" EmailValidationPath = userPath + "/validate" LoginPath = userPath + "/login" LogoutPath = userPath + "/logout" AuthCheckPath = userPath + "/auth-check" DeleteUserPath = userPath + "/delete" ChangePasswordPath = userPath + "/change-password" VersionPath = ApiPrefix + "/versions" VersionUploadPath = VersionPath + "/upload" VersionDeletePath = VersionPath + "/delete" GetVersionsPath = VersionPath + "/list" DownloadPath = VersionPath + "/download" AppPath = ApiPrefix + "/apps" AppCreationPath = AppPath + "/create" AppGetListPath = AppPath + "/get-list" AppDeletePath = AppPath + "/delete" SearchAppsPath = AppPath + "/search" DefaultValidationCode = "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef" )
Functions ¶
This section is empty.
Types ¶
type AppNameString ¶
type AppNameString struct {
Value string `json:"value" validate:"app_name"`
}
type AppSearchRequest ¶
type AppStoreClient ¶
type AppStoreClient struct {
Parent utils.ComponentClient
}
func (*AppStoreClient) ChangePassword ¶
func (h *AppStoreClient) ChangePassword(oldPassword, newPassword string) error
func (*AppStoreClient) CheckAuth ¶
func (h *AppStoreClient) CheckAuth() error
func (*AppStoreClient) CreateApp ¶
func (h *AppStoreClient) CreateApp(appName string) (string, error)
func (*AppStoreClient) DeleteApp ¶
func (h *AppStoreClient) DeleteApp(appId string) error
func (*AppStoreClient) DeleteUser ¶
func (h *AppStoreClient) DeleteUser() error
func (*AppStoreClient) DeleteVersion ¶
func (h *AppStoreClient) DeleteVersion(versionId string) error
func (*AppStoreClient) DownloadVersion ¶
func (h *AppStoreClient) DownloadVersion(versionId string) (*FullVersionInfo, error)
func (*AppStoreClient) GetVersions ¶
func (h *AppStoreClient) GetVersions(appId string) ([]Version, error)
func (*AppStoreClient) ListOwnApps ¶
func (h *AppStoreClient) ListOwnApps() ([]App, error)
func (*AppStoreClient) Login ¶
func (h *AppStoreClient) Login(username, password string) error
func (*AppStoreClient) Logout ¶
func (h *AppStoreClient) Logout() error
func (*AppStoreClient) RegisterAndValidateUser ¶
func (h *AppStoreClient) RegisterAndValidateUser(user, password, email string) error
func (*AppStoreClient) RegisterUser ¶
func (h *AppStoreClient) RegisterUser(user, password, email string) error
func (*AppStoreClient) SearchForApps ¶
func (h *AppStoreClient) SearchForApps(searchTerm string, showUnofficialApps bool) ([]AppWithLatestVersion, error)
func (*AppStoreClient) UploadVersion ¶
func (h *AppStoreClient) UploadVersion(appId, versionName string, content []byte) (string, error)
func (*AppStoreClient) ValidateCode ¶
func (h *AppStoreClient) ValidateCode() error
func (*AppStoreClient) WipeData ¶
func (h *AppStoreClient) WipeData()
type AppWithLatestVersion ¶
type ChangePasswordForm ¶
type FullVersionInfo ¶
type LoginCredentials ¶
type NumberString ¶
type NumberString struct {
Value string `json:"value" validate:"number"`
}
type RegistrationForm ¶
type UserNameString ¶
type UserNameString struct {
Value string `json:"value" validate:"number"`
}
type VersionUpload ¶
Click to show internal directories.
Click to hide internal directories.