@cofy-x/axern-sdk 0.2.0-bootstrap.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 +169 -0
- package/dist/client/index.d.ts +63 -0
- package/dist/client/index.js +213 -0
- package/dist/config/index.d.ts +15 -0
- package/dist/config/index.js +65 -0
- package/dist/errors/index.d.ts +46 -0
- package/dist/errors/index.js +123 -0
- package/dist/generated/proto.d.ts +10 -0
- package/dist/generated/proto.js +80 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +13 -0
- package/dist/node/archive.d.ts +9 -0
- package/dist/node/archive.js +41 -0
- package/dist/node/attached_process.d.ts +10 -0
- package/dist/node/attached_process.js +60 -0
- package/dist/node/capabilities.d.ts +8 -0
- package/dist/node/capabilities.js +51 -0
- package/dist/node/client.d.ts +44 -0
- package/dist/node/client.js +96 -0
- package/dist/node/computer_use.d.ts +12 -0
- package/dist/node/computer_use.js +81 -0
- package/dist/node/context.d.ts +22 -0
- package/dist/node/context.js +37 -0
- package/dist/node/exec.d.ts +12 -0
- package/dist/node/exec.js +93 -0
- package/dist/node/files.d.ts +18 -0
- package/dist/node/files.js +101 -0
- package/dist/node/process.d.ts +36 -0
- package/dist/node/process.js +144 -0
- package/dist/node/streams.d.ts +8 -0
- package/dist/node/streams.js +70 -0
- package/dist/proto/axern/common/file/v1/file.proto +31 -0
- package/dist/proto/axern/control/admin/v1/allocation_lifecycle.proto +91 -0
- package/dist/proto/axern/control/admin/v1/audit.proto +53 -0
- package/dist/proto/axern/control/admin/v1/node.proto +49 -0
- package/dist/proto/axern/control/admin/v1/reliability.proto +184 -0
- package/dist/proto/axern/control/admin/v1/service.proto +18 -0
- package/dist/proto/axern/control/admin/v1/storage.proto +81 -0
- package/dist/proto/axern/control/agentprofile/v1/agent_profile.proto +169 -0
- package/dist/proto/axern/control/catalog/v1/catalog.proto +127 -0
- package/dist/proto/axern/control/common/v1/common.proto +171 -0
- package/dist/proto/axern/control/environment/v1/environment.proto +94 -0
- package/dist/proto/axern/control/function/v1/function.proto +130 -0
- package/dist/proto/axern/control/function/v1/function_types.proto +233 -0
- package/dist/proto/axern/control/gateway/v1/gateway.proto +60 -0
- package/dist/proto/axern/control/namespace/v1/namespace.proto +52 -0
- package/dist/proto/axern/control/node/v1/node_control.proto +302 -0
- package/dist/proto/axern/control/quota/v1/quota.proto +113 -0
- package/dist/proto/axern/control/rollout/v1/rollout.proto +344 -0
- package/dist/proto/axern/control/run/v1/run.proto +88 -0
- package/dist/proto/axern/control/secret/v1/secret.proto +75 -0
- package/dist/proto/axern/control/service/v1/service.proto +96 -0
- package/dist/proto/axern/control/service/v1/service_event.proto +47 -0
- package/dist/proto/axern/control/service/v1/service_replica.proto +74 -0
- package/dist/proto/axern/control/service/v1/service_types.proto +155 -0
- package/dist/proto/axern/control/storage/v1/storage.proto +107 -0
- package/dist/proto/axern/control/storage/v1/storage_types.proto +125 -0
- package/dist/proto/axern/control/tunnel/v1/tunnel.proto +195 -0
- package/dist/proto/axern/data/artifact/v1/artifact.proto +19 -0
- package/dist/proto/axern/node/sandbox/v1/node.proto +652 -0
- package/dist/proto/axern/tunnel/v1/tunnel.proto +50 -0
- package/dist/resources.d.ts +13 -0
- package/dist/resources.js +107 -0
- package/dist/sandbox/archive.d.ts +8 -0
- package/dist/sandbox/archive.js +228 -0
- package/dist/sandbox/index.d.ts +86 -0
- package/dist/sandbox/index.js +204 -0
- package/dist/sandbox/lifecycle.d.ts +11 -0
- package/dist/sandbox/lifecycle.js +57 -0
- package/dist/tunnel/connector.d.ts +34 -0
- package/dist/tunnel/connector.js +141 -0
- package/dist/tunnel/control.d.ts +22 -0
- package/dist/tunnel/control.js +91 -0
- package/dist/tunnel/debug.d.ts +6 -0
- package/dist/tunnel/debug.js +19 -0
- package/dist/tunnel/relay.d.ts +17 -0
- package/dist/tunnel/relay.js +41 -0
- package/dist/tunnel/runtime.d.ts +34 -0
- package/dist/tunnel/runtime.js +118 -0
- package/dist/tunnel/session.d.ts +25 -0
- package/dist/tunnel/session.js +95 -0
- package/dist/tunnel/target.d.ts +7 -0
- package/dist/tunnel/target.js +28 -0
- package/dist/tunnel/types.d.ts +25 -0
- package/dist/tunnel/types.js +6 -0
- package/dist/types.d.ts +219 -0
- package/dist/types.js +8 -0
- package/dist/validation.d.ts +10 -0
- package/dist/validation.js +37 -0
- package/dist/version.d.ts +7 -0
- package/dist/version.js +9 -0
- package/package.json +57 -0
|
@@ -0,0 +1,74 @@
|
|
|
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/timestamp.proto";
|
|
9
|
+
|
|
10
|
+
enum ServiceReplicaView {
|
|
11
|
+
SERVICE_REPLICA_VIEW_UNSPECIFIED = 0;
|
|
12
|
+
SERVICE_REPLICA_VIEW_ALL = 1;
|
|
13
|
+
SERVICE_REPLICA_VIEW_CURRENT = 2;
|
|
14
|
+
SERVICE_REPLICA_VIEW_ENDED = 3;
|
|
15
|
+
SERVICE_REPLICA_VIEW_UNHEALTHY = 4;
|
|
16
|
+
SERVICE_REPLICA_VIEW_OUTDATED = 5;
|
|
17
|
+
SERVICE_REPLICA_VIEW_UPDATED = 6;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
message ServiceReplica {
|
|
21
|
+
string id = 1;
|
|
22
|
+
string service_id = 2;
|
|
23
|
+
string node_id = 3;
|
|
24
|
+
int64 attempt = 4;
|
|
25
|
+
axern.control.common.v1.AllocationStatus status = 5;
|
|
26
|
+
string message = 6;
|
|
27
|
+
int32 exit_code = 7;
|
|
28
|
+
bool exit_code_known = 8;
|
|
29
|
+
google.protobuf.Timestamp created_at = 9;
|
|
30
|
+
google.protobuf.Timestamp updated_at = 10;
|
|
31
|
+
bool ended = 11;
|
|
32
|
+
bool outdated = 12;
|
|
33
|
+
axern.control.common.v1.WorkloadDiagnosticCode diagnostic_code = 13;
|
|
34
|
+
bool ready = 14;
|
|
35
|
+
string readiness_message = 15;
|
|
36
|
+
ServiceReplicaLifecycleRetry lifecycle_retry = 16;
|
|
37
|
+
axern.control.common.v1.WorkspacePreparationFacts workspace_preparation = 17;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
enum ServiceReplicaLifecycleRetryReason {
|
|
41
|
+
SERVICE_REPLICA_LIFECYCLE_RETRY_REASON_UNSPECIFIED = 0;
|
|
42
|
+
SERVICE_REPLICA_LIFECYCLE_RETRY_REASON_CREATE = 1;
|
|
43
|
+
SERVICE_REPLICA_LIFECYCLE_RETRY_REASON_DELETE = 2;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
message ServiceReplicaLifecycleRetry {
|
|
47
|
+
ServiceReplicaLifecycleRetryReason reason = 1;
|
|
48
|
+
int32 attempts = 2;
|
|
49
|
+
string last_error = 3;
|
|
50
|
+
google.protobuf.Timestamp next_run_at = 4;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
message ServiceReplicaListFilter {
|
|
54
|
+
repeated axern.control.common.v1.AllocationStatus statuses = 1;
|
|
55
|
+
ServiceReplicaView view = 2;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
message GetServiceReplicaRequest {
|
|
59
|
+
string service_id = 1;
|
|
60
|
+
string replica_id = 2;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
message GetServiceReplicaResponse {
|
|
64
|
+
ServiceReplica replica = 1;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
message ListServiceReplicasRequest {
|
|
68
|
+
string service_id = 1;
|
|
69
|
+
ServiceReplicaListFilter filter = 2;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
message ListServiceReplicasResponse {
|
|
73
|
+
repeated ServiceReplica replicas = 1;
|
|
74
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package axern.control.tunnel.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "github.com/cofy-x/axern/sdk/go/gen/axern/control/tunnel/v1;tunnelcontrolv1";
|
|
6
|
+
|
|
7
|
+
import "google/protobuf/duration.proto";
|
|
8
|
+
import "google/protobuf/timestamp.proto";
|
|
9
|
+
|
|
10
|
+
enum TunnelSessionStatus {
|
|
11
|
+
TUNNEL_SESSION_STATUS_UNSPECIFIED = 0;
|
|
12
|
+
TUNNEL_SESSION_STATUS_PENDING = 1;
|
|
13
|
+
TUNNEL_SESSION_STATUS_RUNNING = 2;
|
|
14
|
+
TUNNEL_SESSION_STATUS_DEGRADED = 3;
|
|
15
|
+
TUNNEL_SESSION_STATUS_REVOKED = 4;
|
|
16
|
+
TUNNEL_SESSION_STATUS_EXPIRED = 5;
|
|
17
|
+
TUNNEL_SESSION_STATUS_FAILED = 6;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
enum TunnelPeerKind {
|
|
21
|
+
TUNNEL_PEER_KIND_UNSPECIFIED = 0;
|
|
22
|
+
TUNNEL_PEER_KIND_CLIENT = 1;
|
|
23
|
+
TUNNEL_PEER_KIND_NODE = 2;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
enum TunnelSessionEventType {
|
|
27
|
+
TUNNEL_SESSION_EVENT_TYPE_UNSPECIFIED = 0;
|
|
28
|
+
TUNNEL_SESSION_EVENT_TYPE_CREATED = 1;
|
|
29
|
+
TUNNEL_SESSION_EVENT_TYPE_RENEWED = 2;
|
|
30
|
+
TUNNEL_SESSION_EVENT_TYPE_NODE_STATUS = 3;
|
|
31
|
+
TUNNEL_SESSION_EVENT_TYPE_REVOKED = 4;
|
|
32
|
+
TUNNEL_SESSION_EVENT_TYPE_EXPIRED = 5;
|
|
33
|
+
TUNNEL_SESSION_EVENT_TYPE_CLIENT_CONNECTED = 6;
|
|
34
|
+
TUNNEL_SESSION_EVENT_TYPE_CLIENT_DISCONNECTED = 7;
|
|
35
|
+
TUNNEL_SESSION_EVENT_TYPE_NODE_CONNECTED = 8;
|
|
36
|
+
TUNNEL_SESSION_EVENT_TYPE_NODE_DISCONNECTED = 9;
|
|
37
|
+
TUNNEL_SESSION_EVENT_TYPE_PAIRED = 10;
|
|
38
|
+
TUNNEL_SESSION_EVENT_TYPE_DRAIN_REJECTED = 11;
|
|
39
|
+
TUNNEL_SESSION_EVENT_TYPE_RESOURCE_LIMITED = 12;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
enum TunnelSessionEventReasonCode {
|
|
43
|
+
TUNNEL_SESSION_EVENT_REASON_CODE_UNSPECIFIED = 0;
|
|
44
|
+
TUNNEL_SESSION_EVENT_REASON_CODE_SESSION_CREATED = 1;
|
|
45
|
+
TUNNEL_SESSION_EVENT_REASON_CODE_SESSION_RENEWED = 2;
|
|
46
|
+
TUNNEL_SESSION_EVENT_REASON_CODE_NODE_RUNNING = 3;
|
|
47
|
+
TUNNEL_SESSION_EVENT_REASON_CODE_NODE_DEGRADED = 4;
|
|
48
|
+
TUNNEL_SESSION_EVENT_REASON_CODE_NODE_FAILED = 5;
|
|
49
|
+
TUNNEL_SESSION_EVENT_REASON_CODE_MANUAL_REVOKE = 6;
|
|
50
|
+
TUNNEL_SESSION_EVENT_REASON_CODE_ALLOCATION_ENDED = 7;
|
|
51
|
+
TUNNEL_SESSION_EVENT_REASON_CODE_ALLOCATION_DELETED = 8;
|
|
52
|
+
TUNNEL_SESSION_EVENT_REASON_CODE_SESSION_EXPIRED = 9;
|
|
53
|
+
TUNNEL_SESSION_EVENT_REASON_CODE_CLIENT_CONNECTED = 10;
|
|
54
|
+
TUNNEL_SESSION_EVENT_REASON_CODE_CLIENT_DISCONNECTED = 11;
|
|
55
|
+
TUNNEL_SESSION_EVENT_REASON_CODE_NODE_CONNECTED = 12;
|
|
56
|
+
TUNNEL_SESSION_EVENT_REASON_CODE_NODE_DISCONNECTED = 13;
|
|
57
|
+
TUNNEL_SESSION_EVENT_REASON_CODE_PAIRED = 14;
|
|
58
|
+
TUNNEL_SESSION_EVENT_REASON_CODE_DRAIN_REJECTED = 15;
|
|
59
|
+
TUNNEL_SESSION_EVENT_REASON_CODE_RESOURCE_LIMITED = 16;
|
|
60
|
+
TUNNEL_SESSION_EVENT_REASON_CODE_RELAY_PONG_TIMEOUT = 17;
|
|
61
|
+
TUNNEL_SESSION_EVENT_REASON_CODE_RELAY_QUEUE_FULL = 18;
|
|
62
|
+
TUNNEL_SESSION_EVENT_REASON_CODE_RELAY_FRAME_TOO_LARGE = 19;
|
|
63
|
+
TUNNEL_SESSION_EVENT_REASON_CODE_RELAY_OPPOSITE_MISSING = 20;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
message TunnelSession {
|
|
67
|
+
string session_id = 1;
|
|
68
|
+
string allocation_id = 2;
|
|
69
|
+
string node_id = 3;
|
|
70
|
+
string node_target = 4;
|
|
71
|
+
int64 attempt = 5;
|
|
72
|
+
int32 remote_port = 6;
|
|
73
|
+
string local_target = 7;
|
|
74
|
+
string edge_target = 8;
|
|
75
|
+
TunnelSessionStatus status = 9;
|
|
76
|
+
string reason = 10;
|
|
77
|
+
string bound_addr = 11;
|
|
78
|
+
bool revoked = 12;
|
|
79
|
+
google.protobuf.Timestamp created_at = 13;
|
|
80
|
+
google.protobuf.Timestamp updated_at = 14;
|
|
81
|
+
google.protobuf.Timestamp expires_at = 15;
|
|
82
|
+
string node_edge_target = 16;
|
|
83
|
+
string relay_id = 17;
|
|
84
|
+
string client_edge_target = 18;
|
|
85
|
+
google.protobuf.Timestamp ready_at = 19;
|
|
86
|
+
google.protobuf.Timestamp last_peer_event_at = 20;
|
|
87
|
+
int64 bytes_in = 21;
|
|
88
|
+
int64 bytes_out = 22;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
message TunnelSessionEvent {
|
|
92
|
+
int64 event_id = 1;
|
|
93
|
+
string session_id = 2;
|
|
94
|
+
TunnelSessionEventType event_type = 3;
|
|
95
|
+
TunnelSessionStatus status = 4;
|
|
96
|
+
string reason = 5;
|
|
97
|
+
string bound_addr = 6;
|
|
98
|
+
google.protobuf.Timestamp created_at = 7;
|
|
99
|
+
TunnelSessionEventReasonCode reason_code = 8;
|
|
100
|
+
string relay_id = 9;
|
|
101
|
+
TunnelPeerKind peer_kind = 10;
|
|
102
|
+
int64 bytes_in = 11;
|
|
103
|
+
int64 bytes_out = 12;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
message CreateTunnelSessionRequest {
|
|
107
|
+
string allocation_id = 1;
|
|
108
|
+
optional int32 remote_port = 2;
|
|
109
|
+
string local_target = 3;
|
|
110
|
+
google.protobuf.Duration ttl = 4;
|
|
111
|
+
bool wait_ready = 5;
|
|
112
|
+
google.protobuf.Duration ready_timeout = 6;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
message CreateTunnelSessionResponse {
|
|
116
|
+
TunnelSession session = 1;
|
|
117
|
+
string client_token = 2;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
message GetTunnelSessionRequest {
|
|
121
|
+
string session_id = 1;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
message GetTunnelSessionResponse {
|
|
125
|
+
TunnelSession session = 1;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
message ListTunnelSessionsRequest {
|
|
129
|
+
string allocation_id = 1;
|
|
130
|
+
string node_id = 2;
|
|
131
|
+
bool include_terminal = 3;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
message ListTunnelSessionsResponse {
|
|
135
|
+
repeated TunnelSession sessions = 1;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
message ListTunnelSessionEventsRequest {
|
|
139
|
+
string session_id = 1;
|
|
140
|
+
int32 limit = 2;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
message ListTunnelSessionEventsResponse {
|
|
144
|
+
repeated TunnelSessionEvent events = 1;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
message InspectTunnelSessionRequest {
|
|
148
|
+
string session_id = 1;
|
|
149
|
+
int32 event_limit = 2;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
message InspectTunnelSessionResponse {
|
|
153
|
+
TunnelSession session = 1;
|
|
154
|
+
repeated TunnelSessionEvent events = 2;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
message RevokeTunnelSessionRequest {
|
|
158
|
+
string session_id = 1;
|
|
159
|
+
string reason = 2;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
message RevokeTunnelSessionResponse {
|
|
163
|
+
TunnelSession session = 1;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
message RenewTunnelSessionRequest {
|
|
167
|
+
string session_id = 1;
|
|
168
|
+
google.protobuf.Duration ttl = 2;
|
|
169
|
+
string client_token = 3;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
message RenewTunnelSessionResponse {
|
|
173
|
+
TunnelSession session = 1;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
message ValidateTunnelPeerRequest {
|
|
177
|
+
string session_id = 1;
|
|
178
|
+
TunnelPeerKind peer_kind = 2;
|
|
179
|
+
string token = 3;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
message ValidateTunnelPeerResponse {
|
|
183
|
+
TunnelSession session = 1;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
service TunnelControl {
|
|
187
|
+
rpc CreateTunnelSession(CreateTunnelSessionRequest) returns (CreateTunnelSessionResponse) {}
|
|
188
|
+
rpc GetTunnelSession(GetTunnelSessionRequest) returns (GetTunnelSessionResponse) {}
|
|
189
|
+
rpc ListTunnelSessions(ListTunnelSessionsRequest) returns (ListTunnelSessionsResponse) {}
|
|
190
|
+
rpc ListTunnelSessionEvents(ListTunnelSessionEventsRequest) returns (ListTunnelSessionEventsResponse) {}
|
|
191
|
+
rpc InspectTunnelSession(InspectTunnelSessionRequest) returns (InspectTunnelSessionResponse) {}
|
|
192
|
+
rpc RevokeTunnelSession(RevokeTunnelSessionRequest) returns (RevokeTunnelSessionResponse) {}
|
|
193
|
+
rpc RenewTunnelSession(RenewTunnelSessionRequest) returns (RenewTunnelSessionResponse) {}
|
|
194
|
+
rpc ValidateTunnelPeer(ValidateTunnelPeerRequest) returns (ValidateTunnelPeerResponse) {}
|
|
195
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
}
|