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 ¶
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"` }
type DataCatalog ¶
type DataCatalog struct {
Disabled bool `json:"disabled" pflag:",Disables datacatalog in the single binary mode"`
}
Click to show internal directories.
Click to hide internal directories.