Documentation
¶
Index ¶
- Variables
- type AppItemDto
- type AppNameString
- type AppStoreClient
- type AppStoreClientImpl
- func (h *AppStoreClientImpl) ChangePassword(oldPassword, newPassword string) error
- func (h *AppStoreClientImpl) CheckAuth() error
- func (h *AppStoreClientImpl) CreateApp(appName string) (string, error)
- func (h *AppStoreClientImpl) DeleteApp(appId string) error
- func (h *AppStoreClientImpl) DeleteUser() error
- func (h *AppStoreClientImpl) DeleteVersion(versionId string) error
- func (h *AppStoreClientImpl) DownloadVersion(versionId string) (*Version, error)
- func (h *AppStoreClientImpl) GetVersions(appId string) ([]LeanVersionDto, error)
- func (h *AppStoreClientImpl) ListOwnApps() ([]AppItemDto, error)
- func (h *AppStoreClientImpl) Login(username, password string) error
- func (h *AppStoreClientImpl) Logout() error
- func (h *AppStoreClientImpl) RegisterAndValidateUser(user, password, email string) error
- func (h *AppStoreClientImpl) RegisterUser(user, password, email string) error
- func (h *AppStoreClientImpl) SearchForApps(maintainerSearchTerm, appSearchTerm string, showUnofficialApps bool) ([]AppWithLatestVersion, error)
- func (h *AppStoreClientImpl) UploadVersion(appId, versionName string, content []byte) (string, error)
- func (h *AppStoreClientImpl) ValidateCode() error
- func (h *AppStoreClientImpl) WipeData()
- type AppWithLatestVersion
- type ChangePasswordForm
- type LeanVersionDto
- type LoginCredentials
- type NumberString
- type RegistrationForm
- type SearchRequest
- type UserNameString
- type Version
- type VersionUploadDto
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 AppItemDto ¶ added in v0.0.136
type AppNameString ¶
type AppNameString struct {
Value string `json:"value" validate:"app_name"`
}
type AppStoreClient ¶
type AppStoreClient interface {
RegisterAndValidateUser(user, password, email string) error
RegisterUser(user, password, email string) error
ValidateCode() error
Login(username, password string) error
DeleteUser() error
CreateApp(appName string) (string, error)
SearchForApps(maintainerSearchTerm, appSearchTerm string, showUnofficialApps bool) ([]AppWithLatestVersion, error)
ListOwnApps() ([]AppItemDto, error)
UploadVersion(appId, versionName string, content []byte) (string, error)
DownloadVersion(versionId string) (*Version, error)
GetVersions(appId string) ([]LeanVersionDto, error)
DeleteVersion(versionId string) error
DeleteApp(appId string) error
ChangePassword(oldPassword, newPassword string) error
WipeData()
Logout() error
CheckAuth() error
}
type AppStoreClientImpl ¶ added in v0.0.113
type AppStoreClientImpl struct {
Parent utils.ComponentClient
}
func (*AppStoreClientImpl) ChangePassword ¶ added in v0.0.113
func (h *AppStoreClientImpl) ChangePassword(oldPassword, newPassword string) error
func (*AppStoreClientImpl) CheckAuth ¶ added in v0.0.113
func (h *AppStoreClientImpl) CheckAuth() error
func (*AppStoreClientImpl) CreateApp ¶ added in v0.0.113
func (h *AppStoreClientImpl) CreateApp(appName string) (string, error)
func (*AppStoreClientImpl) DeleteApp ¶ added in v0.0.113
func (h *AppStoreClientImpl) DeleteApp(appId string) error
func (*AppStoreClientImpl) DeleteUser ¶ added in v0.0.113
func (h *AppStoreClientImpl) DeleteUser() error
func (*AppStoreClientImpl) DeleteVersion ¶ added in v0.0.113
func (h *AppStoreClientImpl) DeleteVersion(versionId string) error
func (*AppStoreClientImpl) DownloadVersion ¶ added in v0.0.113
func (h *AppStoreClientImpl) DownloadVersion(versionId string) (*Version, error)
func (*AppStoreClientImpl) GetVersions ¶ added in v0.0.113
func (h *AppStoreClientImpl) GetVersions(appId string) ([]LeanVersionDto, error)
func (*AppStoreClientImpl) ListOwnApps ¶ added in v0.0.113
func (h *AppStoreClientImpl) ListOwnApps() ([]AppItemDto, error)
func (*AppStoreClientImpl) Login ¶ added in v0.0.113
func (h *AppStoreClientImpl) Login(username, password string) error
func (*AppStoreClientImpl) Logout ¶ added in v0.0.113
func (h *AppStoreClientImpl) Logout() error
func (*AppStoreClientImpl) RegisterAndValidateUser ¶ added in v0.0.113
func (h *AppStoreClientImpl) RegisterAndValidateUser(user, password, email string) error
func (*AppStoreClientImpl) RegisterUser ¶ added in v0.0.113
func (h *AppStoreClientImpl) RegisterUser(user, password, email string) error
func (*AppStoreClientImpl) SearchForApps ¶ added in v0.0.113
func (h *AppStoreClientImpl) SearchForApps(maintainerSearchTerm, appSearchTerm string, showUnofficialApps bool) ([]AppWithLatestVersion, error)
func (*AppStoreClientImpl) UploadVersion ¶ added in v0.0.113
func (h *AppStoreClientImpl) UploadVersion(appId, versionName string, content []byte) (string, error)
func (*AppStoreClientImpl) ValidateCode ¶ added in v0.0.113
func (h *AppStoreClientImpl) ValidateCode() error
func (*AppStoreClientImpl) WipeData ¶ added in v0.0.113
func (h *AppStoreClientImpl) WipeData()
type AppWithLatestVersion ¶
type ChangePasswordForm ¶
type LeanVersionDto ¶ added in v0.0.134
type LoginCredentials ¶
type NumberString ¶
type NumberString struct {
Value string `json:"value" validate:"number"`
}
type RegistrationForm ¶
type SearchRequest ¶ added in v0.0.137
type UserNameString ¶
type UserNameString struct {
Value string `json:"value" validate:"number"`
}
type VersionUploadDto ¶ added in v0.0.134
Click to show internal directories.
Click to hide internal directories.