Documentation ¶
Index ¶
- Constants
- func Create(metadata *opapp.Metadata, dir string) (string, error)
- func IndexDirectory(dir, baseURL string) (*opapp.IndexFile, error)
- func IsAppDir(dirName string) (bool, error)
- func Load(name string) (*opapp.OpApp, error)
- func LoadArchive(in io.Reader) (*opapp.OpApp, error)
- func LoadDir(dir string) (*opapp.OpApp, error)
- func LoadFile(name string) (*opapp.OpApp, error)
- func LoadFiles(files []opapp.BufferedFile) (*opapp.OpApp, error)
- func Save(c *opapp.OpApp, outDir string) (string, error)
- func StartLocalRepo(path, address string) error
- type RepositoryServer
Constants ¶
View Source
const ( ApiVersionV1 = "v1" PackageJson = "package.json" ClusterJsonTmpl = "cluster.json.tmpl" ConfigJson = "config.json" )
View Source
const DefaultServeAddr = "127.0.0.1:9191"
Variables ¶
This section is empty.
Functions ¶
func LoadArchive ¶
LoadArchive loads from a reader containing a compressed tar archive.
func LoadFiles ¶
func LoadFiles(files []opapp.BufferedFile) (*opapp.OpApp, error)
LoadFiles loads from in-memory files.
func StartLocalRepo ¶
StartLocalRepo starts a web server and serves files from the given path
Types ¶
type RepositoryServer ¶
type RepositoryServer struct {
RepoPath string
}
RepositoryServer is an HTTP handler for serving a app repository.
func (*RepositoryServer) ServeHTTP ¶
func (s *RepositoryServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements the http.Handler interface.
Click to show internal directories.
Click to hide internal directories.