refactor(api): refactor base import path (#2788)

* refactor(api): refactor base import path

* fix(build-system): update build_binary_devops

* fix(build-system): fix build_binary_devops for linux

* fix(build-system): fix build_binary_devops for Windows
This commit is contained in:
Anthony Lapenna
2019-03-21 14:20:14 +13:00
committed by GitHub
parent 0c7d69eb17
commit 14845a4a53
184 changed files with 372 additions and 373 deletions

View File

@@ -1,7 +1,7 @@
package security
import (
"github.com/portainer/portainer"
"github.com/portainer/portainer/api"
)
// AuthorizedResourceControlDeletion ensure that the user can delete a resource control object.

View File

@@ -2,7 +2,7 @@ package security
import (
httperror "github.com/portainer/libhttp/error"
"github.com/portainer/portainer"
"github.com/portainer/portainer/api"
"net/http"
"strings"

View File

@@ -4,7 +4,7 @@ import (
"context"
"net/http"
"github.com/portainer/portainer"
"github.com/portainer/portainer/api"
)
type (

View File

@@ -1,6 +1,6 @@
package security
import "github.com/portainer/portainer"
import "github.com/portainer/portainer/api"
// FilterUserTeams filters teams based on user role.
// non-administrator users only have access to team they are member of.

View File

@@ -7,7 +7,7 @@ import (
"github.com/g07cha/defender"
httperror "github.com/portainer/libhttp/error"
"github.com/portainer/portainer"
"github.com/portainer/portainer/api"
)
// RateLimiter represents an entity that manages request rate limiting