waveappstore

package
v0.12.2-beta.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

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