v1

package
v0.1.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2024 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

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 DockerInstance struct {
	// Specifies the docker image name.
	ImageName string `json:"image_name"`
	// IP address of docker instance.
	IPAddress string `json:"ip_address"`
}

type Error

type Error struct {
	Code     int    `json:"code"`
	ErrorMsg string `json:"error"`
}

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 IceServer

type IceServer struct {
	URLs []string `json:"urls"`
}

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 NewConnReply struct {
	ConnId     string `json:"connection_id"`
	DeviceInfo any    `json:"device_info"`
}

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

type SServerResponse struct {
	Response   any
	StatusCode int
}

type Zone

type Zone struct {
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL