cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

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

Types

type Config

type Config struct {
	Piro    piro.Config `yaml:"piro"`
	Service struct {
		WebPort            int      `yaml:"webPort"`
		GRPCPort           int      `yaml:"grpcPort"`
		PromPort           int      `yaml:"prometheusPort,omitempty"`
		PprofPort          int      `yaml:"pprofPort,omitempty"`
		JobSpecRepos       []string `yaml:"jobSpecRepos"`
		SpecUpdateInterval string   `yaml:"specUpdateInterval"`
		WebReadOnly        bool     `yaml:"webReadOnly,omitempty"`
		APIPolicy          struct {
			Enabled bool     `yaml:"enabled"`
			Bundle  string   `yaml:"bundle"`
			Paths   []string `yaml:"paths"`
		} `yaml:"apiPolicy,omitempty"`
	}
	Storage struct {
		LogStore                   string `yaml:"logsPath"`
		JobStore                   string `yaml:"jobsConnectionString"`
		JobStoreMaxConnections     int    `yaml:"jobsMaxConnections"`
		JobStoreMaxIdleConnections int    `yaml:"jobsMaxIdleConnections"`
	} `yaml:"storage"`
	Executor   executor.Config `yaml:"executor"`
	Kubeconfig string          `yaml:"kubeconfig,omitempty"`
	Plugins    plugin.Config
}

Config configures the Bhojpur Piro server

Jump to

Keyboard shortcuts

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