Documentation ¶
Index ¶
- Variables
- func CommandE(ctx context.Context) func(cmd *cobra.Command, args []string) error
- func New(ctx context.Context) *cobra.Command
- func NewAppInfo(ctx context.Context, opt *ServerRunOptions) error
- func NewAppInfoConfig(v *viper.Viper) *appinfo.Config
- func NewConfig(ctx context.Context, opt *ServerRunOptions) (*provider.Provider, error)
- func NewProviderConfig(v *viper.Viper) *provider.Config
- func NewSecrets(ctx context.Context, config *provider.Provider) (*secrets.Keeper, func(), error)
- func NewWebServer(ctx context.Context, opt *ServerRunOptions) (*webserver.WebServer, func(), error)
- func NewWebServerConfig(v *viper.Viper) *webserver.Config
- type CompletedServerRunOptions
- type ServerRunOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var NewServerRunOptionsSet = wire.NewSet(wire.Struct(new(ServerRunOptions), "Provider", "WebServerOptions", "AppInfo"), viper.GetViper, NewProviderConfig, NewWebServerConfig, NewAppInfoConfig)
Functions ¶
func NewAppInfo ¶ added in v0.0.59
func NewAppInfo(ctx context.Context, opt *ServerRunOptions) error
NewAppInfo is a Wire injector function that sets up the server using config file.
func NewConfig ¶ added in v0.0.59
NewConfig is a Wire injector function that sets up the server using config file.
func NewSecrets ¶ added in v0.0.59
NewSecrets is a Wire injector function that sets up the server using config file.
func NewWebServer ¶ added in v0.0.59
NewWebServer is a Wire injector function that sets up the server using WebServer(grpc+http).
Types ¶
type CompletedServerRunOptions ¶
type CompletedServerRunOptions struct {
// contains filtered or unexported fields
}
CompletedServerRunOptions is a private wrapper that enforces a call of Complete() before Run can be invoked.
type ServerRunOptions ¶
type ServerRunOptions struct { Provider *provider.Config // GRPC+HTTP WebServerOptions *webserver.Config AppInfo *appinfo.Config Logs *logs.Config }
ServerRunOptions runs a kubernetes api server.
func NewServerRunOptions ¶
func NewServerRunOptions() (*ServerRunOptions, error)
func (*ServerRunOptions) Complete ¶ added in v0.0.7
func (s *ServerRunOptions) Complete() (CompletedServerRunOptions, error)
Complete set default ServerRunOptions.
func (*ServerRunOptions) Validate ¶
func (s *ServerRunOptions) Validate(validate *validator.Validate) []error
Validate checks ServerRunOptions and return a slice of found errs.
Click to show internal directories.
Click to hide internal directories.