single

package
v0.0.0-...-5aa0590 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultConfig = &Config{}
)
View Source
var RootCmd = &cobra.Command{
	Use:   "nebula",
	Short: "Nebula cluster",
	Long: `
Use the start subcommand which will start the Nebula cluster

    nebula start --config  nebula_config.yaml
`,
	PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
		return initConfig(cmd.Flags())
	},
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute() error

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetConsoleFile

func GetConsoleFile(name string) string

GetConsoleFile returns the console file that should be used for the given path. For every file add a "dist" as the prefix, as every file is assumed to be packaged in "dist" folder fv

func GetConsoleHandlers

func GetConsoleHandlers() map[string]func(http.ResponseWriter, *http.Request)

GetConsoleHandlers returns a set of handlers that can be added to the Server mux and can handle all console related requests

Types

type Admin

type Admin struct {
	Disabled                      bool     `json:"disabled" pflag:",Disables nebulaadmin in the single binary mode"`
	DisableScheduler              bool     `json:"disableScheduler" pflag:",Disables Native scheduler in the single binary mode"`
	DisableClusterResourceManager bool     `json:"disableClusterResourceManager" pflag:",Disables Cluster resource manager"`
	SeedProjects                  []string `json:"seedProjects" pflag:",nebula projects to create by default."`
}

type Config

type Config struct {
	Propeller   Propeller   `json:"propeller" pflag:",Configuration to disable propeller or any of its components."`
	Admin       Admin       `json:"admin" pflag:",Configuration to disable NebulaAdmin or any of its components"`
	DataCatalog DataCatalog `json:"dataCatalog" pflag:",Configuration to disable DataCatalog or any of its components"`
}

func GetConfig

func GetConfig() *Config

GetConfig returns a handle to the configuration for Nebula Single Binary

type DataCatalog

type DataCatalog struct {
	Disabled bool `json:"disabled" pflag:",Disables datacatalog in the single binary mode"`
}

type Propeller

type Propeller struct {
	Disabled       bool `json:"disabled" pflag:",Disables nebulapropeller in the single binary mode"`
	DisableWebhook bool `json:"disableWebhook" pflag:",Disables webhook only"`
}

Jump to

Keyboard shortcuts

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