server

package
v0.1.42 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2019 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultEtcdPathPrefix is the default prefix that is prepended to all
	// resource paths in etcd.  It is intended to allow an operator to
	// differentiate the storage of different API servers from one another in
	// a single etcd.
	DefaultEtcdPathPrefix = "/registry"
)

Variables

This section is empty.

Functions

func RunServer

func RunServer(opts *ServiceCatalogServerOptions, stopCh <-chan struct{}) error

RunServer runs an API server with configuration according to opts

Types

type EtcdOptions

type EtcdOptions struct {
	// storage with etcd
	*genericserveroptions.EtcdOptions
}

EtcdOptions contains the complete configuration for an API server that communicates with an etcd. This struct is exported so that it can be used by integration tests

func NewEtcdOptions

func NewEtcdOptions() *EtcdOptions

NewEtcdOptions creates a new, empty, EtcdOptions instance

type ServiceCatalogServerOptions

type ServiceCatalogServerOptions struct {
	// the runtime configuration of our server
	GenericServerRunOptions *genericserveroptions.ServerRunOptions
	// the admission options
	AdmissionOptions *genericserveroptions.AdmissionOptions
	// the https configuration. certs, etc
	SecureServingOptions *genericserveroptions.SecureServingOptionsWithLoopback
	// authn for the API
	AuthenticationOptions *genericserveroptions.DelegatingAuthenticationOptions
	// authz for the API
	AuthorizationOptions *genericserveroptions.DelegatingAuthorizationOptions
	// audit options for api server
	AuditOptions *genericserveroptions.AuditOptions
	// EtcdOptions are options for serving with etcd as the backing store
	EtcdOptions *EtcdOptions
	// DisableAuth disables delegating authentication and authorization for testing scenarios
	DisableAuth bool
	// StandaloneMode if true asserts that we will not depend on a kube-apiserver
	StandaloneMode bool
	// whether or not to serve the OpenAPI spec (at /swagger.json)
	ServeOpenAPISpec bool
	// KubeconfigPath, if specified, is used over the in-cluster service account token.
	KubeconfigPath string
}

ServiceCatalogServerOptions contains the aggregation of configuration structs for the service-catalog server. It contains everything needed to configure a basic API server. It is public so that integration tests can access it.

func NewServiceCatalogServerOptions added in v0.0.16

func NewServiceCatalogServerOptions() *ServiceCatalogServerOptions

NewServiceCatalogServerOptions creates a new instances of ServiceCatalogServerOptions with all sub-options filled in.

func (*ServiceCatalogServerOptions) AddFlags added in v0.1.0

func (s *ServiceCatalogServerOptions) AddFlags(flags *pflag.FlagSet)

AddFlags adds to the flag set the flags to configure the API Server.

func (*ServiceCatalogServerOptions) Validate added in v0.0.16

func (s *ServiceCatalogServerOptions) Validate() error

Validate checks all subOptions flags have been set and that they have not been set in a conflictory manner.

Jump to

Keyboard shortcuts

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