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, maintainerPublicKeyRaw []byte) 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, creationTimestamp time.Time, ...) error
- func (s *AppStoreClientImpl) WipeData()
- type AppTree
- type AppWithLatestVersion
- type ChangePasswordForm
- type CreatedVersionResponse
- type EmailString
- type LeanVersionDto
- type LoginCredentials
- type NumberString
- type RegistrationForm
- type SearchRequest
- type SecretString
- type UserNameString
- type Version
- type VersionSigningCodec
- type VersionSigningCodecImpl
- type VersionSigningService
- type VersionSigningServiceImpl
- type VersionTree
- type VersionUploadDto
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AppStoreOfficialMaintainerPublicKeyOpenSSH = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKlo+3ABMOUtj4JSvbYVnIDhCqrxkiMvleXudu9Lwc87" 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 ¶
type AppAndVersion ¶
type AppNameString ¶
type AppNameString struct {
Value string `json:"value" validate:"default"`
}
type AppStoreClient ¶
type AppStoreClient interface {
Register(maintainer, password, email string, maintainerPublicKeyRaw []byte) 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, creationTimestamp time.Time, content, signature []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 ¶
type AppStoreClientImpl struct {
Parent u.ComponentClient
Validator validation.VersionValidator
}
func (*AppStoreClientImpl) ChangePassword ¶
func (h *AppStoreClientImpl) ChangePassword(oldPassword, newPassword string) error
func (*AppStoreClientImpl) ConfirmEmailChange ¶
func (h *AppStoreClientImpl) ConfirmEmailChange(emailChangeConfirmationCode string) error
func (*AppStoreClientImpl) ConfirmationRegistration ¶
func (h *AppStoreClientImpl) ConfirmationRegistration(registrationCode string) error
func (*AppStoreClientImpl) CreateApp ¶
func (h *AppStoreClientImpl) CreateApp(appName string) error
func (*AppStoreClientImpl) DeleteApp ¶
func (h *AppStoreClientImpl) DeleteApp(appName string) error
func (*AppStoreClientImpl) DeleteOwnAccount ¶
func (h *AppStoreClientImpl) DeleteOwnAccount() error
func (*AppStoreClientImpl) DeleteVersion ¶
func (h *AppStoreClientImpl) DeleteVersion(appName, versionName string) error
func (*AppStoreClientImpl) DownloadVersion ¶
func (h *AppStoreClientImpl) DownloadVersion(userName, appName, versionName string) (*Version, error)
func (*AppStoreClientImpl) GetAccountDetails ¶
func (h *AppStoreClientImpl) GetAccountDetails() (*AccountDetails, error)
func (*AppStoreClientImpl) GetEmailConfig ¶
func (h *AppStoreClientImpl) GetEmailConfig() (*u.EmailConfig, error)
func (*AppStoreClientImpl) ListOwnApps ¶
func (h *AppStoreClientImpl) ListOwnApps() ([]string, error)
func (*AppStoreClientImpl) ListVersions ¶
func (h *AppStoreClientImpl) ListVersions(userName, appName string) ([]LeanVersionDto, error)
func (*AppStoreClientImpl) Login ¶
func (h *AppStoreClientImpl) Login(username, password string) error
func (*AppStoreClientImpl) Logout ¶
func (h *AppStoreClientImpl) Logout() error
func (*AppStoreClientImpl) Register ¶
func (h *AppStoreClientImpl) Register(maintainer, password, email string, maintainerPublicKeyRaw []byte) error
func (*AppStoreClientImpl) RequestEmailChange ¶
func (h *AppStoreClientImpl) RequestEmailChange(email string) error
func (*AppStoreClientImpl) SearchForApps ¶
func (h *AppStoreClientImpl) SearchForApps(maintainerSearchTerm, appSearchTerm string, showUnofficialApps bool) ([]AppWithLatestVersion, error)
func (*AppStoreClientImpl) SetEmailConfig ¶
func (h *AppStoreClientImpl) SetEmailConfig(emailConfig *u.EmailConfig) error
func (*AppStoreClientImpl) UploadVersion ¶
func (*AppStoreClientImpl) WipeData ¶
func (s *AppStoreClientImpl) WipeData()
type AppWithLatestVersion ¶
type ChangePasswordForm ¶
type CreatedVersionResponse ¶
type EmailString ¶
type EmailString struct {
Value string `json:"value" validate:"email"`
}
type LeanVersionDto ¶
type LoginCredentials ¶
type NumberString ¶
type NumberString struct {
Value string `json:"value" validate:"number"`
}
type RegistrationForm ¶
type SearchRequest ¶
type SecretString ¶
type SecretString struct {
Value string `json:"value" validate:"secret"`
}
type UserNameString ¶
type UserNameString struct {
Value string `json:"value" validate:"number"`
}
type VersionSigningCodec ¶
type VersionSigningCodecImpl ¶
type VersionSigningCodecImpl struct{}
func (*VersionSigningCodecImpl) EncodeVersion ¶
func (c *VersionSigningCodecImpl) EncodeVersion(version *Version) ([]byte, error)
type VersionSigningService ¶
type VersionSigningServiceImpl ¶
type VersionSigningServiceImpl struct {
Codec VersionSigningCodec
BytesSigner u.BytesSigner
}
func (*VersionSigningServiceImpl) SignVersion ¶
func (s *VersionSigningServiceImpl) SignVersion(privateKey ed25519.PrivateKey, version *Version) ([]byte, error)
func (*VersionSigningServiceImpl) VerifyVersionSignature ¶
type VersionTree ¶
Click to show internal directories.
Click to hide internal directories.