Documentation
¶
Index ¶
- func CreateApplication(language, owner, instanceURL string, data []byte) ([]byte, error)
- func CreateDatabase(language, owner, instanceURL string, data []byte) ([]byte, error)
- func CreateGithubRepository(repoName string) (*types.RepositoryResponse, error)
- func DeleteApplication(name, instanceURL string) (*pb.DeletionResponse, error)
- func DeleteDatabase(name, instanceURL string) (*pb.GenericResponse, error)
- func FetchApplicationLogs(name, tail, instanceURL string) (*pb.LogResponse, error)
- func FetchDatabaseServerLogs(language, tail, instanceURL string) (*pb.LogResponse, error)
- func GracefulDown(instanceURL string, deleteVol bool, apps []types.ApplicationConfig) (bool, error)
- func GracefulUp(instanceURL string, apps []types.ApplicationConfig) (bool, error)
- func NewApplicationFactory(bindings pb.ApplicationFactoryServer) *grpc.Server
- func NewDatabaseFactory(bindings pb.DatabaseFactoryServer) *grpc.Server
- func RebuildApplication(name, instanceURL string) ([]byte, error)
- func ReloadDatabaseServer(language, instanceURL string) (*pb.GenericResponse, error)
- func UpdateApplication(name, instanceURL string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateApplication ¶
CreateApplication is a remote procedure call for creating an application in a worker node
func CreateDatabase ¶
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 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 ¶
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 ¶
Types ¶
This section is empty.