1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
184 changed files with 372 additions and 373 deletions

View file

@ -1,7 +1,7 @@
package proxy
import (
"github.com/portainer/portainer"
"github.com/portainer/portainer/api"
)
type (

View file

@ -6,8 +6,8 @@ import (
"sync"
"time"
"github.com/portainer/portainer"
"github.com/portainer/portainer/http/client"
"github.com/portainer/portainer/api"
"github.com/portainer/portainer/api/http/client"
)
type (

View file

@ -7,7 +7,7 @@ import (
"net/http"
"strings"
"github.com/portainer/portainer/archive"
"github.com/portainer/portainer/api/archive"
)
type postDockerfileRequest struct {

View file

@ -3,7 +3,7 @@ package proxy
import (
"net/http"
"github.com/portainer/portainer"
"github.com/portainer/portainer/api"
)
const (

View file

@ -3,7 +3,7 @@ package proxy
import (
"net/http"
"github.com/portainer/portainer"
"github.com/portainer/portainer/api"
)
const (

View file

@ -8,8 +8,8 @@ import (
"regexp"
"strings"
"github.com/portainer/portainer"
"github.com/portainer/portainer/http/security"
"github.com/portainer/portainer/api"
"github.com/portainer/portainer/api/http/security"
)
var apiVersionRe = regexp.MustCompile(`(/v[0-9]\.[0-9]*)?`)

View file

@ -6,8 +6,8 @@ import (
"net/http/httputil"
"net/url"
"github.com/portainer/portainer"
"github.com/portainer/portainer/crypto"
"github.com/portainer/portainer/api"
"github.com/portainer/portainer/api/crypto"
)
// AzureAPIBaseURL is the URL where Azure API requests will be proxied.

View file

@ -6,7 +6,7 @@ import (
"strconv"
"github.com/orcaman/concurrent-map"
"github.com/portainer/portainer"
"github.com/portainer/portainer/api"
)
// TODO: contain code related to legacy extension management

View file

@ -3,7 +3,7 @@ package proxy
import (
"net/http"
"github.com/portainer/portainer"
"github.com/portainer/portainer/api"
)
const (

View file

@ -1,8 +1,8 @@
package proxy
import (
"github.com/portainer/portainer"
"github.com/portainer/portainer/http/security"
"github.com/portainer/portainer/api"
"github.com/portainer/portainer/api/http/security"
)
func createRegistryAuthenticationHeader(serverAddress string, accessContext *registryAccessContext) *registryAuthenticationHeader {

View file

@ -8,7 +8,7 @@ import (
"net/http"
"strconv"
"github.com/portainer/portainer"
"github.com/portainer/portainer/api"
)
const (

View file

@ -3,7 +3,7 @@ package proxy
import (
"net/http"
"github.com/portainer/portainer"
"github.com/portainer/portainer/api"
)
const (

View file

@ -3,7 +3,7 @@ package proxy
import (
"net/http"
"github.com/portainer/portainer"
"github.com/portainer/portainer/api"
)
const (

View file

@ -3,7 +3,7 @@ package proxy
import (
"net/http"
"github.com/portainer/portainer"
"github.com/portainer/portainer/api"
)
const (

View file

@ -3,7 +3,7 @@ package proxy
import (
"net/http"
"github.com/portainer/portainer"
"github.com/portainer/portainer/api"
)
const (