netmaker/cli/functions/acl.go

17 lines
453 B
Go
Raw Normal View History

2022-11-21 21:49:57 +08:00
package functions
import (
"fmt"
"net/http"
"github.com/gravitl/netmaker/logic/acls"
)
func GetACL(networkName string) *acls.ACLContainer {
return request[acls.ACLContainer](http.MethodGet, fmt.Sprintf("/api/networks/%s/acls", networkName), nil)
}
func UpdateACL(networkName string, payload *acls.ACLContainer) *acls.ACLContainer {
return request[acls.ACLContainer](http.MethodPut, fmt.Sprintf("/api/networks/%s/acls", networkName), payload)
}