@cofy-x/axern-sdk 0.6.2 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -65
- package/dist/client/index.d.ts +10 -11
- package/dist/client/index.js +64 -68
- package/dist/config/index.d.ts +0 -1
- package/dist/config/index.js +2 -4
- package/dist/generated/proto.js +0 -1
- package/dist/index.d.ts +4 -5
- package/dist/index.js +1 -2
- package/dist/node/attached_process.d.ts +1 -2
- package/dist/node/attached_process.js +12 -26
- package/dist/node/client.d.ts +4 -6
- package/dist/node/client.js +2 -9
- package/dist/node/exec.d.ts +1 -3
- package/dist/node/exec.js +0 -43
- package/dist/proto/axern/control/admin/v1/access.proto +12 -5
- package/dist/proto/axern/control/admin/v1/audit.proto +14 -16
- package/dist/proto/axern/control/admin/v1/node.proto +23 -67
- package/dist/proto/axern/control/admin/v1/reliability.proto +11 -78
- package/dist/proto/axern/control/capability/v1/capability.proto +34 -94
- package/dist/proto/axern/control/common/v1/common.proto +29 -102
- package/dist/proto/axern/control/environment/v1/environment.proto +42 -26
- package/dist/proto/axern/control/gateway/v1/gateway.proto +18 -59
- package/dist/proto/axern/control/identity/v1/identity.proto +1 -1
- package/dist/proto/axern/control/namespace/v1/namespace.proto +2 -3
- package/dist/proto/axern/control/quota/v1/quota.proto +22 -32
- package/dist/proto/axern/control/run/v1/run.proto +26 -22
- package/dist/proto/axern/control/secret/v1/secret.proto +1 -3
- package/dist/proto/axern/control/tunnel/v1/tunnel.proto +18 -25
- package/dist/proto/axern/node/sandbox/v1/node.proto +59 -375
- package/dist/sandbox/index.d.ts +3 -9
- package/dist/sandbox/index.js +13 -22
- package/dist/sandbox/lifecycle.d.ts +1 -1
- package/dist/sandbox/lifecycle.js +55 -17
- package/dist/tunnel/connector.js +1 -1
- package/dist/tunnel/control.d.ts +0 -1
- package/dist/tunnel/control.js +0 -1
- package/dist/tunnel/runtime.d.ts +0 -1
- package/dist/tunnel/runtime.js +0 -1
- package/dist/tunnel/types.d.ts +0 -1
- package/dist/types.d.ts +4 -21
- package/dist/types.js +1 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/proto/axern/control/admin/v1/allocation_lifecycle.proto +0 -91
- package/dist/proto/axern/control/admin/v1/service.proto +0 -18
- package/dist/proto/axern/control/admin/v1/storage.proto +0 -81
- package/dist/proto/axern/control/agentprofile/v1/agent_profile.proto +0 -169
- package/dist/proto/axern/control/catalog/v1/catalog.proto +0 -127
- package/dist/proto/axern/control/function/v1/function.proto +0 -130
- package/dist/proto/axern/control/function/v1/function_types.proto +0 -233
- package/dist/proto/axern/control/node/v1/node_control.proto +0 -443
- package/dist/proto/axern/control/rollout/v1/rollout.proto +0 -344
- package/dist/proto/axern/control/service/v1/service.proto +0 -96
- package/dist/proto/axern/control/service/v1/service_event.proto +0 -47
- package/dist/proto/axern/control/service/v1/service_replica.proto +0 -78
- package/dist/proto/axern/control/service/v1/service_types.proto +0 -155
- package/dist/proto/axern/control/storage/v1/storage.proto +0 -107
- package/dist/proto/axern/control/storage/v1/storage_types.proto +0 -125
- package/dist/proto/axern/data/artifact/v1/artifact.proto +0 -19
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package axern.control.service.v1;
|
|
4
|
-
|
|
5
|
-
option go_package = "github.com/cofy-x/axern/sdk/go/gen/axern/control/service/v1;servicev1";
|
|
6
|
-
|
|
7
|
-
import "axern/control/common/v1/common.proto";
|
|
8
|
-
import "google/protobuf/duration.proto";
|
|
9
|
-
import "google/protobuf/timestamp.proto";
|
|
10
|
-
|
|
11
|
-
enum ServiceStatus {
|
|
12
|
-
SERVICE_STATUS_UNSPECIFIED = 0;
|
|
13
|
-
SERVICE_STATUS_RECONCILING = 1;
|
|
14
|
-
SERVICE_STATUS_READY = 2;
|
|
15
|
-
SERVICE_STATUS_DEGRADED = 3;
|
|
16
|
-
SERVICE_STATUS_FAILED = 4;
|
|
17
|
-
SERVICE_STATUS_DELETING = 5;
|
|
18
|
-
SERVICE_STATUS_DELETED = 6;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
enum ServiceVolumeDisposition {
|
|
22
|
-
SERVICE_VOLUME_DISPOSITION_UNSPECIFIED = 0;
|
|
23
|
-
SERVICE_VOLUME_DISPOSITION_RETAIN = 1;
|
|
24
|
-
SERVICE_VOLUME_DISPOSITION_DELETE = 2;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
enum ServiceDeletionPhase {
|
|
28
|
-
SERVICE_DELETION_PHASE_UNSPECIFIED = 0;
|
|
29
|
-
SERVICE_DELETION_PHASE_RELEASING_ALLOCATIONS = 1;
|
|
30
|
-
SERVICE_DELETION_PHASE_RECLAIMING_VOLUMES = 2;
|
|
31
|
-
SERVICE_DELETION_PHASE_COMPLETE = 3;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
message ServiceDeletionStatus {
|
|
35
|
-
ServiceDeletionPhase phase = 1;
|
|
36
|
-
ServiceVolumeDisposition volume_disposition = 2;
|
|
37
|
-
repeated string claim_ids = 3;
|
|
38
|
-
string message = 4;
|
|
39
|
-
google.protobuf.Timestamp completed_at = 5;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
enum ServiceRolloutPhase {
|
|
43
|
-
SERVICE_ROLLOUT_PHASE_UNSPECIFIED = 0;
|
|
44
|
-
SERVICE_ROLLOUT_PHASE_ADMITTING_REPLACEMENT = 1;
|
|
45
|
-
SERVICE_ROLLOUT_PHASE_WAITING_FOR_UPDATED_READY = 2;
|
|
46
|
-
SERVICE_ROLLOUT_PHASE_DRAINING_OUTDATED = 3;
|
|
47
|
-
SERVICE_ROLLOUT_PHASE_BLOCKED = 4;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
enum ServiceAutoscalingAction {
|
|
51
|
-
SERVICE_AUTOSCALING_ACTION_UNSPECIFIED = 0;
|
|
52
|
-
SERVICE_AUTOSCALING_ACTION_SCALED_UP = 1;
|
|
53
|
-
SERVICE_AUTOSCALING_ACTION_SCALED_DOWN = 2;
|
|
54
|
-
SERVICE_AUTOSCALING_ACTION_NO_CHANGE = 3;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
enum HttpProbeScheme {
|
|
58
|
-
HTTP_PROBE_SCHEME_UNSPECIFIED = 0;
|
|
59
|
-
HTTP_PROBE_SCHEME_HTTP = 1;
|
|
60
|
-
HTTP_PROBE_SCHEME_HTTPS = 2;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
message ServiceProbe {
|
|
64
|
-
oneof action {
|
|
65
|
-
HttpProbe http = 1;
|
|
66
|
-
TcpProbe tcp = 2;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
google.protobuf.Duration initial_delay = 3;
|
|
70
|
-
google.protobuf.Duration period = 4;
|
|
71
|
-
google.protobuf.Duration timeout = 5;
|
|
72
|
-
int32 success_threshold = 6;
|
|
73
|
-
int32 failure_threshold = 7;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
message HttpProbe {
|
|
77
|
-
int32 port = 1;
|
|
78
|
-
string path = 2;
|
|
79
|
-
HttpProbeScheme scheme = 3;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
message TcpProbe {
|
|
83
|
-
int32 port = 1;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
message ServiceAutoscalingSchedule {
|
|
87
|
-
string name = 1;
|
|
88
|
-
string cron_utc = 2;
|
|
89
|
-
int32 replicas = 3;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
message ServiceAutoscalingPolicy {
|
|
93
|
-
int32 min_replicas = 1;
|
|
94
|
-
int32 max_replicas = 2;
|
|
95
|
-
repeated ServiceAutoscalingSchedule schedules = 3;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
message ServiceAutoscalingStatus {
|
|
99
|
-
int32 current_desired_replicas = 1;
|
|
100
|
-
int32 effective_min_replicas = 2;
|
|
101
|
-
int32 effective_max_replicas = 3;
|
|
102
|
-
string active_schedule_name = 4;
|
|
103
|
-
int32 active_schedule_replicas = 5;
|
|
104
|
-
google.protobuf.Timestamp last_evaluated_at = 6;
|
|
105
|
-
ServiceAutoscalingAction last_action = 7;
|
|
106
|
-
string message = 8;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
message Service {
|
|
110
|
-
string id = 1;
|
|
111
|
-
string namespace = 2;
|
|
112
|
-
string environment_id = 3;
|
|
113
|
-
int32 replicas = 4;
|
|
114
|
-
int32 ready_replicas = 13;
|
|
115
|
-
int32 unhealthy_replicas = 14;
|
|
116
|
-
ServiceRolloutPolicy rollout_policy = 15;
|
|
117
|
-
ServiceRolloutStatus rollout_status = 16;
|
|
118
|
-
ServiceStatus status = 5;
|
|
119
|
-
axern.control.common.v1.ExecutionConfig config = 6;
|
|
120
|
-
repeated string allocation_ids = 7;
|
|
121
|
-
map<string, string> labels = 8;
|
|
122
|
-
int64 version = 9;
|
|
123
|
-
google.protobuf.Timestamp created_at = 10;
|
|
124
|
-
google.protobuf.Timestamp updated_at = 11;
|
|
125
|
-
string message = 12;
|
|
126
|
-
ServiceProbe readiness_probe = 17;
|
|
127
|
-
ServiceProbe liveness_probe = 18;
|
|
128
|
-
ServiceAutoscalingPolicy autoscaling_policy = 19;
|
|
129
|
-
ServiceAutoscalingStatus autoscaling_status = 20;
|
|
130
|
-
axern.control.common.v1.WorkloadDiagnosticCode diagnostic_code = 21;
|
|
131
|
-
ServiceDeletionStatus deletion_status = 22;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
message ServiceListFilter {
|
|
135
|
-
string namespace = 1;
|
|
136
|
-
repeated ServiceStatus statuses = 2;
|
|
137
|
-
map<string, string> labels = 3;
|
|
138
|
-
string cursor = 4;
|
|
139
|
-
int32 page_size = 5;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
message ServiceRolloutPolicy {
|
|
143
|
-
int32 max_surge = 1;
|
|
144
|
-
int32 max_unavailable = 2;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
message ServiceRolloutStatus {
|
|
148
|
-
bool in_progress = 1;
|
|
149
|
-
int32 current_replicas = 2;
|
|
150
|
-
int32 updated_ready_replicas = 3;
|
|
151
|
-
int32 outdated_replicas = 4;
|
|
152
|
-
ServiceRolloutPhase phase = 5;
|
|
153
|
-
axern.control.common.v1.WorkloadDiagnosticCode diagnostic_code = 6;
|
|
154
|
-
string diagnostic_message = 7;
|
|
155
|
-
}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package axern.control.storage.v1;
|
|
4
|
-
|
|
5
|
-
option go_package = "github.com/cofy-x/axern/sdk/go/gen/axern/control/storage/v1;storagev1";
|
|
6
|
-
|
|
7
|
-
import "axern/control/storage/v1/storage_types.proto";
|
|
8
|
-
import "google/protobuf/field_mask.proto";
|
|
9
|
-
|
|
10
|
-
message CreateVolumeClassRequest {
|
|
11
|
-
string name = 1;
|
|
12
|
-
VolumeBackend backend = 2;
|
|
13
|
-
repeated VolumeAccessMode access_modes = 3;
|
|
14
|
-
VolumeReclaimPolicy default_reclaim_policy = 4;
|
|
15
|
-
VolumeConsistencyProfile consistency_profile = 5;
|
|
16
|
-
VolumeRuntimeCompatibility runtime_compatibility = 6;
|
|
17
|
-
map<string, string> parameters = 7;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
message CreateVolumeClassResponse {
|
|
21
|
-
VolumeClass volume_class = 1;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
message GetVolumeClassRequest {
|
|
25
|
-
string name = 1;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
message GetVolumeClassResponse {
|
|
29
|
-
VolumeClass volume_class = 1;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
message ListVolumeClassesRequest {
|
|
33
|
-
string cursor = 1;
|
|
34
|
-
int32 page_size = 2;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
message ListVolumeClassesResponse {
|
|
38
|
-
repeated VolumeClass volume_classes = 1;
|
|
39
|
-
string next_cursor = 2;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
message CreateVolumeClaimRequest {
|
|
43
|
-
string namespace = 1;
|
|
44
|
-
string name = 2;
|
|
45
|
-
string class_name = 3;
|
|
46
|
-
VolumeCapacity requested_capacity = 4;
|
|
47
|
-
VolumeAccessMode access_mode = 5;
|
|
48
|
-
VolumeReclaimPolicy reclaim_policy = 6;
|
|
49
|
-
VolumeBindingScope binding_scope = 7;
|
|
50
|
-
map<string, string> parameters = 8;
|
|
51
|
-
map<string, string> labels = 9;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
message CreateVolumeClaimResponse {
|
|
55
|
-
VolumeClaim volume_claim = 1;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
message GetVolumeClaimRequest {
|
|
59
|
-
string namespace = 1;
|
|
60
|
-
string name = 2;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
message GetVolumeClaimResponse {
|
|
64
|
-
VolumeClaim volume_claim = 1;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
message ListVolumeClaimsRequest {
|
|
68
|
-
VolumeClaimListFilter filter = 1;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
message ListVolumeClaimsResponse {
|
|
72
|
-
repeated VolumeClaim volume_claims = 1;
|
|
73
|
-
string next_cursor = 2;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
message UpdateVolumeClaimRequest {
|
|
77
|
-
string namespace = 1;
|
|
78
|
-
string name = 2;
|
|
79
|
-
int64 expected_version = 3;
|
|
80
|
-
VolumeCapacity requested_capacity = 4;
|
|
81
|
-
map<string, string> labels = 5;
|
|
82
|
-
google.protobuf.FieldMask update_mask = 6;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
message UpdateVolumeClaimResponse {
|
|
86
|
-
VolumeClaim volume_claim = 1;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
message DeleteVolumeClaimRequest {
|
|
90
|
-
string namespace = 1;
|
|
91
|
-
string name = 2;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
message DeleteVolumeClaimResponse {
|
|
95
|
-
VolumeClaim volume_claim = 1;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
service StorageControl {
|
|
99
|
-
rpc CreateVolumeClass(CreateVolumeClassRequest) returns (CreateVolumeClassResponse) {}
|
|
100
|
-
rpc GetVolumeClass(GetVolumeClassRequest) returns (GetVolumeClassResponse) {}
|
|
101
|
-
rpc ListVolumeClasses(ListVolumeClassesRequest) returns (ListVolumeClassesResponse) {}
|
|
102
|
-
rpc CreateVolumeClaim(CreateVolumeClaimRequest) returns (CreateVolumeClaimResponse) {}
|
|
103
|
-
rpc GetVolumeClaim(GetVolumeClaimRequest) returns (GetVolumeClaimResponse) {}
|
|
104
|
-
rpc ListVolumeClaims(ListVolumeClaimsRequest) returns (ListVolumeClaimsResponse) {}
|
|
105
|
-
rpc UpdateVolumeClaim(UpdateVolumeClaimRequest) returns (UpdateVolumeClaimResponse) {}
|
|
106
|
-
rpc DeleteVolumeClaim(DeleteVolumeClaimRequest) returns (DeleteVolumeClaimResponse) {}
|
|
107
|
-
}
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package axern.control.storage.v1;
|
|
4
|
-
|
|
5
|
-
option go_package = "github.com/cofy-x/axern/sdk/go/gen/axern/control/storage/v1;storagev1";
|
|
6
|
-
|
|
7
|
-
import "google/protobuf/timestamp.proto";
|
|
8
|
-
|
|
9
|
-
enum VolumeBackend {
|
|
10
|
-
VOLUME_BACKEND_UNSPECIFIED = 0;
|
|
11
|
-
VOLUME_BACKEND_LOCAL = 1;
|
|
12
|
-
VOLUME_BACKEND_KUBERNETES_PVC = 2;
|
|
13
|
-
VOLUME_BACKEND_NFS = 3;
|
|
14
|
-
VOLUME_BACKEND_OBJECT_STORE_DATASET = 4;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
enum VolumeAccessMode {
|
|
18
|
-
VOLUME_ACCESS_MODE_UNSPECIFIED = 0;
|
|
19
|
-
VOLUME_ACCESS_MODE_READ_WRITE_ONCE = 1;
|
|
20
|
-
VOLUME_ACCESS_MODE_READ_ONLY_MANY = 2;
|
|
21
|
-
VOLUME_ACCESS_MODE_READ_WRITE_MANY = 3;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
enum VolumeReclaimPolicy {
|
|
25
|
-
VOLUME_RECLAIM_POLICY_UNSPECIFIED = 0;
|
|
26
|
-
VOLUME_RECLAIM_POLICY_RETAIN = 1;
|
|
27
|
-
VOLUME_RECLAIM_POLICY_DELETE = 2;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
enum VolumeBindingScope {
|
|
31
|
-
VOLUME_BINDING_SCOPE_UNSPECIFIED = 0;
|
|
32
|
-
VOLUME_BINDING_SCOPE_SERVICE = 1;
|
|
33
|
-
VOLUME_BINDING_SCOPE_ALLOCATION = 2;
|
|
34
|
-
VOLUME_BINDING_SCOPE_EXTERNAL = 3;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
enum VolumeConsistencyProfile {
|
|
38
|
-
VOLUME_CONSISTENCY_PROFILE_UNSPECIFIED = 0;
|
|
39
|
-
VOLUME_CONSISTENCY_PROFILE_POSIX = 1;
|
|
40
|
-
VOLUME_CONSISTENCY_PROFILE_SHARED_FILESYSTEM = 2;
|
|
41
|
-
VOLUME_CONSISTENCY_PROFILE_OBJECT_STORE = 3;
|
|
42
|
-
VOLUME_CONSISTENCY_PROFILE_CACHE = 4;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
enum VolumeStatus {
|
|
46
|
-
VOLUME_STATUS_UNSPECIFIED = 0;
|
|
47
|
-
VOLUME_STATUS_PENDING = 1;
|
|
48
|
-
VOLUME_STATUS_BOUND = 2;
|
|
49
|
-
VOLUME_STATUS_AVAILABLE = 3;
|
|
50
|
-
VOLUME_STATUS_DELETING = 4;
|
|
51
|
-
VOLUME_STATUS_DELETED = 5;
|
|
52
|
-
VOLUME_STATUS_FAILED = 6;
|
|
53
|
-
VOLUME_STATUS_PUBLISHING = 7;
|
|
54
|
-
VOLUME_STATUS_PUBLISHED = 8;
|
|
55
|
-
VOLUME_STATUS_RELEASING = 9;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
message VolumeCapacity {
|
|
59
|
-
int64 size_bytes = 1;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
message VolumeTopology {
|
|
63
|
-
string cluster = 1;
|
|
64
|
-
string zone = 2;
|
|
65
|
-
string node_id = 3;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
message VolumeRuntimeCompatibility {
|
|
69
|
-
bool supports_runc = 1;
|
|
70
|
-
bool supports_runsc = 2;
|
|
71
|
-
bool requires_privileged_node_mount = 3;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
message VolumeClass {
|
|
75
|
-
string name = 1;
|
|
76
|
-
VolumeBackend backend = 2;
|
|
77
|
-
repeated VolumeAccessMode access_modes = 3;
|
|
78
|
-
VolumeReclaimPolicy default_reclaim_policy = 4;
|
|
79
|
-
VolumeConsistencyProfile consistency_profile = 5;
|
|
80
|
-
VolumeRuntimeCompatibility runtime_compatibility = 6;
|
|
81
|
-
map<string, string> parameters = 7;
|
|
82
|
-
google.protobuf.Timestamp created_at = 8;
|
|
83
|
-
google.protobuf.Timestamp updated_at = 9;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
message VolumeClaim {
|
|
87
|
-
string id = 1;
|
|
88
|
-
string namespace = 2;
|
|
89
|
-
string name = 3;
|
|
90
|
-
string class_name = 4;
|
|
91
|
-
VolumeCapacity requested_capacity = 5;
|
|
92
|
-
VolumeAccessMode access_mode = 6;
|
|
93
|
-
VolumeReclaimPolicy reclaim_policy = 7;
|
|
94
|
-
VolumeBindingScope binding_scope = 8;
|
|
95
|
-
VolumeStatus status = 9;
|
|
96
|
-
VolumeTopology topology = 10;
|
|
97
|
-
map<string, string> parameters = 11;
|
|
98
|
-
map<string, string> labels = 12;
|
|
99
|
-
int64 version = 13;
|
|
100
|
-
google.protobuf.Timestamp created_at = 14;
|
|
101
|
-
google.protobuf.Timestamp updated_at = 15;
|
|
102
|
-
string message = 16;
|
|
103
|
-
string owner_type = 17;
|
|
104
|
-
string owner_id = 18;
|
|
105
|
-
string backend_handle = 19;
|
|
106
|
-
int64 reclaim_attempt = 20;
|
|
107
|
-
google.protobuf.Timestamp next_reclaim_at = 21;
|
|
108
|
-
string reclaim_lease_token = 22;
|
|
109
|
-
google.protobuf.Timestamp reclaim_lease_until = 23;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
message VolumeMount {
|
|
113
|
-
string claim_name = 1;
|
|
114
|
-
string target = 2;
|
|
115
|
-
bool readonly = 3;
|
|
116
|
-
repeated string options = 4;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
message VolumeClaimListFilter {
|
|
120
|
-
string namespace = 1;
|
|
121
|
-
repeated VolumeStatus statuses = 2;
|
|
122
|
-
map<string, string> labels = 3;
|
|
123
|
-
string cursor = 4;
|
|
124
|
-
int32 page_size = 5;
|
|
125
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package axern.data.artifact.v1;
|
|
4
|
-
|
|
5
|
-
option go_package = "github.com/cofy-x/axern/sdk/go/gen/axern/data/artifact/v1;artifactv1";
|
|
6
|
-
|
|
7
|
-
message DownloadArtifactRequest {
|
|
8
|
-
string ticket = 1;
|
|
9
|
-
int64 offset = 2;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
message DownloadArtifactResponse {
|
|
13
|
-
int64 offset = 1;
|
|
14
|
-
bytes data = 2;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
service ArtifactData {
|
|
18
|
-
rpc DownloadArtifact(DownloadArtifactRequest) returns (stream DownloadArtifactResponse) {}
|
|
19
|
-
}
|