testing

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetNetworkInterfaceIP

func SetNetworkInterfaceIP(kind string, source client.Object, name string, ip string) client.Object

func SetupExternalEntitySources

func SetupExternalEntitySources(ips []string, namespace string) map[string]target.ExternalEntitySource

SetupExternalEntitySources returns externalEntitySource resources for testing.

func SetupExternalNodeSources added in v0.2.0

func SetupExternalNodeSources(ips []string, namespace string) map[string]target.ExternalNodeSource

SetupExternalNodeSources returns externalNodeSource resources for testing.

func SetupNetworkInterface

func SetupNetworkInterface(nic *cloud.NetworkInterface, name string, ips []string)

func SetupVirtualMachine

func SetupVirtualMachine(vm *cloud.VirtualMachine, name, namespace string, agented bool, nics ...*cloud.NetworkInterface)

func SetupVirtualMachineOwnerOf

func SetupVirtualMachineOwnerOf(vm *source.VirtualMachineSource, name, namespace string,
	agented bool, nics ...*cloud.NetworkInterface)

Types

This section is empty.

Directories

Path Synopsis
Package cloudsecurity is a generated GoMock package.
Package cloudsecurity is a generated GoMock package.
Package controllerruntimeclient is a generated GoMock package.
Package controllerruntimeclient is a generated GoMock package.
Package networkpolicy is a generated GoMock package.
Package networkpolicy is a generated GoMock package.

Jump to

Keyboard shortcuts

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