server

package
v0.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtraOptions added in v0.0.3

type ExtraOptions struct {
	QPS   float64
	Burst int

	BaseURL string
	Token   string
}

func NewExtraOptions added in v0.0.3

func NewExtraOptions() *ExtraOptions

func (*ExtraOptions) AddFlags added in v0.0.3

func (s *ExtraOptions) AddFlags(fs *pflag.FlagSet)

func (*ExtraOptions) ApplyTo added in v0.0.3

func (s *ExtraOptions) ApplyTo(cfg *apiserver.ExtraConfig) error

func (*ExtraOptions) Validate added in v0.0.3

func (s *ExtraOptions) Validate() []error

type OperatorOptions

type OperatorOptions struct {
	MasterURL            string
	KubeconfigPath       string
	QPS                  float64
	Burst                int
	ResyncPeriod         time.Duration
	MaxNumRequeues       int
	NumThreads           int
	RequeueAfterDuration time.Duration
	// contains filtered or unexported fields
}

func NewOperatorOptions

func NewOperatorOptions() *OperatorOptions

func (*OperatorOptions) AddFlags

func (s *OperatorOptions) AddFlags(fs *pflag.FlagSet)

func (*OperatorOptions) AddGoFlags

func (s *OperatorOptions) AddGoFlags(fs *flag.FlagSet)

func (*OperatorOptions) Complete

func (s *OperatorOptions) Complete() error

func (OperatorOptions) Run

func (s OperatorOptions) Run(ctx context.Context) error

func (*OperatorOptions) Validate

func (s *OperatorOptions) Validate() []error

type UIServerOptions

type UIServerOptions struct {
	RecommendedOptions *genericoptions.RecommendedOptions
	ExtraOptions       *ExtraOptions

	StdOut io.Writer
	StdErr io.Writer
}

UIServerOptions contains state for master/api server

func NewUIServerOptions

func NewUIServerOptions(out, errOut io.Writer) *UIServerOptions

NewUIServerOptions returns a new UIServerOptions

func (UIServerOptions) AddFlags

func (o UIServerOptions) AddFlags(fs *pflag.FlagSet)

func (*UIServerOptions) Complete

func (o *UIServerOptions) Complete() error

Complete fills in fields required to have valid data

func (*UIServerOptions) Config

func (o *UIServerOptions) Config() (*apiserver.Config, error)

Config returns config for the api server given UIServerOptions

func (UIServerOptions) RunUIServer

func (o UIServerOptions) RunUIServer(ctx context.Context) error

RunUIServer starts a new GrafanaOperator given UIServerOptions

func (UIServerOptions) Validate

func (o UIServerOptions) Validate(args []string) error

Validate validates UIServerOptions

Jump to

Keyboard shortcuts

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