options

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerOptions

type ServerOptions struct {
	ConfFile string
}

ServerOptions runs a api server.

func NewServerOptions

func NewServerOptions() *ServerOptions

NewServerOptions creates a new ServerOptions object with default parameters

func (*ServerOptions) Complete

func (o *ServerOptions) Complete() error

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

func (*ServerOptions) Flags

func (o *ServerOptions) Flags() (fss cliflag.NamedFlagSets)

Flags returns flags for a specific APIServer by section name

func (*ServerOptions) ValidateOptions

func (o *ServerOptions) ValidateOptions() error

ValidateOptions validates ServerOptions

Jump to

Keyboard shortcuts

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