shared

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AgentGroupAssignmentType       = "networking-uxi/agent-group-assignment"
	AgentType                      = "networking-uxi/agent"
	GroupType                      = "networking-uxi/group"
	NetworkGroupAssignmentType     = "networking-uxi/network-group-assignment"
	SensorGroupAssignmentType      = "networking-uxi/sensor-group-assignment"
	SensorType                     = "networking-uxi/sensor"
	ServiceTestGroupAssignmentType = "networking-uxi/service-test-group-assignment"
	ServiceTestType                = "networking-uxi/service-test"
	WiredNetworkType               = "networking-uxi/wired-network"
	WirelessNetworkType            = "networking-uxi/wireless-network"

	AgentGroupAssignmentPath       = "/networking-uxi/v1alpha1/agent-group-assignments"
	AgentPath                      = "/networking-uxi/v1alpha1/agents"
	GroupPath                      = "/networking-uxi/v1alpha1/groups"
	NetworkGroupAssignmentPath     = "/networking-uxi/v1alpha1/network-group-assignments"
	SensorGroupAssignmentPath      = "/networking-uxi/v1alpha1/sensor-group-assignments"
	SensorPath                     = "/networking-uxi/v1alpha1/sensors"
	ServiceTestGroupAssignmentPath = "/networking-uxi/v1alpha1/service-test-group-assignments"
	ServiceTestPath                = "/networking-uxi/v1alpha1/service-tests"
	WiredNetworkPath               = "/networking-uxi/v1alpha1/wired-networks"
	WirelessNetworkPath            = "/networking-uxi/v1alpha1/wireless-networks"
)

Variables

This section is empty.

Functions

func CheckStateAgainstAgent

func CheckStateAgainstAgent(
	t *testing.T,
	stateEntity string,
	agent config_api_client.AgentsGetItem,
) resource.TestCheckFunc

func CheckStateAgainstSensor

func CheckStateAgainstSensor(
	t *testing.T,
	entity string,
	sensor config_api_client.SensorsGetItem,
) resource.TestCheckFunc

func CheckStateAgainstServiceTest

func CheckStateAgainstServiceTest(
	t *testing.T,
	entity string,
	serviceTest config_api_client.ServiceTestsGetItem,
) resource.TestCheckFunc

func CheckStateAgainstWiredNetwork

func CheckStateAgainstWiredNetwork(
	t *testing.T,
	entity string,
	wiredNetwork config_api_client.WiredNetworksGetItem,
) resource.TestCheckFunc

func CheckStateAgainstWirelessNetwork

func CheckStateAgainstWirelessNetwork(
	t *testing.T,
	entity string,
	wirelessNetwork config_api_client.WirelessNetworksGetItem,
) resource.TestCheckFunc

func Int32PtrToStringPtr

func Int32PtrToStringPtr(value *int32) *string

func TestOptionalFloatValue

func TestOptionalFloatValue(
	t *testing.T,
	tfResource string,
	tfKey string,
	property *float32,
) resource.TestCheckFunc

This is required to do a check against floats since 100% accuracy is not guaranteed for floating point numbers in the terraform plugin framework

func TestOptionalValue

func TestOptionalValue(
	t *testing.T,
	tfResource string,
	tfKey string,
	property *string,
) resource.TestCheckFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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