server

package
v3.7.0-alpha.1+incompa... Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2017 License: Apache-2.0, Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// GroupName I made this up. Maybe we'll need it.
	GroupName = "service-catalog.k8s.io"
)

Variables

This section is empty.

Functions

func NewCommandServer

func NewCommandServer(
	out io.Writer,
) (*cobra.Command, error)

NewCommandServer creates a new cobra command to run our server.

func RunServer

func RunServer(opts *ServiceCatalogServerOptions) 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 {
	StorageTypeString string
	// the runtime configuration of our server
	GenericServerRunOptions *genericserveroptions.ServerRunOptions
	// the admission options
	AdmissionOptions *genericserveroptions.AdmissionOptions
	// the https configuration. certs, etc
	SecureServingOptions *genericserveroptions.SecureServingOptions
	// 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
	// TPROptions are options for serving with TPR as the backing store
	TPROptions *TPROptions
	// DisableAuth disables delegating authentication and authorization for testing scenarios
	DisableAuth bool
	StopCh      <-chan struct{}
	// StandaloneMode if true asserts that we will not depend on a kube-apiserver
	StandaloneMode bool
}

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

func NewServiceCatalogServerOptions() *ServiceCatalogServerOptions

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

func (*ServiceCatalogServerOptions) StorageType

StorageType returns the storage type configured on s, or a non-nil error if s holds an invalid storage type

func (*ServiceCatalogServerOptions) Validate

func (s *ServiceCatalogServerOptions) Validate() error

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

type TPROptions

type TPROptions struct {
	DefaultGlobalNamespace string
	RESTClient             restclient.Interface
	InstallTPRsFunc        func() error
	GlobalNamespace        string
}

TPROptions contains the complete configuration for an API server that communicates with the core Kubernetes API server to use third party resources (TPRs) as a database. It is exported so that integration tests can use it

func NewTPROptions

func NewTPROptions() *TPROptions

NewTPROptions creates a new, empty TPROptions struct

Jump to

Keyboard shortcuts

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