mirror of
https://github.com/openziti/zrok.git
synced 2024-12-22 23:02:52 +01:00
#all policies (#13)
This commit is contained in:
parent
d82b75f3b2
commit
9e0caf192b
@ -157,7 +157,7 @@ func createServicePolicyDial(svcName, svcId string, edge *rest_management_api_cl
|
|||||||
}
|
}
|
||||||
|
|
||||||
func createServiceEdgeRouterPolicy(svcName, svcId string, edge *rest_management_api_client.ZitiEdgeManagement) error {
|
func createServiceEdgeRouterPolicy(svcName, svcId string, edge *rest_management_api_client.ZitiEdgeManagement) error {
|
||||||
edgeRouterRoles := []string{"@tDnhG8jkG9"} // @linux-edge-router
|
edgeRouterRoles := []string{"#all"}
|
||||||
semantic := rest_model.SemanticAllOf
|
semantic := rest_model.SemanticAllOf
|
||||||
serviceRoles := []string{fmt.Sprintf("@%v", svcId)}
|
serviceRoles := []string{fmt.Sprintf("@%v", svcId)}
|
||||||
serp := &rest_model.ServiceEdgeRouterPolicyCreate{
|
serp := &rest_model.ServiceEdgeRouterPolicyCreate{
|
||||||
@ -180,7 +180,7 @@ func createServiceEdgeRouterPolicy(svcName, svcId string, edge *rest_management_
|
|||||||
}
|
}
|
||||||
|
|
||||||
func createEdgeRouterPolicy(svcName, envId string, edge *rest_management_api_client.ZitiEdgeManagement) error {
|
func createEdgeRouterPolicy(svcName, envId string, edge *rest_management_api_client.ZitiEdgeManagement) error {
|
||||||
edgeRouterRoles := []string{"@tDnhG8jkG9"} // @linux-edge-router
|
edgeRouterRoles := []string{"#all"}
|
||||||
identityRoles := []string{fmt.Sprintf("@%v", envId)}
|
identityRoles := []string{fmt.Sprintf("@%v", envId)}
|
||||||
semantic := rest_model.SemanticAllOf
|
semantic := rest_model.SemanticAllOf
|
||||||
erp := &rest_model.EdgeRouterPolicyCreate{
|
erp := &rest_model.EdgeRouterPolicyCreate{
|
||||||
|
Loading…
Reference in New Issue
Block a user