Documentation
¶
Index ¶
- Constants
- func BuildAppSecretEnv(appId string, manifest *wshrpc.AppManifest, bindings map[string]string) (map[string]string, error)
- func DeleteApp(appId string) error
- func DeleteAppFile(appId string, fileName string) error
- func DraftHasLocalVersion(draftAppId string) (bool, error)
- func FormatGoFile(appId string, fileName string) error
- func GetAppDir(appId string) (string, error)
- func GetAppModTime(appId string) (int64, error)
- func ListAllAppFiles(appId string) (*fileutil.ReadDirResult, error)
- func ListAllApps() ([]wshrpc.AppInfo, error)
- func ListAllEditableApps() ([]wshrpc.AppInfo, error)
- func MakeAppId(appNS string, appName string) string
- func MakeDraftFromLocal(localAppId string) (string, error)
- func ParseAppId(appId string) (appNS string, appName string, err error)
- func PublishDraft(draftAppId string) (string, error)
- func ReadAppManifest(appId string) (*wshrpc.AppManifest, error)
- func ReadAppSecretBindings(appId string) (map[string]string, error)
- func RenameAppFile(appId string, fromFileName string, toFileName string) error
- func RenameLocalApp(appName string, newAppName string) error
- func ReplaceInAppFile(appId string, fileName string, edits []fileutil.EditSpec) error
- func ReplaceInAppFilePartial(appId string, fileName string, edits []fileutil.EditSpec) ([]fileutil.EditResult, error)
- func RevertDraft(draftAppId string) error
- func ValidateAppId(appId string) error
- func WriteAppFile(appId string, fileName string, contents []byte) error
- func WriteAppSecretBindings(appId string, bindings map[string]string) error
- type FileData
Constants ¶
View Source
const ( AppNSLocal = "local" AppNSDraft = "draft" MaxNamespaceLen = 30 MaxAppNameLen = 50 ManifestFileName = "manifest.json" SecretBindingsFileName = "secret-bindings.json" )
Variables ¶
This section is empty.
Functions ¶
func BuildAppSecretEnv ¶
func DeleteAppFile ¶
func DraftHasLocalVersion ¶
func FormatGoFile ¶
func GetAppModTime ¶
func ListAllAppFiles ¶
func ListAllAppFiles(appId string) (*fileutil.ReadDirResult, error)
func ListAllApps ¶
func ListAllEditableApps ¶
func MakeDraftFromLocal ¶
func PublishDraft ¶
func ReadAppManifest ¶
func ReadAppManifest(appId string) (*wshrpc.AppManifest, error)
func RenameLocalApp ¶
RenameLocalApp renames a local app by renaming its directories in both the local and draft namespaces. It takes the current app name and the new app name (without namespace prefixes). Both local/[appName] and draft/[appName] will be renamed if they exist. Returns an error if the app doesn't exist in either namespace, if the new name is invalid, or if the new name conflicts with an existing app.
func ReplaceInAppFile ¶
func ReplaceInAppFilePartial ¶
func RevertDraft ¶
func ValidateAppId ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.