models

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2017 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDockerfile

func CreateDockerfile(dock Dockerfile, app Application) error

CreateDockerfile : create dockerfile

func DeleteApplication

func DeleteApplication(w *os.File, name string) (bool, error)

DeleteApplication : Deletes existing Application

func DeployApplication

func DeployApplication(w *os.File, name string)

DeployApplication : Deploys the application

func InitBuildpacks

func InitBuildpacks()

InitBuildpacks : Initializes the database for buildpacks

func InitDB

func InitDB()

InitDB : Initialize the database connection

func LogApplication

func LogApplication(w *os.File, name string, tail bool)

LogApplication : show the log oft the application

func StartApplication

func StartApplication(w *os.File, name string) error

StartApplication : starts the application

func StopApplication

func StopApplication(w *os.File, name string) error

StopApplication : Stops the container of a application

Types

type Application

type Application struct {
	Name       string `json:"name"`
	Running    bool   `json:"running"`
	Path       string `json:"path"`
	Repository string `json:"repo"`
	Type       string `json:"type"`
}

Application : stores information about the applications

func CreateApplication

func CreateApplication(w *os.File, name string) (Application, error)

CreateApplication : Creates a new Application

func GetApplication

func GetApplication(name string) (Application, error)

GetApplication : Get specific application

func GetApplications

func GetApplications() ([]Application, error)

GetApplications : Get a list of all applications

type Buildpack

type Buildpack struct {
	Name string
}

Buildpack : stores the different buildpacks

type Dockerfile

type Dockerfile struct {
	BuildName string
	Command   []string
	Length    int
	Port      string
	Type      string
}

Dockerfile : stores the template value

Jump to

Keyboard shortcuts

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