Documentation
¶
Index ¶
- Variables
- type AccountDetails
- type AppAndVersion
- type AppNameString
- type AppStoreClient
- type AppStoreClientImpl
- func (h *AppStoreClientImpl) ChangePassword(oldPassword, newPassword string) error
- func (h *AppStoreClientImpl) ConfirmEmailChange(emailChangeConfirmationCode string) error
- func (h *AppStoreClientImpl) ConfirmationRegistration(registrationCode string) error
- func (h *AppStoreClientImpl) CreateApp(appName string) error
- func (h *AppStoreClientImpl) DeleteApp(appName string) error
- func (h *AppStoreClientImpl) DeleteOwnAccount() error
- func (h *AppStoreClientImpl) DeleteVersion(appName, versionName string) error
- func (h *AppStoreClientImpl) DownloadVersion(userName, appName, versionName string) (*Version, error)
- func (h *AppStoreClientImpl) GetAccountDetails() (*AccountDetails, error)
- func (h *AppStoreClientImpl) GetEmailConfig() (*u.EmailConfig, error)
- func (h *AppStoreClientImpl) ListOwnApps() ([]string, error)
- func (h *AppStoreClientImpl) ListVersions(userName, appName string) ([]LeanVersionDto, error)
- func (h *AppStoreClientImpl) Login(username, password string) error
- func (h *AppStoreClientImpl) Logout() error
- func (h *AppStoreClientImpl) Register(maintainer, password, email string) error
- func (h *AppStoreClientImpl) RequestEmailChange(email string) error
- func (h *AppStoreClientImpl) SearchForApps(maintainerSearchTerm, appSearchTerm string, showUnofficialApps bool) ([]AppWithLatestVersion, error)
- func (h *AppStoreClientImpl) SetEmailConfig(emailConfig *u.EmailConfig) error
- func (h *AppStoreClientImpl) UploadVersion(appName, versionName string, content []byte) error
- func (s *AppStoreClientImpl) WipeData()
- type AppTree
- type AppWithLatestVersion
- type ChangePasswordForm
- type EmailString
- type LeanVersionDto
- type LoginCredentials
- type NumberString
- type RegistrationForm
- type SearchRequest
- type SecretString
- type UserNameString
- type Version
- type VersionTree
- type VersionUploadDto
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ApiPrefix = "/api" WipeDataPath = ApiPrefix + "/wipe-data" RegistrationPath = userPath + "/registration" ConfirmRegistrationPath = userPath + "/validate" LoginPath = userPath + "/login" LogoutPath = userPath + "/logout" DeleteUserPath = userPath + "/delete" ChangePasswordPath = userPath + "/change-password" AccountDetailsPath = userPath + "/details" EmailChangePath = userPath + "/email-change" RequestEmailChangePath = EmailChangePath + "/request" ConfirmEmailChangePath = EmailChangePath + "/confirm" 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" EmailConfigPath = ApiPrefix + "/email-config" EmailConfigReadPath = EmailConfigPath + "/read" EmailConfigWritePath = EmailConfigPath + "/write" )
Functions ¶
This section is empty.
Types ¶
type AccountDetails ¶ added in v0.0.143
type AppAndVersion ¶ added in v0.0.155
type AppNameString ¶
type AppNameString struct {
Value string `json:"value" validate:"app_name"`
}
type AppStoreClient ¶
type AppStoreClient interface {
Register(maintainer, password, email string) error
ConfirmationRegistration(code string) error
Login(username, password string) error
DeleteOwnAccount() error
CreateApp(appName string) error
SearchForApps(maintainerSearchTerm, appSearchTerm string, showUnofficialApps bool) ([]AppWithLatestVersion, error)
ListOwnApps() ([]string, error)
UploadVersion(appName, versionName string, content []byte) error
DownloadVersion(userName, appName, versionName string) (*Version, error)
ListVersions(userName, appName string) ([]LeanVersionDto, error)
DeleteVersion(appName, versionName string) error
DeleteApp(appName string) error
ChangePassword(oldPassword, newPassword string) error
Logout() error
GetAccountDetails() (*AccountDetails, error)
GetEmailConfig() (*u.EmailConfig, error)
SetEmailConfig(emailConfig *u.EmailConfig) error
RequestEmailChange(email string) error
ConfirmEmailChange(emailChangeConfirmationCode string) error
}
type AppStoreClientImpl ¶ added in v0.0.113
type AppStoreClientImpl struct {
Parent u.ComponentClient
Validator validation.VersionValidator
}
func (*AppStoreClientImpl) ChangePassword ¶ added in v0.0.113
func (h *AppStoreClientImpl) ChangePassword(oldPassword, newPassword string) error
func (*AppStoreClientImpl) ConfirmEmailChange ¶ added in v0.0.155
func (h *AppStoreClientImpl) ConfirmEmailChange(emailChangeConfirmationCode string) error
func (*AppStoreClientImpl) ConfirmationRegistration ¶ added in v0.0.155
func (h *AppStoreClientImpl) ConfirmationRegistration(registrationCode string) error
func (*AppStoreClientImpl) CreateApp ¶ added in v0.0.113
func (h *AppStoreClientImpl) CreateApp(appName string) error
func (*AppStoreClientImpl) DeleteApp ¶ added in v0.0.113
func (h *AppStoreClientImpl) DeleteApp(appName string) error
func (*AppStoreClientImpl) DeleteOwnAccount ¶ added in v0.0.155
func (h *AppStoreClientImpl) DeleteOwnAccount() error
func (*AppStoreClientImpl) DeleteVersion ¶ added in v0.0.113
func (h *AppStoreClientImpl) DeleteVersion(appName, versionName string) error
func (*AppStoreClientImpl) DownloadVersion ¶ added in v0.0.113
func (h *AppStoreClientImpl) DownloadVersion(userName, appName, versionName string) (*Version, error)
func (*AppStoreClientImpl) GetAccountDetails ¶ added in v0.0.143
func (h *AppStoreClientImpl) GetAccountDetails() (*AccountDetails, error)
func (*AppStoreClientImpl) GetEmailConfig ¶ added in v0.0.155
func (h *AppStoreClientImpl) GetEmailConfig() (*u.EmailConfig, error)
func (*AppStoreClientImpl) ListOwnApps ¶ added in v0.0.113
func (h *AppStoreClientImpl) ListOwnApps() ([]string, error)
func (*AppStoreClientImpl) ListVersions ¶ added in v0.0.155
func (h *AppStoreClientImpl) ListVersions(userName, appName string) ([]LeanVersionDto, 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) Register ¶ added in v0.0.155
func (h *AppStoreClientImpl) Register(maintainer, password, email string) error
func (*AppStoreClientImpl) RequestEmailChange ¶ added in v0.0.155
func (h *AppStoreClientImpl) RequestEmailChange(email string) error
func (*AppStoreClientImpl) SearchForApps ¶ added in v0.0.113
func (h *AppStoreClientImpl) SearchForApps(maintainerSearchTerm, appSearchTerm string, showUnofficialApps bool) ([]AppWithLatestVersion, error)
func (*AppStoreClientImpl) SetEmailConfig ¶ added in v0.0.155
func (h *AppStoreClientImpl) SetEmailConfig(emailConfig *u.EmailConfig) error
func (*AppStoreClientImpl) UploadVersion ¶ added in v0.0.113
func (h *AppStoreClientImpl) UploadVersion(appName, versionName string, content []byte) error
func (*AppStoreClientImpl) WipeData ¶ added in v0.0.113
func (s *AppStoreClientImpl) WipeData()
type AppWithLatestVersion ¶
type ChangePasswordForm ¶
type EmailString ¶ added in v0.0.155
type EmailString struct {
Value string `json:"value" validate:"email"`
}
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 SecretString ¶ added in v0.0.155
type SecretString struct {
Value string `json:"value" validate:"secret"`
}
type UserNameString ¶
type UserNameString struct {
Value string `json:"value" validate:"number"`
}
type VersionTree ¶ added in v0.0.155
type VersionUploadDto ¶ added in v0.0.134
Click to show internal directories.
Click to hide internal directories.