Documentation
¶
Index ¶
- Constants
- func CurlRayServiceGateway(t Test, gatewayIP string, curlPod *corev1.Pod, ...) (bytes.Buffer, bytes.Buffer)
- func GetActiveCapacity(rs *rayv1.RayService) int32
- func GetActiveTraffic(rs *rayv1.RayService) int32
- func GetGatewayIP(gateway *gwv1.Gateway) string
- func GetLastTrafficMigratedTime(rs *rayv1.RayService) *metav1.Time
- func GetPendingCapacity(rs *rayv1.RayService) int32
- func GetPendingTraffic(rs *rayv1.RayService) int32
Constants ¶
View Source
const ( CurlPodName = "curl-pod" CurlContainerName = "curl-container" )
CurlPodName and CurlContainerName are the default names used when creating a curl pod for gateway tests.
Variables ¶
This section is empty.
Functions ¶
func CurlRayServiceGateway ¶
func CurlRayServiceGateway( t Test, gatewayIP string, curlPod *corev1.Pod, curlPodContainerName, method, rayServicePath, body string, ) (bytes.Buffer, bytes.Buffer)
CurlRayServiceGateway sends a request to the RayService Gateway using a Curl pod. This method currently supports POST and GET methods.
func GetActiveCapacity ¶
func GetActiveCapacity(rs *rayv1.RayService) int32
func GetActiveTraffic ¶
func GetActiveTraffic(rs *rayv1.RayService) int32
func GetGatewayIP ¶
GetGatewayIP retrieves the external IP for a Gateway object
func GetLastTrafficMigratedTime ¶
func GetLastTrafficMigratedTime(rs *rayv1.RayService) *metav1.Time
func GetPendingCapacity ¶
func GetPendingCapacity(rs *rayv1.RayService) int32
func GetPendingTraffic ¶
func GetPendingTraffic(rs *rayv1.RayService) int32
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.