process

package
v0.0.0-...-9632032 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: Apache-2.0 Imports: 22 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByNamespaceAndNameIndexKey

func ByNamespaceAndNameIndexKey(namespace, name string) string

func StartStopServer

func StartStopServer(ctx context.Context, srv *http.Server, shutdownTimeout time.Duration) error

func StartStopTLSServer

func StartStopTLSServer(ctx context.Context, srv *http.Server, shutdownTimeout time.Duration, certFile, keyFile string) error

Types

type Generic

type Generic struct {
	Controllers map[schema.GroupVersionKind]Holder
	Servers     map[schema.GroupVersionKind]ServerHolder
	Informers   map[schema.GroupVersionKind]cache.SharedIndexInformer
	// contains filtered or unexported fields
}

func NewGeneric

func NewGeneric(config *ctrl.Config, queue workqueue.RateLimitingInterface, workers uint, constructors ...ctrl.Constructor) (*Generic, error)

func (*Generic) IsReady

func (g *Generic) IsReady() bool

func (*Generic) Run

func (g *Generic) Run(ctx context.Context) error

type Holder

type Holder struct {
	AppName      string
	Cntrlr       ctrl.Interface
	ReadyForWork <-chan struct{}
	// contains filtered or unexported fields
}

type ServerHolder

type ServerHolder struct {
	AppName      string
	Server       ctrl.Server
	ReadyForWork <-chan struct{}
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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