...
1 package fake
2
3 import (
4 "github.com/shurcooL/graphql"
5
6 "edge-infra.dev/pkg/edge/api/graph/model"
7 )
8
9 type UpdateClusterSecretRequest struct {
10 ClusterEdgeID string `json:"clusterEdgeId"`
11 SecretType model.ClusterSecretType `json:"secretType"`
12 SecretValue string `json:"secretValue"`
13 }
14
15 type UpdateClusterSecretResponse struct {
16 Status graphql.Boolean `json:"updateClusterSecret"`
17 }
18
19 type ModifyNetworkServiceResponse struct {
20 ClusterNetworkServices []*model.ClusterNetworkServiceInfo `json:"updateClusterNetworkServices"`
21 }
22
23 type RegisterNetworkServiceResponse struct {
24 ClusterNetworkServices []*model.ClusterNetworkServiceInfo `json:"createClusterNetworkServices"`
25 }
26
27 type DeleteNetworkServiceResponse struct {
28 Status graphql.Boolean `json:"deleteClusterNetworkService"`
29 }
30 type TerminalResponses struct {
31 Terminals []*model.Terminal `json:"terminals"`
32 }
33
34 type ActivationCodeRequest struct {
35 TerminalID string `json:"terminalId"`
36 }
37
38 type ActivationCodeResponses struct {
39 ActivationCode string `json:"activationCode"`
40 }
41
42 type refreshActivationCodeResponse struct {
43 ActivationCode string `json:"refreshActivationCode"`
44 }
45
46 type ViewClusterSecretResponse struct {
47 ClusterSecret string `json:"clusterSecret"`
48 }
49
50 type ViewClusterSecretLeaseResponse struct {
51 ClusterSecretLease model.ClusterSecretLease `json:"clusterSecretLease"`
52 }
53
54 type RevokeClusterSecretLeaseResponse struct {
55 Status graphql.Boolean `json:"revokeClusterSecretLease"`
56 }
57
58 type ReleaseClusterSecretLeaseResponse struct {
59 Status graphql.Boolean `json:"releaseClusterSecretLease"`
60 }
61
62 type UpdateBannerResponse struct {
63 UpdateBanner model.EdgeResponsePayload `json:"updateBanner"`
64 }
65
View as plain text