mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
fix(async-perf): In async poll snapshot handling, reduce redundant json marshal [be-11861] (#726)
This commit is contained in:
parent
45471ce86d
commit
b96328e098
3 changed files with 40 additions and 0 deletions
|
@ -13,6 +13,7 @@ import (
|
|||
gittypes "github.com/portainer/portainer/api/git/types"
|
||||
models "github.com/portainer/portainer/api/http/models/kubernetes"
|
||||
"github.com/portainer/portainer/pkg/featureflags"
|
||||
"github.com/segmentio/encoding/json"
|
||||
|
||||
"golang.org/x/oauth2"
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
|
@ -1374,6 +1375,12 @@ type (
|
|||
Kubernetes *KubernetesSnapshot `json:"Kubernetes"`
|
||||
}
|
||||
|
||||
SnapshotRawMessage struct {
|
||||
EndpointID EndpointID `json:"EndpointId"`
|
||||
Docker json.RawMessage `json:"Docker"`
|
||||
Kubernetes json.RawMessage `json:"Kubernetes"`
|
||||
}
|
||||
|
||||
// CLIService represents a service for managing CLI
|
||||
CLIService interface {
|
||||
ParseFlags(version string) (*CLIFlags, error)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue