options

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 3 Imported by: 0

Documentation

Overview

Package options contains all the primary arguments for a kubelet.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerRunOptions

type ServerRunOptions struct {
	TLSOptions       *options.TLSOptions
	RunServerOptions *options.RunServerOptions
}

ServerRunOptions runs a lite api server.

func NewServerRunOptions

func NewServerRunOptions() *ServerRunOptions

NewServerRunOptions creates a new ServerRunOptions object with default parameters

func (*ServerRunOptions) ApplyTo

func (s *ServerRunOptions) ApplyTo() (*config.LiteServerConfig, error)

ApplyTo applies the storage options to the method receiver and returns self

func (*ServerRunOptions) Complete

func (s *ServerRunOptions) Complete() error

Complete set default ServerRunOptions. Should be called after flags parsed.

func (*ServerRunOptions) Flags

func (s *ServerRunOptions) Flags() (fsSet cliflag.NamedFlagSets)

Flags returns flag set

func (*ServerRunOptions) Validate

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

Validate checks ServerRunOptions and return a slice of found errs.

Jump to

Keyboard shortcuts

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