Discover Packages
github.com/rajatjindal/fermyon-cloud-preview
pkg
cloud
package
Version:
v0.0.7
Opens a new window with list of versions in this module.
Published: Feb 9, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
const (
ProductionCloudLink = "https://cloud.fermyon.com"
TokenBaseDir = "/home/runner/.config/fermyon"
)
type App struct {
ID string `json:"id"`
Name string `json:"name"`
StorageID string `json:"storageId"`
Description string `json:"description"`
Channels []Channel `json:"channels"`
}
type Channel struct {
ID string `json:"id"`
Name string `json:"name"`
ActiveRevisionNumber string `json:"activeRevisionNumber"`
Domain string `json:"domain"`
Created time .Time `json:"created"`
}
type GetAppsResponse struct {
Apps []App `json:"items"`
TotalItems int `json:"totalItems"`
PageIndex int `json:"pageIndex"`
PageSize int `json:"pageSize"`
IsLastPage bool `json:"isLastPage"`
}
type Metadata struct {
RawLogs string `json:"rawLogs"`
AppName string `json:"appName"`
Base string `json:"base"`
AppRoutes []Route `json:"appRoutes,omitempty"`
Version string `json:"version"`
}
fetches app url from deploy logs
type Route struct {
Name string `json:"name"`
RouteURL string `json:"routeURL"`
Wildcard bool `json:"wildcard"`
}
type SpinToml struct {
Name string
}
type TokenInfo struct {
Token string `json:"token"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.