app_service

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppsDir

func AppsDir() (dir string, err error)

func Create

func Create(tx *gorm.DB, app models.AppInput) (*models.App, error)

func Delete

func Delete(tx *gorm.DB, app *models.App) error

func Details

func Details(tx *gorm.DB, appName string) (*server_models.AppDetails, error)

func Get

func Get(tx *gorm.DB, appName string) (*models.App, error)

func GetAppID

func GetAppID(tx *gorm.DB, appName string) (string, error)

func List

func List(tx *gorm.DB, showHidden bool) ([]*models.App, error)

func Reload

func Reload(details *server_models.AppDetails, env map[string]string, plugins *server_models.AppPlugins) error

func Start

func Start(tx *gorm.DB, details *server_models.AppDetails, plugins *server_models.AppPlugins) error

func Stop

func Stop(app *models.App) error

func Update

func Update(tx *gorm.DB, newApp *models.App) error

func Upgrade

func Upgrade(
	tx *gorm.DB,
	details *server_models.AppDetails,
	env map[string]string,
	plugins *server_models.AppPlugins,
	newImage string,
) (bool, error)

Upgrade pulls the latest image and reloads the application

func Upsert

func Upsert(tx *gorm.DB, app *models.App) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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