cmd

package
v0.0.0-...-6cdb919 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 167 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(ctx context.Context, flags *Flags, coreConfig *config.Config)

func InitAdmissionWebhook

func InitAdmissionWebhook(config admissionconfig.Admission)

func InitLog

func InitLog(flags *Flags)

func LoadConfig

func LoadConfig(flags *Flags) (*config.Config, error)

func Run

func Run(flags *Flags)

Run runs the agent.

Types

type Flags

type Flags struct {
	ConfigFile          string
	RoleConfigFile      string
	ScopeRoleFile       string
	BuildJSONSchemaFile string
	BuildUISchemaFile   string
	Dev                 bool
	Environment         string
	LogLevel            string
}

Flags defines agent CLI flags.

func ParseFlags

func ParseFlags() *Flags

ParseFlags parses agent CLI flags.

type RegisterRouter

type RegisterRouter interface {
	RegisterRoute(engine *gin.Engine)
}

Jump to

Keyboard shortcuts

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