options

package
v0.0.0-...-ec76f1a Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 5 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 {
	ServerRunOptions *genericoptions.ServerRunOptions `json:"server"   mapstructure:"server"`
	//GRPCOptions             *genericoptions.GRPCOptions            `json:"grpc"     mapstructure:"grpc"`
	MySQLOptions *genericoptions.MySQLOptions `json:"mysql"    mapstructure:"mysql"`
	//RedisOptions            *genericoptions.RedisOptions           `json:"redis"    mapstructure:"redis"`
	//JwtOptions              *genericoptions.JwtOptions             `json:"jwt"      mapstructure:"jwt"`
	Log            *log.Options                   `json:"log"      mapstructure:"log"`
	FeatureOptions *genericoptions.FeatureOptions `json:"feature"  mapstructure:"feature"`
}

Options runs an iam api server.

func NewOptions

func NewOptions() *Options

NewOptions creates a new Options object with default parameters.

func (*Options) ApplyTo

func (o *Options) ApplyTo(c *server.Config) error

ApplyTo applies the run options to the method receiver and returns self.

func (*Options) Complete

func (o *Options) Complete() error

Complete set default Options.

func (*Options) Flags

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

Flags returns flags for a specific APIServer by section name.

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