Documentation ¶
Index ¶
- Constants
- Variables
- func AddFakePod(ControllerHubURL string, pod types.FakePod)
- func ApplyLabel(nodeHandler string) error
- func CreateConfigMapforEdgeCore(cloudhub, cmHandler, nodeHandler string, numOfNodes int)
- func DeleteCloudDeployment(apiserver string)
- func DeleteEdgeDeployments(apiServerForRegisterNode, apiServerForDeployments string, nodes int)
- func DeleteFakePod(ControllerHubURL string, pod types.FakePod)
- func GetLatency(pods []types.FakePod) types.Latency
- func HandleCloudDeployment(...) error
- func HandleEdgeCorePodDeployment(depHandler, imgURL, podHandler, nodeHandler string, numOfNodes int) v1.PodList
- func HandleEdgeDeployment(cloudhub, depHandler, nodeHandler, cmHandler, imgURL, podHandler string, ...) v1.PodList
- func ListFakePods(ControllerHubURL string) []types.FakePod
- func SendHTTPRequest(method, reqAPI string, body io.Reader) (*http.Response, error)
Constants ¶
View Source
const ( AppHandler = "/api/v1/namespaces/default/pods" NodeHandler = "/api/v1/nodes" DeploymentHandler = "/apis/apps/v1/namespaces/default/deployments" ConfigmapHandler = "/api/v1/namespaces/default/configmaps" ServiceHandler = "/api/v1/namespaces/default/services" NodelabelKey = "k8snode" NodelabelVal = "kb-perf-node" )
K8s resource handlers
Variables ¶
Functions ¶
func AddFakePod ¶ added in v1.0.0
AddFakePod adds a fake pod
func ApplyLabel ¶
func CreateConfigMapforEdgeCore ¶ added in v1.0.0
func DeleteCloudDeployment ¶
func DeleteCloudDeployment(apiserver string)
func DeleteEdgeDeployments ¶
func DeleteFakePod ¶ added in v1.0.0
DeleteFakePod deletes a fake pod
func GetLatency ¶ added in v1.6.1
GetLatency calculates latency based on different percent
func HandleCloudDeployment ¶
func HandleEdgeCorePodDeployment ¶ added in v1.0.0
func HandleEdgeDeployment ¶
func ListFakePods ¶ added in v1.0.0
ListFakePods lists all fake pods
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.