File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 11package cns
22
3+ import "encoding/json"
4+
35// Container Network Service DNC Contract
46const (
57 CreateOrUpdateNetworkContainer = "/network/createorupdatenetworkcontainer"
@@ -8,11 +10,16 @@ const (
810 GetInterfaceForContainer = "/network/getinterfaceforcontainer"
911)
1012
11- // Orchestrator Types
13+ // NetworkContainer Types
1214const (
1315 AzureContainerInstance = "AzureContainerInstance"
1416)
1517
18+ // Orchestrator Types
19+ const (
20+ Kubernetes = "Kubernetes"
21+ )
22+
1623// CreateNetworkContainerRequest specifies request to create a network container or network isolation boundary.
1724type CreateNetworkContainerRequest struct {
1825 Version string
@@ -30,11 +37,11 @@ type CreateNetworkContainerRequest struct {
3037// OrchestratorInfo contains orchestrator type which is used to cast OrchestratorContext.
3138type OrchestratorInfo struct {
3239 OrchestratorType string
33- OrchestratorContext interface {}
40+ OrchestratorContext json. RawMessage
3441}
3542
36- // AzureContainerInstanceInfo is an OrchestratorContext that holds PodName and PodNamespace.
37- type AzureContainerInstanceInfo struct {
43+ // KubernetesPodInfo is an OrchestratorContext that holds PodName and PodNamespace.
44+ type KubernetesPodInfo struct {
3845 PodName string
3946 PodNamespace string
4047}
You can’t perform that action at this time.
0 commit comments