factory

package
v0.0.0-...-3fc557c Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateApplication

func CreateApplication(language, owner, instanceURL string, data []byte) ([]byte, error)

CreateApplication is a remote procedure call for creating an application in a worker node

func CreateDatabase

func CreateDatabase(language, owner, instanceURL string, data []byte) ([]byte, error)

CreateDatabase is a remote procedure call for creating a database in a worker node

func CreateGithubRepository

func CreateGithubRepository(repoName string) (*types.RepositoryResponse, error)

CreateGithubRepository returns a git clone URL after creating a new repository

func DeleteApplication

func DeleteApplication(name, instanceURL string) (*pb.DeletionResponse, error)

DeleteApplication is a remote procedure call for deleting an application in a worker node

func DeleteDatabase

func DeleteDatabase(name, instanceURL string) (*pb.GenericResponse, error)

DeleteDatabase is a remote procedure call for deleting a database in a worker node

func FetchApplicationLogs

func FetchApplicationLogs(name, tail, instanceURL string) (*pb.LogResponse, error)

FetchApplicationLogs is a remote procedure call for fetching logs of an application in a worker node

func FetchDatabaseServerLogs

func FetchDatabaseServerLogs(language, tail, instanceURL string) (*pb.LogResponse, error)

FetchDatabaseServerLogs is a remote procedure call for fetching logs of a database server in a worker node

func GracefulDown

func GracefulDown(instanceURL string, deleteVol bool, apps []types.ApplicationConfig) (bool, error)

func GracefulUp

func GracefulUp(instanceURL string, apps []types.ApplicationConfig) (bool, error)

GracefulUp starts all stopped application containers in the given worker node, and creates apps whose containers are not present

func NewApplicationFactory

func NewApplicationFactory(bindings pb.ApplicationFactoryServer) *grpc.Server

NewApplicationFactory returns a new GRPC server for creating applications

func NewDatabaseFactory

func NewDatabaseFactory(bindings pb.DatabaseFactoryServer) *grpc.Server

NewDatabaseFactory returns a new GRPC server for creating databases

func RebuildApplication

func RebuildApplication(name, instanceURL string) ([]byte, error)

RebuildApplication is a remote procedure call for rebuilding an application in a worker node

func ReloadDatabaseServer

func ReloadDatabaseServer(language, instanceURL string) (*pb.GenericResponse, error)

ReloadDatabaseServer is a remote procedure call for restarting a database server in a worker node

func UpdateApplication

func UpdateApplication(name, instanceURL string) ([]byte, error)

Types

This section is empty.

Directories

Path Synopsis
protos

Jump to

Keyboard shortcuts

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