options

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	K8sOption    *options.K8sOption    `json:"k8s"    mapstructure:"k8s"`
	DockerOption *options.DockerOption `json:"docker" mapstructure:"docker"`
	Log          *log.Options          `json:"log"    mapstructure:"log"`
}

Options run a peitho server.

func NewOptions

func NewOptions() *Options

NewOptions creates a new Options object with default parameters.

func (*Options) Complete

func (o *Options) Complete() error

Complete set default Options.

func (*Options) Flags

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

func (*Options) String

func (o *Options) String() string

func (*Options) Validate

func (o *Options) Validate() []error

Validate checks Options 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