server

package
v0.0.81 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DATA_DIR_CONFIG_PATH = "data_dir"

Variables

View Source
var ErrCliUpgradeRequired = fmt.Errorf(
	`please update your CLI to install latest version.
Run the following command to upgrade:
%s`, cli.UpgradeCmd)
View Source
var ErrOldManifest = fmt.Errorf(
	`you can't install this old manifest with this CLI. Try to use an newer version`,
)
View Source
var ErrUnsupportedManifestVersion = fmt.Errorf(
	`unsupported manifest version. Please update your CLI.
Run the following command to upgrade:
%s`, cli.UpgradeCmd)
View Source
var RootCommand = &cobra.Command{
	Use:   "server",
	Short: "Manage local server installation of Tensorleap",
	Long:  `Manage local server installation of Tensorleap`,
	Run: func(cmd *cobra.Command, args []string) {
		if isNotSupported {
			fmt.Println("This command is not supported on this platform")
			return
		}
		if showInfo {
			dataDir := getConfigureDataDir()
			if dataDir == "" {
				dataDir = local.GetServerDataDir()
			}
			fmt.Println("Installer Version: ", version.Version)
			fmt.Println("Data dir:          ", dataDir)

		} else {
			_ = cmd.Help()
		}
	},
}

Functions

func NewInstallCmd

func NewInstallCmd() *cobra.Command

func NewReinstallCmd added in v0.0.39

func NewReinstallCmd() *cobra.Command

func NewUninstallCmd

func NewUninstallCmd() *cobra.Command

func NewUpgradeCmd

func NewUpgradeCmd() *cobra.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

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