manager

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TmpDir = "./tmp"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend added in v0.6.3

type Backend interface {
	Create(name string, env string, threads int, filedir string, envs map[string]string) (Handler, error)
	Stop() error
}

type Handler

type Handler interface {
	IPs() []string
	Start() error
	Destroy() error
	Logs() (io.Reader, error)
}

type ManagementService

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

func New

func New(id string, rproxyListenAddress string, rproxyPort map[string]int, rproxyConfigPort int, tfBackend Backend) *ManagementService

func (*ManagementService) Delete

func (ms *ManagementService) Delete(name string) error

func (*ManagementService) List added in v0.6.3

func (ms *ManagementService) List() []string

func (*ManagementService) Logs

func (ms *ManagementService) Logs() (io.Reader, error)

func (*ManagementService) LogsFunction

func (ms *ManagementService) LogsFunction(name string) (io.Reader, error)

func (*ManagementService) Stop added in v0.6.3

func (ms *ManagementService) Stop() error

func (*ManagementService) Upload

func (ms *ManagementService) Upload(name string, env string, threads int, zipped string, envs map[string]string) (string, error)

func (*ManagementService) UrlUpload

func (ms *ManagementService) UrlUpload(name string, env string, threads int, funcurl string, subfolder string, envs map[string]string) (string, error)

func (*ManagementService) Wipe

func (ms *ManagementService) Wipe() error

Jump to

Keyboard shortcuts

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