waveappstore

package
v0.12.2-beta.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2025 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	AppNSLocal = "local"
	AppNSDraft = "draft"

	MaxNamespaceLen = 30
	MaxAppNameLen   = 50
)

Variables

This section is empty.

Functions

func DeleteApp

func DeleteApp(appId string) error

func DeleteAppFile

func DeleteAppFile(appId string, fileName string) error

func DraftHasLocalVersion

func DraftHasLocalVersion(draftAppId string) (bool, error)

func GetAppDir

func GetAppDir(appId string) (string, error)

func ListAllAppFiles

func ListAllAppFiles(appId string) (*fileutil.ReadDirResult, error)

func ListAllApps

func ListAllApps() ([]string, error)

func ListAllEditableApps

func ListAllEditableApps() ([]string, error)

func MakeAppId

func MakeAppId(appNS string, appName string) string

func MakeDraftFromLocal

func MakeDraftFromLocal(localAppId string) (string, error)

func ParseAppId

func ParseAppId(appId string) (appNS string, appName string, err error)

func PublishDraft

func PublishDraft(draftAppId string) (string, error)

func RenameAppFile

func RenameAppFile(appId string, fromFileName string, toFileName string) error

func ReplaceInAppFile

func ReplaceInAppFile(appId string, fileName string, edits []fileutil.EditSpec) error

func RevertDraft

func RevertDraft(draftAppId string) error

func ValidateAppId

func ValidateAppId(appId string) error

func WriteAppFile

func WriteAppFile(appId string, fileName string, contents []byte) error

Types

type FileData

type FileData struct {
	Contents []byte
	ModTs    int64
}

func ReadAppFile

func ReadAppFile(appId string, fileName string) (*FileData, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL