WorkerCoordination and GetSession API refactoring (#354)
* Possible api changes. * Worker API update. * Updating import alias name. * Moving session down a level as a member of the GetSessionResponse. * Marshal the auth flag into the GetSessionResponse proto instead of the session.
This commit is contained in:
1 parent
2914b4c14c
commit
33e7b4538e
18 files changed
+1923
-936
No files matched your search
@@ -3821,25 +3821,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"controller.api.services.v1.StatusResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"controllers": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/controller.servers.v1.Server"
|
||||
},
|
||||
"description": "Active controllers. This can be used (eventually) for conneciton\nmanagement."
|
||||
},
|
||||
"cancel_job_ids": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Jobs that should be canceled: ones assigned to this worker that have been\nreported as active but are in canceling state in the database. Once the\nworker cancels the job, it will no longer show up in active_jobs in the\nnext heartbeat, and we can move the job to canceled state."
|
||||
}
|
||||
}
|
||||
},
|
||||
"controller.api.services.v1.UpdateAccountResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -3920,107 +3901,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"controller.api.services.v1.ValidateSessionResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "ID of the session job"
|
||||
},
|
||||
"scope_id": {
|
||||
"type": "string",
|
||||
"title": "The scope the job was created in"
|
||||
},
|
||||
"user_id": {
|
||||
"type": "string",
|
||||
"title": "The ID of the user that requested the session"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"title": "Type of the session (e.g. tcp, ssh, etc.)"
|
||||
},
|
||||
"endpoint": {
|
||||
"type": "string",
|
||||
"title": "The endpoint to connect to, in a manner that makes sense for the type"
|
||||
},
|
||||
"certificate": {
|
||||
"type": "string",
|
||||
"format": "byte",
|
||||
"description": "The certificate to use when connecting (or if using custom certs, to\nserve as the \"login\"). Raw DER bytes."
|
||||
},
|
||||
"private_key": {
|
||||
"type": "string",
|
||||
"format": "byte",
|
||||
"description": "The private key to use when connecting (or if using custom certs, to pass\nas the \"password\")."
|
||||
},
|
||||
"expiration_time": {
|
||||
"type": "string",
|
||||
"format": "date-time",
|
||||
"title": "After this time the connection will be expired, e.g. forcefully terminated"
|
||||
},
|
||||
"worker_info": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/controller.api.services.v1.WorkerInfo"
|
||||
},
|
||||
"description": "Worker information. The first worker in the slice should be prioritized."
|
||||
}
|
||||
},
|
||||
"title": "SessionResponse contains information necessary for a client to establish a session"
|
||||
},
|
||||
"controller.api.services.v1.WorkerInfo": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"address": {
|
||||
"type": "string",
|
||||
"title": "The address of the worker"
|
||||
}
|
||||
}
|
||||
},
|
||||
"controller.servers.v1.Server": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"private_id": {
|
||||
"type": "string",
|
||||
"title": "Private ID of the resource"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"title": "Type of the resource (controller, worker)"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"title": "Name of the resource"
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"title": "Description of the resource"
|
||||
},
|
||||
"address": {
|
||||
"type": "string",
|
||||
"title": "Address for the server"
|
||||
},
|
||||
"create_time": {
|
||||
"$ref": "#/definitions/controller.storage.timestamp.v1.Timestamp",
|
||||
"title": "First seen time from the RDBMS"
|
||||
},
|
||||
"update_time": {
|
||||
"$ref": "#/definitions/controller.storage.timestamp.v1.Timestamp",
|
||||
"title": "Last time there was an update"
|
||||
}
|
||||
},
|
||||
"title": "Server contains all fields related to a Controller or Worker resource"
|
||||
},
|
||||
"controller.storage.timestamp.v1.Timestamp": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"timestamp": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
}
|
||||
},
|
||||
"title": "Timestamp for storage messages. We've defined a new local type wrapper\nof google.protobuf.Timestamp so we can implement sql.Scanner and sql.Valuer\ninterfaces. See:\nhttps://golang.org/pkg/database/sql/#Scanner\nhttps://golang.org/pkg/database/sql/driver/#Valuer"
|
||||
},
|
||||
"google.protobuf.NullValue": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
|
||||
Reference in new issue
Block a user