-
Notifications
You must be signed in to change notification settings - Fork 8
/
types.go
105 lines (85 loc) · 3.83 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// Copyright 2022 Namespace Labs Inc; All rights reserved.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
package api
type CreateKubernetesClusterRequest struct {
OpaqueUserAuth []byte `json:"opaque_user_auth,omitempty"`
Ephemeral bool `json:"ephemeral,omitempty"`
DocumentedPurpose string `json:"documented_purpose,omitempty"`
AuthorizedSshKeys []string `json:"authorized_ssh_keys,omitempty"`
MachineType string `json:"machine_type,omitempty"`
Feature []string `json:"feature,omitempty"`
}
type GetKubernetesClusterRequest struct {
OpaqueUserAuth []byte `json:"opaque_user_auth,omitempty"`
ClusterId string `json:"cluster_id,omitempty"`
}
type WaitKubernetesClusterRequest struct {
OpaqueUserAuth []byte `json:"opaque_user_auth,omitempty"`
ClusterId string `json:"cluster_id,omitempty"`
}
type CreateKubernetesClusterResponse struct {
Status string `json:"status,omitempty"`
ClusterId string `json:"cluster_id,omitempty"`
Cluster *KubernetesCluster `json:"cluster,omitempty"`
Registry *ImageRegistry `json:"registry,omitempty"`
BuildCluster *BuildCluster `json:"build_cluster,omitempty"`
Deadline string `json:"deadline,omitempty"`
}
type GetKubernetesClusterResponse struct {
Cluster *KubernetesCluster `json:"cluster,omitempty"`
Registry *ImageRegistry `json:"registry,omitempty"`
BuildCluster *BuildCluster `json:"build_cluster,omitempty"`
Deadline string `json:"deadline,omitempty"`
}
type StartCreateKubernetesClusterResponse struct {
ClusterId string `json:"cluster_id,omitempty"`
ClusterFragment *KubernetesCluster `json:"cluster_fragment,omitempty"`
Registry *ImageRegistry `json:"registry,omitempty"`
Deadline string `json:"deadline,omitempty"`
}
type ListKubernetesClustersRequest struct {
OpaqueUserAuth []byte `json:"opaque_user_auth,omitempty"`
}
type KubernetesClusterList struct {
Clusters []KubernetesCluster `json:"cluster"`
}
type KubernetesCluster struct {
ClusterId string `json:"cluster_id,omitempty"`
Created string `json:"created,omitempty"`
Deadline string `json:"deadline,omitempty"`
SSHProxyEndpoint string `json:"ssh_proxy_endpoint,omitempty"`
SshPrivateKey []byte `json:"ssh_private_key,omitempty"`
DocumentedPurpose string `json:"documented_purpose,omitempty"`
Shape *ClusterShape `json:"shape,omitempty"`
EndpointAddress string `json:"endpoint_address,omitempty"`
CertificateAuthorityData []byte `json:"certificate_authority_data,omitempty"`
ClientCertificateData []byte `json:"client_certificate_data,omitempty"`
ClientKeyData []byte `json:"client_key_data,omitempty"`
KubernetesDistribution string `json:"kubernetes_distribution,omitempty"`
Platform []string `json:"platform,omitempty"`
IngressDomain string `json:"ingress_domain,omitempty"`
Label []*LabelEntry `json:"label,omitempty"`
}
type ImageRegistry struct {
EndpointAddress string `json:"endpoint_address,omitempty"`
}
type ClusterShape struct {
VirtualCpu int32 `json:"virtual_cpu,omitempty"`
MemoryMegabytes int32 `json:"memory_megabytes,omitempty"`
}
type DestroyKubernetesClusterRequest struct {
OpaqueUserAuth []byte `json:"opaque_user_auth,omitempty"`
ClusterId string `json:"cluster_id,omitempty"`
}
type LabelEntry struct {
Name string `json:"name,omitempty"`
Value string `json:"value,omitempty"`
}
type BuildCluster struct {
Colocated *BuildCluster_ColocatedPort `json:"colocated,omitempty"`
}
type BuildCluster_ColocatedPort struct {
TargetPort int32 `json:"target_port,omitempty"`
ClusterId string `json:"cluster_id,omitempty"`
}