core

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const APPS_DIRNAME = "goapps"

Variables

This section is empty.

Functions

This section is empty.

Types

type GoApp

type GoApp struct {
	sync.Mutex
	Name   string
	GitURL string
	Status string
	AppDir string
	// contains filtered or unexported fields
}

func (*GoApp) MarshalJSON

func (a *GoApp) MarshalJSON() ([]byte, error)

func (*GoApp) Pull

func (a *GoApp) Pull()

func (*GoApp) Purge

func (a *GoApp) Purge() error

func (*GoApp) Reattach

func (a *GoApp) Reattach() error

func (*GoApp) Rebuild

func (a *GoApp) Rebuild() error

func (*GoApp) ServeHTTP

func (a *GoApp) ServeHTTP(rw http.ResponseWriter, req *http.Request)

func (*GoApp) Start

func (a *GoApp) Start() error

func (*GoApp) StderrTo

func (a *GoApp) StderrTo(c chan<- string)

func (*GoApp) StdoutTo

func (a *GoApp) StdoutTo(c chan<- string)

func (*GoApp) Stop

func (a *GoApp) Stop() (retErr error)

func (*GoApp) UnsubscribeStderr

func (a *GoApp) UnsubscribeStderr(c chan<- string)

func (*GoApp) UnsubscribeStdout

func (a *GoApp) UnsubscribeStdout(c chan<- string)

type GoRunner

type GoRunner struct {
	// contains filtered or unexported fields
}

func NewGoRunner

func NewGoRunner(wd string) *GoRunner

func (*GoRunner) DeleteApp

func (r *GoRunner) DeleteApp(appName string)

func (*GoRunner) GetApp

func (r *GoRunner) GetApp(appName string) (*GoApp, error)

func (*GoRunner) ListApps

func (r *GoRunner) ListApps() []*GoApp

func (*GoRunner) NewApp

func (r *GoRunner) NewApp(appName, gitUrl string) (*GoApp, error)

func (*GoRunner) Rehydrate

func (r *GoRunner) Rehydrate() error

Rehydrate brings up all the apps already in the app dir

func (*GoRunner) StartApp

func (r *GoRunner) StartApp(appName string) error

func (*GoRunner) Stop

func (r *GoRunner) Stop(c context.Context) error

func (*GoRunner) StopApp

func (r *GoRunner) StopApp(appName string) error

Jump to

Keyboard shortcuts

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