mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 06:49:40 +02:00
feat(performance): performance optimizations EE-6042 (#10520)
This commit is contained in:
parent
e4e66dac9c
commit
ae1726cece
71 changed files with 311 additions and 382 deletions
|
@ -2,18 +2,17 @@ package registryutils
|
|||
|
||||
import (
|
||||
"encoding/base64"
|
||||
"encoding/json"
|
||||
|
||||
portainer "github.com/portainer/portainer/api"
|
||||
|
||||
"github.com/segmentio/encoding/json"
|
||||
)
|
||||
|
||||
type (
|
||||
authHeader struct {
|
||||
Username string `json:"username"`
|
||||
Password string `json:"password"`
|
||||
ServerAddress string `json:"serveraddress"`
|
||||
}
|
||||
)
|
||||
type authHeader struct {
|
||||
Username string `json:"username"`
|
||||
Password string `json:"password"`
|
||||
ServerAddress string `json:"serveraddress"`
|
||||
}
|
||||
|
||||
// GetRegistryAuthHeader generate the X-Registry-Auth header from registry
|
||||
func GetRegistryAuthHeader(registry *portainer.Registry) (header string, err error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue