commands

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2023 License: MIT Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PathList []string

Functions

func AddUser

func AddUser(c *cli.Context) error

AddUser is used to add a new user to the security database of the running server.

func DeleteUser

func DeleteUser(c *cli.Context) error

AddUser is used to add a new user to the security database of the running server.

func FlushServerCaches

func FlushServerCaches(c *cli.Context) error

FlushServerCaches is the administrative command that directs the server to discard any cached compilation units for service code. Subsequent service requests require that the service code be reloaded from disk. This is often used when making changes to a service, to quickly force the server to pick up the changes. You must be an admin user with a valid token to perform this command.

func HeartbeatHandler

func HeartbeatHandler(w http.ResponseWriter, r *http.Request)

HeartbeatHandler receives the /admin/heartbeat calls. This does nothing but respond with success. The event is not logged.

func ListServerCaches

func ListServerCaches(c *cli.Context) error

ListServerCahces is the administrative command that displays the information about the server's cache of previously-compiled service programs. The current and maximum size of the cache, and the endpoints that are cached are listed. You must be an admin user with a valid token to perform this command.

func ListUsers

func ListUsers(c *cli.Context) error

func Logging

func Logging(c *cli.Context) error

func PathAction

func PathAction(c *cli.Context) error

PathAction is the command handler for the ego PATH command.

func ReadDirectory

func ReadDirectory(name string) (string, error)

ReadDirectory reads all the files in a directory into a single string.

func ReadFile

func ReadFile(name string) (string, error)

ReadFile reads the text from a file into a string.

func ResolveServerName

func ResolveServerName(name string) (string, error)

Resolve a name that may not be fully qualified, and make it the default application host name. This is used by commands that allow a host name specification as part of the command (login, or server logging, etc.).

func Restart

func Restart(c *cli.Context) error

Restart stops and then starts a server, using the information from the previous start that was stored in the pidfile.

func RunAction

func RunAction(c *cli.Context) error

RunAction is the command handler for the ego CLI.

func RunServer

func RunServer(c *cli.Context) error

RunServer initializes and runs the REST server, which starts listenting for new connections. This will never terminate until the process is killed.

func SetCacheSize

func SetCacheSize(c *cli.Context) error

SetCacheSize is the administrative command that sets the server's cache size for storing previously-compiled service handlers. If you specify a smaller number that the current cache size, the next attempt to load a new service into the cache will result in discarding the oldest cache entries until the cache is the correct size. You must be an admin user with a valid token to perform this command.

func Start

func Start(c *cli.Context) error

Detach starts the sever as a detached process.

func Status

func Status(c *cli.Context) error

Status displays the status of a running server if it exists.

func Stop

func Stop(c *cli.Context) error

Stop stops a running server if it exists.

func TableContents

func TableContents(c *cli.Context) error

func TableCreate

func TableCreate(c *cli.Context) error

func TableDelete

func TableDelete(c *cli.Context) error

func TableDrop

func TableDrop(c *cli.Context) error

func TableGrant

func TableGrant(c *cli.Context) error

func TableInsert

func TableInsert(c *cli.Context) error

func TableList

func TableList(c *cli.Context) error

func TablePermissions

func TablePermissions(c *cli.Context) error

func TableSQL

func TableSQL(c *cli.Context) error

TableSQL executes arbitrary SQL against the server.

func TableShow

func TableShow(c *cli.Context) error

func TableShowPermission

func TableShowPermission(c *cli.Context) error

func TableUpdate

func TableUpdate(c *cli.Context) error

func TestAction

func TestAction(c *cli.Context) error

TestAction is the command handler for the ego TEST command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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