Documentation
¶
Index ¶
Constants ¶
View Source
const ( // cmd CmdDeployDesc = "deploy your application into Zerops" CmdPushDesc = "deploy your application into Zerops and build it" CmdLogin = "log you into Zerops" CmdVpn = "vpn commands group" CmdVpnStart = "start vpn" CmdVpnStop = "stop vpn" CmdVpnStatus = "show vpn status" CmdLog = "logs commands" CmdLogShow = "show logs" CmdDaemon = "daemon commands group" CmdDaemonRun = "run daemon" CmdDaemonInstall = "install daemon" CmdDaemonRemove = "remove daemon" CmdVersion = "version" CmdRegion = "region commands group" CmdRegionList = "list available regions" CmdProject = "project commands group" CmdService = "service commands group" CmdProjectStart = "run process to start the project and wait until finished" CmdProjectStop = "run process to stop the project and wait until finished" CmdProjectDelete = "run process to delete the project and wait until finished" CmdProjectImport = "create project in Zerops and add service(s)" CmdServiceImport = "create one or more services for given project" CmdServiceStart = "run process to start the service and wait until finished" CmdServiceStop = "run process to stop the service and wait until finished" CmdServiceDelete = "run process to delete the service and wait until finished" CmdServiceLog = "get service runtime or build log to stdout" //CmdServiceLogFull = "Returns service runtime or build log to stdout with a streaming option. By default, the command returns the last 100 log messages from all service runtime containers and exits. Use --follow flag to continuously pool for new log messages.\n" CmdServiceLogFull = "" /* 154-byte string literal not displayed */ // flags description BuildVersionName = "custom version name" SourceName = "override zerops.yml service name" BuildWorkingDir = "working dir, all files path are relative to this directory" BuildArchiveFilePath = "path (including file name) where the final tar.gz archive file should be saved (if not set, archive won't be saved)" ZeropsYamlLocation = "zerops yaml location relative to working directory" DeployGitFolder = "whether `.git` folder should also be deployed during `zcli push` command" ClientId = "client ID" ConfirmDeleteProject = "confirm to delete the project" ConfirmDeleteService = "confirm to delete the service" LogLimit = "How many of the most recent log messages will be returned. Allowed interval is <1;1000>. Default value = 100." LogMinSeverity = "" /* 215-byte string literal not displayed */ LogMsgType = "Select either APPLICATION or WEBSERVER log messages to be returned. Default value = APPLICATION." LogFollow = "" /* 171-byte string literal not displayed */ LogFormat = "" /* 330-byte string literal not displayed */ LogFormatTemplate = "" /* 258-byte string literal not displayed */ LogMsgTypeInvalid = "Invalid --messageType value. Allowed values are APPLICATION, WEBSERVER." // process ProcessInvalidState = "last command has finished with error, identifier for communication with our support: %s" ProcessInvalidStateProcess = "process finished with error, identifier for communication with our support:" QueuedProcesses = "queued processes: " ProcessStart = "process started" ProcessEnd = "process finished" // archiveClient ArchClientWorkingDirectory = "working directory: %s" ArchClientMaxOneTilde = "only one ~(tilde) is allowed" ArchClientPackingDirectory = "packing directory: %s" ArchClientPackingFile = "packing file: %s" ArchClientFileAlreadyExists = "file [%s] already exists" // login LoginParamsMissing = "either login with password or token must be passed" LoginSuccess = "you are logged in" LoginVpnClosed = "vpn connection was closed" // region RegionNotFound = "region not found" // client ID MultipleClientIds = "you have assigned multiple client IDs, please use the --clientId flag" AvailableClientIds = "your client IDs are: " MissingClientId = "no client ID found four your account" // import YamlCheck = "yaml file check started" ImportYamlOk = "yaml file ok" ImportYamlEmpty = "config file import yaml is empty" ImportYamlTooLarge = "max. size of import yaml is 100 KB" ImportYamlFound = "import yaml found" ImportYamlNotFound = "import yaml not found" ImportYamlCorrupted = "import yaml corrupted" ServiceStackCount = "number of services to be added: " CoreServices = "core services activation started" ReadyToImportServices = "ready to import services" // delete cmd DeleteCanceledByUser = "delete command canceled by user" // project + service ProjectNotFound = "project not found" ProjectIdInvalid = "project ID invalid, value should have 22 characters" ProjectWrongId = "Please, provide correct project ID." ProjectsWithSameName = "found multiple projects with the same name" AvailableProjectIds = "available project IDs are: " ProjectNameOrIdEmpty = "project name or ID must be filled" ProjectDeleteConfirm = "Please confirm that you would like to delete the project (y/n): " ServiceNotFound = "service not found" ServiceNameIsEmpty = "service name must be filled" ServiceDeleteConfirm = "Please confirm that you would like to delete the service (y/n): " ProcessInit = " command initialized" Success = " successfully" ProjectStart = "project start" ProjectStop = "project stop" ProjectDelete = "project delete" ProjectStarted = "project started" ProjectStopped = "project stopped" ProjectDeleted = "project deleted" ProjectCreated = "project created" ServiceStart = "service start" ServiceStop = "service stop" ServiceDelete = "service delete" ServiceStarted = "service started" ServiceStopped = "service stopped" ServiceDeleted = "service deleted" ProjectImported = "project imported" ServiceImported = "service(s) imported" ServiceLogAdditional = "" /* 277-byte string literal not displayed */ LogLimitInvalid = "Invalid --limit value. Allowed interval is <1;1000>" LogMinSeverityInvalid = "Invalid --minimumSeverity value." LogMinSeverityStringLimitErr = "Allowed values are EMERGENCY, ALERT, CRITICAL, ERROR, WARNING, NOTICE, INFORMATIONAL, DEBUG." LogMinSeverityNumLimitErr = "Allowed interval is <0;7>." LogFormatInvalid = "Invalid --format value. Allowed values are FULL, SHORT, JSON, JSONSTREAM." LogFormatTemplateMismatch = "--formatTemplate cannot be used in combination with --format=SHORT, --format=JSON or --format=JSONSTREAM." LogServiceNameInvalid = "Invalid serviceName value. Multiple @ characters are not supported. See -h for help." LogFormatTemplateInvalid = "Invalid --formatTemplate content. The custom template failed with following error:" LogSuffixInvalid = "" /* 194-byte string literal not displayed */ LogRuntimeOnly = "This command can be used on runtime services only." LogNoContainerFound = "No runtime container was found." LogTooFewContainers = "There %s only %d runtime container%s at the moment. Select a lower container index." LogNoBuildFound = "No build was found for this service." LogBuildStatusUploading = "Service status UPLOADING, need to wait for app version data." LogAccessFailed = "Request for access to logs failed" // deploy BuildDeployServiceStatus = "service status: %s" BuildDeployCreatingPackageStart = "creating package" BuildDeployCreatingPackageDone = "package created" BuildDeployPackageSavedInto = "package file saved into: %s" BuildDeployUploadingPackageStart = "uploading package" BuildDeployUploadingPackageDone = "package uploaded" BuildDeployUploadPackageFailed = "package upload failed" BuildDeployDeployingStart = "deploying service" BuildDeployZeropsYamlEmpty = "config file zerops.yml is empty" BuildDeployZeropsYamlTooLarge = "max. size of zerops.yml is 10 KB" BuildDeployZeropsYamlFound = "zerops.yml found" BuildDeployZeropsYamlNotFound = "zerops.yml not found" BuildDeploySuccess = "service deployed" VpnDaemonUnavailable = "Zerops VPN daemon needs to be installed on your machine to handle VPN connections." // vpn start VpnStartInterfaceAssignFailed = "interface name assign failed" VpnStartWireguardInterfaceNotfound = "wireguard interface not found" VpnStartInstallDaemonPrompt = "Do you want to install the VPN daemon? You will be prompted for your root/administrator password to confirm the installation." VpnStartTerminatedByUser = "when you are ready, try `/path/to/zcli daemon install`" VpnStartUserIsUnableToWriteYorN = "type 'y' or 'n' please" VpnStartWireguardUtunError = "we failed to start vpn, there is possibility that you have another vpn, if so, try to shut it down" VpnStartVpnNotReachable = "zerops vpn servers aren't reachable" VpnStartTunnelIsNotAlive = "we failed to establish zerops vpn" VpnStartExpectedProjectName = "expected project name or ID as a positional argument" // vpn status VpnStatusTunnelStatusActive = "wireguard tunnel is working properly" VpnStatusTunnelStatusSetInactive = "wireguard tunnel is established but it isn't working properly, try `/path/to/zcli vpn start` command" VpnStatusTunnelStatusUnset = "wireguard tunnel isn't established, try `/path/to/zcli vpn start` command" VpnStatusDnsStatusActive = "dns is working properly" VpnStatusDnsStatusSetInactive = "dns is set but it isn't working properly, try `/path/to/zcli vpn start` command" VpnStatusDnsStatusUnset = "dns isn't set, try `/path/to/zcli vpn start` command" VpnStatusAdditionalInfo = "additional info:" VpnStatusDnsCheckError = "we failed to check that dns is working correctly" VpnStatusDnsNoCheckFunction = "there is no function for dns check" // vpn stop VpnStopSuccess = "vpn connection was closed" VpnStopAdditionalInfo = "additional info:" VpnStopAdditionalInfoMessage = "dns could be set by yourself, if so it must be removed manually" // daemon DaemonInstallerDesc = "zerops daemon" DaemonElevated = "operation continues in a new window" PathNotFound = "path not found" // daemon install DaemonInstallSuccess = "zerops daemon has been installed" DaemonInstallWireguardNotFound = "wireguard was not found" DaemonInstallWireguardNotFoundDarwin = "wireguard was not found, try `brew install wireguard-tools`" // daemon remove DaemonRemoveSuccess = "zerops daemon has been removed" // generic GrpcApiTimeout = "zerops api didn't respond within assigned time, try it again later" GrpcVpnApiTimeout = "zerops vpn server didn't respond within assigned time, try it again later" HintChangeRegion = "hint: try to change your region (you can list available regions using `zcli region list`)" )
Variables ¶
This section is empty.
Functions ¶
func AddHintChangeRegion ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.