Documentation
¶
Index ¶
- Variables
- type AppAndTag
- type HubClient
- func (h *HubClient) ChangePassword() error
- func (h *HubClient) CheckAuth() error
- func (h *HubClient) CreateApp() error
- func (h *HubClient) DeleteApp() error
- func (h *HubClient) DeleteTag() error
- func (h *HubClient) DeleteUser() error
- func (h *HubClient) DownloadTag() (string, error)
- func (h *HubClient) FindApps(searchTerm string) ([]UserAndApp, error)
- func (h *HubClient) GetApps() ([]string, error)
- func (h *HubClient) GetTags() ([]string, error)
- func (h *HubClient) Login() error
- func (h *HubClient) Logout() error
- func (h *HubClient) RegisterUser() error
- func (h *HubClient) UploadTag() error
- func (h *HubClient) WipeData() error
- type LoginCredentials
- type RegistrationForm
- type TagInfo
- type TagUpload
- type UserAndApp
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Port = "8082" RootUrl = "http://localhost:" + Port RegistrationPath = "/registration" LoginPath = "/login" LogoutPath = "/logout" AuthCheckPath = "/auth-check" WipeDataPath = "/wipe-data" UserPath = "/user" DeleteUserPath = UserPath + "/delete" ChangePasswordPath = UserPath + "/password" TagPath = "/tags" TagUploadPath = TagPath + "/upload" TagDeletePath = TagPath + "/delete" GetTagsPath = TagPath + "/get-tags" DownloadPath = TagPath + "/" // TODO maybe add "download" to make it clearer? AppPath = "/apps" AppCreationPath = AppPath + "/create" AppGetListPath = AppPath + "/get-list" AppDeletePath = AppPath + "/delete" SearchAppsPath = AppPath + "/search" )
View Source
var ( SampleUser = "myuser" SampleApp = "myapp" SampleTag = "v0.0.1" SampleTagFileContent = "hello" SampleEmail = "testuser@example.com" SamplePassword = "mypassword" SampleOrigin = RootUrl SampleForm = &RegistrationForm{ SampleUser, SamplePassword, SampleEmail, } )
Functions ¶
This section is empty.
Types ¶
type HubClient ¶
type HubClient struct {
Parent utils.ComponentClient
Email string
App string
Tag string
UploadContent []byte
}
func (*HubClient) ChangePassword ¶ added in v0.0.27
func (*HubClient) DeleteUser ¶ added in v0.0.27
func (*HubClient) DownloadTag ¶ added in v0.0.27
func (*HubClient) FindApps ¶ added in v0.0.27
func (h *HubClient) FindApps(searchTerm string) ([]UserAndApp, error)
func (*HubClient) RegisterUser ¶ added in v0.0.27
type LoginCredentials ¶
type RegistrationForm ¶
type RegistrationForm struct {
User string `json:"user"`
Password string `json:"password"`
Email string `json:"email"`
}
func GetRegistrationForm ¶ added in v0.0.27
func GetRegistrationForm(hub *HubClient) *RegistrationForm
type UserAndApp ¶
Click to show internal directories.
Click to hide internal directories.