testserver

package
v1.1.0-alpha.0....-c00828a Latest Latest
Warning

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

Go to latest
Published: May 12, 2017 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNewCustomResourceDefinition

func CreateNewCustomResourceDefinition(customResource *apiextensionsv1alpha1.CustomResource, apiExtensionsClient clientset.Interface, clientPool dynamic.ClientPool) (*dynamic.Client, error)

func DefaultServerConfig

func DefaultServerConfig() (*extensionsapiserver.Config, error)

func FindFreeLocalPort

func FindFreeLocalPort() (int, error)

FindFreeLocalPort returns the number of an available port number on the loopback interface. Useful for determining the port to launch a server on. Error handling required - there is a non-zero chance that the returned port number will be bound by another process after this function returns.

func NewNoxuCustomResourceDefinition

func NewNoxuCustomResourceDefinition() *apiextensionsv1alpha1.CustomResource

func NewNoxuInstance

func NewNoxuInstance(namespace, name string) *unstructured.Unstructured

func StartDefaultServer

func StartDefaultServer() (chan struct{}, clientset.Interface, dynamic.ClientPool, error)

func StartServer

func StartServer(config *extensionsapiserver.Config) (chan struct{}, clientset.Interface, dynamic.ClientPool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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