Documentation
¶
Index ¶
- type AcceleratorConfig
- type Config
- type CreateHostRequest
- type DockerInstance
- type Error
- type ForwardMsg
- type GCPInstance
- type HostInstance
- type IceServer
- type InfraConfig
- type ListHostsResponse
- type ListZonesResponse
- type NewConnMsg
- type NewConnReply
- type Operation
- type OperationResult
- type SServerResponse
- type Zone
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcceleratorConfig ¶
type AcceleratorConfig struct {
// Number of accelerators.
AcceleratorCount int64 `json:"accelerator_count,omitempty"`
// Full or partial URL of the accelerator type resource.
// For example: `projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100`
AcceleratorType string `json:"accelerator_type,omitempty"`
}
type Config ¶
type Config struct {
InstanceManagerType string `json:"instance_manager_type"`
}
To be separated in to new file if the config needs to contain intormation other than instance manager
type CreateHostRequest ¶
type CreateHostRequest struct {
// [REQUIRED]
HostInstance *HostInstance `json:"host_instance"`
}
type DockerInstance ¶
type ForwardMsg ¶
type ForwardMsg struct {
Payload any `json:"payload"`
}
type GCPInstance ¶
type GCPInstance struct {
// [REQUIRED] Specifies the machine type of the VM Instance.
// Check https://cloud.google.com/compute/docs/regions-zones#available for available values.
MachineType string `json:"machine_type"`
// Specifies a minimum CPU platform for the VM instance.
MinCPUPlatform string `json:"min_cpu_platform"`
// List of accelerator configurations.
AcceleratorConfigs []*AcceleratorConfig `json:"accelerator_configs,omitempty"`
}
type HostInstance ¶
type HostInstance struct {
// [Output Only] Instance name.
Name string `json:"name,omitempty"`
// [Output Only] Boot disk size in GB.
BootDiskSizeGB int64 `json:"boot_disk_size_gb,omitempty"`
// GCP specific properties.
GCP *GCPInstance `json:"gcp,omitempty"`
// Docker specific properties.
Docker *DockerInstance `json:"docker,omitempty"`
}
type InfraConfig ¶
type InfraConfig struct {
IceServers []IceServer `json:"ice_servers"`
}
type ListHostsResponse ¶
type ListHostsResponse struct {
Items []*HostInstance `json:"items"`
// This token allows you to get the next page of results for list requests.
// If the number of results is larger than maxResults, use the `nextPageToken`
// as a value for the query parameter `pageToken` in the next list request.
// Subsequent list requests will have their own `nextPageToken` to continue
// paging through out all the results.
NextPageToken string `json:"nextPageToken,omitempty"`
}
type ListZonesResponse ¶
type ListZonesResponse struct {
Items []*Zone `json:"items"`
}
type NewConnMsg ¶
type NewConnMsg struct {
DeviceId string `json:"device_id"`
}
type NewConnReply ¶
type Operation ¶
type Operation struct {
Name string `json:"name"`
// Service-specific metadata associated with the operation. It typically
// contains progress information and common metadata such as create time.
Metadata any `json:"metadata,omitempty"`
// If the value is `false`, it means the operation is still in progress.
// If `true`, the operation is completed, and either `error` or `response` is
// available.
Done bool `json:"done"`
}
type OperationResult ¶
type OperationResult struct {
// The error result of the operation in case of failure or cancellation.
Error *Error `json:"error,omitempty"`
// The expected response of the operation in case of success. If the original method returns
// no data on success, such as `Delete`, this field will be empty, hence omitted. If the original
// method is standard: `Get`/`Create`/`Update`, the response should be the relevant resource
// encoded in JSON format.
Response string `json:"response,omitempty"`
}
type SServerResponse ¶
Click to show internal directories.
Click to hide internal directories.