|
|
@ -11,6 +11,7 @@ import (
|
|
|
|
"github.com/portainer/portainer/api/dataservices"
|
|
|
|
"github.com/portainer/portainer/api/dataservices"
|
|
|
|
"github.com/portainer/portainer/api/git/update"
|
|
|
|
"github.com/portainer/portainer/api/git/update"
|
|
|
|
"github.com/portainer/portainer/api/http/security"
|
|
|
|
"github.com/portainer/portainer/api/http/security"
|
|
|
|
|
|
|
|
"github.com/portainer/portainer/api/internal/endpointutils"
|
|
|
|
"github.com/portainer/portainer/api/scheduler"
|
|
|
|
"github.com/portainer/portainer/api/scheduler"
|
|
|
|
"github.com/portainer/portainer/api/stacks/stackutils"
|
|
|
|
"github.com/portainer/portainer/api/stacks/stackutils"
|
|
|
|
|
|
|
|
|
|
|
@ -171,6 +172,10 @@ func getUserRegistries(datastore dataservices.DataStore, user *portainer.User, e
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func isEnvironmentOnline(endpoint *portainer.Endpoint) bool {
|
|
|
|
func isEnvironmentOnline(endpoint *portainer.Endpoint) bool {
|
|
|
|
|
|
|
|
if endpointutils.IsLocalEndpoint(endpoint) {
|
|
|
|
|
|
|
|
return true
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var err error
|
|
|
|
var err error
|
|
|
|
var tlsConfig *tls.Config
|
|
|
|
var tlsConfig *tls.Config
|
|
|
|
if endpoint.TLSConfig.TLS {
|
|
|
|
if endpoint.TLSConfig.TLS {
|
|
|
|