server

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2017 License: Apache-2.0 Imports: 22 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 https configuration. certs, etc
	SecureServingOptions *genericserveroptions.SecureServingOptions
	// authn for the API
	AuthenticationOptions *genericserveroptions.DelegatingAuthenticationOptions
	// authz for the API
	AuthorizationOptions *genericserveroptions.DelegatingAuthorizationOptions
	// InsecureOptions are options for serving insecurely.
	InsecureServingOptions *genericserveroptions.ServingOptions
	// 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
	StopCh     <-chan struct{}
}

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 (*ServiceCatalogServerOptions) StorageType

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

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