Documentation ¶
Index ¶
- func CreateNewCustomResourceDefinition(crd *apiextensionsv1beta1.CustomResourceDefinition, ...) (dynamic.Interface, error)
- func CreateNewCustomResourceDefinitionWatchUnsafe(crd *apiextensionsv1beta1.CustomResourceDefinition, ...) (dynamic.Interface, error)
- func DefaultServerConfig() (*extensionsapiserver.Config, error)
- func DeleteCustomResourceDefinition(crd *apiextensionsv1beta1.CustomResourceDefinition, ...) error
- func FindFreeLocalPort() (int, error)
- func GetCustomResourceDefinition(crd *apiextensionsv1beta1.CustomResourceDefinition, ...) (*apiextensionsv1beta1.CustomResourceDefinition, error)
- func NewCurletCustomResourceDefinition(scope apiextensionsv1beta1.ResourceScope) *apiextensionsv1beta1.CustomResourceDefinition
- func NewCurletInstance(namespace, name string) *unstructured.Unstructured
- func NewNoxu2CustomResourceDefinition(scope apiextensionsv1beta1.ResourceScope) *apiextensionsv1beta1.CustomResourceDefinition
- func NewNoxuCustomResourceDefinition(scope apiextensionsv1beta1.ResourceScope) *apiextensionsv1beta1.CustomResourceDefinition
- func NewNoxuInstance(namespace, name string) *unstructured.Unstructured
- func NewRandomNameCustomResourceDefinition(scope apiextensionsv1beta1.ResourceScope) *apiextensionsv1beta1.CustomResourceDefinition
- func StartDefaultServer() (chan struct{}, clientset.Interface, dynamic.ClientPool, error)
- func StartServer(config *extensionsapiserver.Config) (chan struct{}, clientset.Interface, dynamic.ClientPool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNewCustomResourceDefinition ¶
func CreateNewCustomResourceDefinition(crd *apiextensionsv1beta1.CustomResourceDefinition, apiExtensionsClient clientset.Interface, clientPool dynamic.ClientPool) (dynamic.Interface, error)
func CreateNewCustomResourceDefinitionWatchUnsafe ¶
func CreateNewCustomResourceDefinitionWatchUnsafe(crd *apiextensionsv1beta1.CustomResourceDefinition, apiExtensionsClient clientset.Interface, clientPool dynamic.ClientPool) (dynamic.Interface, error)
CreateNewCustomResourceDefinitionWatchUnsafe creates the CRD and makes sure the apiextension apiserver has installed the CRD. But it's not safe to watch the created CR. Please call CreateNewCustomResourceDefinition if you need to watch the CR.
func DefaultServerConfig ¶
func DefaultServerConfig() (*extensionsapiserver.Config, error)
func DeleteCustomResourceDefinition ¶
func DeleteCustomResourceDefinition(crd *apiextensionsv1beta1.CustomResourceDefinition, apiExtensionsClient clientset.Interface) error
func FindFreeLocalPort ¶
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 GetCustomResourceDefinition ¶
func GetCustomResourceDefinition(crd *apiextensionsv1beta1.CustomResourceDefinition, apiExtensionsClient clientset.Interface) (*apiextensionsv1beta1.CustomResourceDefinition, error)
func NewCurletCustomResourceDefinition ¶
func NewCurletCustomResourceDefinition(scope apiextensionsv1beta1.ResourceScope) *apiextensionsv1beta1.CustomResourceDefinition
func NewCurletInstance ¶
func NewCurletInstance(namespace, name string) *unstructured.Unstructured
func NewNoxu2CustomResourceDefinition ¶
func NewNoxu2CustomResourceDefinition(scope apiextensionsv1beta1.ResourceScope) *apiextensionsv1beta1.CustomResourceDefinition
func NewNoxuCustomResourceDefinition ¶
func NewNoxuCustomResourceDefinition(scope apiextensionsv1beta1.ResourceScope) *apiextensionsv1beta1.CustomResourceDefinition
func NewNoxuInstance ¶
func NewNoxuInstance(namespace, name string) *unstructured.Unstructured
func NewRandomNameCustomResourceDefinition ¶
func NewRandomNameCustomResourceDefinition(scope apiextensionsv1beta1.ResourceScope) *apiextensionsv1beta1.CustomResourceDefinition
NewRandomNameCustomResourceDefinition generates a CRD with random name to avoid name conflict in e2e tests
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.