Documentation ¶
Index ¶
- Constants
- func AssertPortCmdOutput(t *testing.T, port *metalv1.Port, out, networkType string, bonded bool)
- func CleanTestBgpDynamicNeighbor(t *testing.T, id string)
- func CleanTestDevice(t *testing.T, deviceId string)
- func CleanTestGateway(t *testing.T, gatewayId string)
- func CleanTestInterConnection(t *testing.T, connectionID string)
- func CleanTestIps(t *testing.T, ipsId string) error
- func CleanTestOrganization(t *testing.T, orgId string)
- func CleanTestProject(t *testing.T, projectId string)
- func CleanTestVirtualCircuit(t *testing.T, vcId string)
- func CleanTestVlan(t *testing.T, vlanId string)
- func CleanTestVrfGateway(t *testing.T, gatewayId string)
- func CleanTestVrfIpRequest(t *testing.T, IPReservationId string)
- func CleanTestVrfRoute(t *testing.T, vrfRouteId string)
- func CleanTestVrfs(t *testing.T, vrfId string)
- func CleanupInterconnection(t *testing.T, connectionId string)
- func CleanupInterconnectionVC(t *testing.T, connectionId string)
- func CreateTestBgpDynamicNeighbor(t *testing.T, gatewayId, iprange string, asn int64) *metalv1.BgpDynamicNeighbor
- func CreateTestBgpEnableTest(projId string) error
- func CreateTestDevice(t *testing.T, projectId, name string) *metalv1.Device
- func CreateTestGateway(t *testing.T, projectId, vlanId string, privateIPv4SubnetSize *int32) *metalv1.MetalGateway
- func CreateTestInterConnection(t *testing.T, projectId, name string) *metalv1.Interconnection
- func CreateTestIps(t *testing.T, projectId string, quantity int, ipType string) (string, error)
- func CreateTestOrganization(t *testing.T, name string) *metalv1.Organization
- func CreateTestProject(t *testing.T, name string) *metalv1.Project
- func CreateTestVLAN(t *testing.T, projectId, metro string) *metalv1.VirtualNetwork
- func CreateTestVirtualCircuit(t *testing.T, projectId, connId, portId, vlanId, name string) *metalv1.VirtualCircuit
- func CreateTestVlanWithVxLan(t *testing.T, projectId string, Id int, desc string) *metalv1.VirtualNetwork
- func CreateTestVrfGateway(t *testing.T, projectId, reservationId, vlanId string) *metalv1.VrfMetalGateway
- func CreateTestVrfIpRequest(t *testing.T, projectId, vrfId string) *metalv1.RequestIPReservation201Response
- func CreateTestVrfRoute(t *testing.T, vrfId string) *metalv1.VrfRoute
- func CreateTestVrfs(t *testing.T, projectId, name string, asn int64) *metalv1.Vrf
- func ExecuteAndCaptureOutput(t *testing.T, root *cobra.Command) []byte
- func GenerateRandomString(length int) string
- func GetDeviceById(t *testing.T, deviceId string) (*metalv1.Device, error)
- func GetInterconnPort(t *testing.T, connId string) string
- func GetPortById(t *testing.T, portId string) (*metalv1.Port, error)
- func IsDeviceStateActive(t *testing.T, deviceId string) (bool, error)
- func SetupProjectAndDevice(t *testing.T, projPrefix string) (*metalv1.Project, *metalv1.Device)
- func StopTestDevice(t *testing.T, deviceId string) error
- func TestClient() *metalv1.APIClient
- func UnAssignPortVlan(t *testing.T, portId, vlanId string) error
- func WaitForAttachVlanToPort(t *testing.T, portId string, attach bool) error
- func WaitForDeviceState(t *testing.T, deviceId string, states ...metalv1.DeviceState) (bool, error)
Constants ¶
View Source
const ( ConsumerToken = "" URL = "https://api.equinix.com/metal/v1/" Version = "metal" )
Variables ¶
This section is empty.
Functions ¶
func AssertPortCmdOutput ¶ added in v0.20.0
func CleanTestBgpDynamicNeighbor ¶ added in v0.21.0
func CleanTestDevice ¶
func CleanTestGateway ¶ added in v0.18.0
func CleanTestInterConnection ¶ added in v0.20.0
func CleanTestOrganization ¶ added in v0.18.0
func CleanTestProject ¶
func CleanTestVirtualCircuit ¶ added in v0.20.0
func CleanTestVlan ¶
func CleanTestVrfGateway ¶ added in v0.21.0
func CleanTestVrfIpRequest ¶ added in v0.20.0
func CleanTestVrfRoute ¶ added in v0.21.0
func CleanTestVrfs ¶ added in v0.20.0
func CleanupInterconnection ¶ added in v0.20.0
func CleanupInterconnectionVC ¶ added in v0.20.0
func CreateTestBgpDynamicNeighbor ¶ added in v0.21.0
func CreateTestBgpEnableTest ¶ added in v0.18.0
func CreateTestGateway ¶ added in v0.18.0
func CreateTestInterConnection ¶ added in v0.20.0
func CreateTestInterConnection(t *testing.T, projectId, name string) *metalv1.Interconnection
func CreateTestIps ¶
func CreateTestOrganization ¶ added in v0.18.0
func CreateTestOrganization(t *testing.T, name string) *metalv1.Organization
func CreateTestVLAN ¶ added in v0.18.0
func CreateTestVLAN(t *testing.T, projectId, metro string) *metalv1.VirtualNetwork
func CreateTestVirtualCircuit ¶ added in v0.20.0
func CreateTestVirtualCircuit(t *testing.T, projectId, connId, portId, vlanId, name string) *metalv1.VirtualCircuit
func CreateTestVlanWithVxLan ¶ added in v0.18.0
func CreateTestVrfGateway ¶ added in v0.21.0
func CreateTestVrfGateway(t *testing.T, projectId, reservationId, vlanId string) *metalv1.VrfMetalGateway
func CreateTestVrfIpRequest ¶ added in v0.20.0
func CreateTestVrfIpRequest(t *testing.T, projectId, vrfId string) *metalv1.RequestIPReservation201Response
func CreateTestVrfRoute ¶ added in v0.21.0
func CreateTestVrfs ¶ added in v0.20.0
func ExecuteAndCaptureOutput ¶ added in v0.20.0
func GenerateRandomString ¶ added in v0.18.0
func GetDeviceById ¶ added in v0.18.0
func GetPortById ¶ added in v0.18.0
func SetupProjectAndDevice ¶ added in v0.18.0
func TestClient ¶
func UnAssignPortVlan ¶ added in v0.18.0
func WaitForAttachVlanToPort ¶ added in v0.18.0
func WaitForDeviceState ¶ added in v0.20.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.