Versions in this module Expand all Collapse all v1 v1.14.5 Aug 23, 2024 Changes in this version + var Version string + func AddPublicSSHKey(key []byte) error + func CreateEndpoint(endpointInput *CreateEndpointInput) (endpointId string, err error) + func CreatePod(podInput *CreatePodInput) (pod map[string]interface{}, err error) + func CreateTemplate(templateInput *CreateTemplateInput) (templateId string, err error) + func GetCloud(in *GetCloudInput) (gpuTypes []interface{}, err error) + func Query(input Input) (res *http.Response, err error) + func RemovePod(id string) (ok bool, err error) + func StartOnDemandPod(id string) (pod map[string]interface{}, err error) + func StartSpotPod(id string, bidPerGpu float32) (podBidResume map[string]interface{}, err error) + func StopPod(id string) (podStop map[string]interface{}, err error) + func UpdateEndpointTemplate(endpointId string, templateId string) (err error) + type CreateEndpointInput struct + GpuIds string + IdleTimeout int + Locations string + Name string + NetworkVolumeId string + ScalerType string + ScalerValue int + TemplateId string + WorkersMax int + WorkersMin int + type CreatePodInput struct + CloudType string + ContainerDiskInGb int + DeployCost float32 + DockerArgs string + Env []*PodEnv + GpuCount int + GpuTypeId string + ImageName string + MinMemoryInGb int + MinVcpuCount int + Name string + NetworkVolumeId string + Ports string + StartSSH bool + SupportPublicIp bool + TemplateId string + VolumeInGb int + VolumeMountPath string + type CreateTemplateInput struct + ContainerDiskInGb int + DockerStartCmd string + Env []*PodEnv + ImageName string + IsPublic bool + IsServerless bool + Name string + Ports string + Readme string + StartSSH bool + VolumeInGb int + VolumeMountPath string + type Endpoint struct + Id string + Name string + func GetEndpoints() (endpoints []*Endpoint, err error) + type EndpointData struct + Myself *MySelfDataEndpoint + type EndpointOut struct + Data *EndpointData + Errors []*GraphQLError + type GetCloudInput struct + GpuCount int + MinMemoryInGb int + MinVcpuCount int + SecureCloud *bool + TotalDisk int + type GraphQLError struct + Message string + type Input struct + Query string + Variables map[string]interface{} + type Machine struct + GpuDisplayName string + type MySelfData struct + NetworkVolumes []*NetworkVolume + Pods []*Pod + PubKey string + type MySelfDataEndpoint struct + Endpoints []*Endpoint + type NetworkVolume struct + DataCenterId string + Id string + Name string + Size int + func GetNetworkVolumes() (volumes []*NetworkVolume, err error) + type Pod struct + ContainerDiskInGb int + CostPerHr float32 + DesiredStatus string + DockerArgs string + Env []string + GpuCount int + Id string + ImageName string + Machine *Machine + MemoryInGb int + Name string + PodType string + Ports string + Runtime *Runtime + VcpuCount int + VolumeInGb int + VolumeMountPath string + func GetPods() (pods []*Pod, err error) + type PodData struct + Myself *MySelfData + type PodEnv struct + Key string + Value string + type PodOut struct + Data *PodData + Errors []*GraphQLError + type Ports struct + Ip string + IsIpPublic bool + PortType string + PrivatePort int + PublicPort int + type Runtime struct + Ports []*Ports + type SSHKey struct + Fingerprint string + Key string + Name string + Type string + func GetPublicSSHKeys() (string, []SSHKey, error) + type UpdateEndpointTemplateInput struct + EndpointId string + TemplateId string + type UserOut struct + Data *PodData + Errors []*GraphQLError