infrastructure

package
v0.0.0-...-57e549e Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Default

type Default struct {
	APIVersion string `json:"apiVersion"`
	Kind       string `json:"kind"`
	Metadata   struct {
	} `json:"metadata"`
	Spec struct {
		Gcloud struct {
			Auth struct {
			} `json:"auth"`
			ProjectID   string `json:"projectID"`
			Zone        string `json:"zone"`
			MachineType string `json:"machineType"`
			Accelerator struct {
				GPU struct {
					MachineType string `json:"machineType"`
					Type        string `json:"type"`
					Node        struct {
						DiskSizeGb string `json:"diskSizeGb"`
					} `json:"node"`
				} `json:"gpu"`
				TPU struct {
					MachineType string `json:"machineType"`
					Version     string `json:"version"`
					Cores       string `json:"cores"`
					TF          struct {
						Version string `json:"version"`
					} `json:"tf"`
					Node struct {
						DiskSizeGb string `json:"diskSizeGb"`
					} `json:"node"`
				} `json:"tpu"`
			} `json:"accelerator"`
		} `json:"gcloud"`
		Cluster struct {
			ID   string `json:"id"`
			Auth struct {
			} `json:"auth"`
			SelfDeletion struct {
				Active            string `json:"active"`
				TimeDurationHours string `json:"timeDurationHours"`
			} `json:"selfDeletion"`
			Nodes struct {
				DiskSizeGb string `json:"diskSizeGb"`
			} `json:nodes`
		} `json:"cluster"`
		Neurakube struct {
			VolumeSizeGB string `json:"volumeSizeGB"`
			AutoCreation string `json:"autoCreation"`
			Cache        struct {
				Endpoint      string `json:"endpoint"`
				ConnectStatus string `json:"connectStatus"`
			} `json:"cache"`
		} `json:"neurakube"`
		Develop struct {
			Environment struct {
				IDE       string `json:"ide"`
				Framework string `json:"framework"`
			} `json:"environment"`
			Type         string `json:"type"`
			VolumeSizeGB string `json:"volumeSizeGB"`
			SelfDeletion struct {
				Active            string `json:"active"`
				TimeDurationHours string `json:"timeDurationHours"`
			} `json:"selfDeletion"`
			NodePools struct {
				Dedicated string `json:"dedicated"`
			} `json:"nodePools"`
		} `json:"develop"`
		App struct {
			Environment struct {
				IDE       string `json:"ide"`
				Framework string `json:"framework"`
			} `json:"environment"`
			Type         string `json:"type"`
			VolumeSizeGB string `json:"volumeSizeGB"`
			SelfDeletion struct {
				Active            string `json:"active"`
				TimeDurationHours string `json:"timeDurationHours"`
			} `json:"selfDeletion"`
			NodePools struct {
				Dedicated string `json:"dedicated"`
			} `json:"nodePools"`
		} `json:"app"`
		Inference struct {
			Environment struct {
				IDE       string `json:"ide"`
				Framework string `json:"framework"`
			} `json:"environment"`
			Type         string `json:"type"`
			VolumeSizeGB string `json:"volumeSizeGB"`
			SelfDeletion struct {
				Active            string `json:"active"`
				TimeDurationHours string `json:"timeDurationHours"`
			} `json:"selfDeletion"`
			NodePools struct {
				Dedicated string `json:"dedicated"`
			} `json:"nodePools"`
		} `json:"inference"`
	} `json:"spec"`
}

type F

type F struct{}

func (F) GetAllIDs

func (f F) GetAllIDs() []string

func (F) GetBasePath

func (f F) GetBasePath() string

func (F) GetClusterRecentlyDeleted

func (f F) GetClusterRecentlyDeleted() bool

func (F) GetConfig

func (f F) GetConfig() *Default

func (F) GetContainerUserPath

func (f F) GetContainerUserPath() string

func (F) GetInfraGcloudAuthPath

func (f F) GetInfraGcloudAuthPath() string

func (F) GetInfraGcloudPath

func (f F) GetInfraGcloudPath() string

func (F) GetInfraKubeAuthPath

func (f F) GetInfraKubeAuthPath(withFileName bool) string

func (F) GetInfraKubePath

func (f F) GetInfraKubePath() string

func (F) GetPath

func (f F) GetPath(withFileName bool) string

func (F) GetProviderIDActive

func (f F) GetProviderIDActive() string

func (F) ProviderIDIsActive

func (f F) ProviderIDIsActive(id string) bool

func (F) SetCluster

func (f F) SetCluster()

func (F) SetClusterRecentlyDeleted

func (f F) SetClusterRecentlyDeleted(deleted bool)

func (F) SetConfig

func (f F) SetConfig() (*Default, string)

func (F) SetGcloudAccelerator

func (f F) SetGcloudAccelerator(context, accType string)

func (F) SetKubeConfig

func (f F) SetKubeConfig()

func (F) SetMachineSpec

func (f F) SetMachineSpec()

func (F) SetModuleSpec

func (f F) SetModuleSpec(context string)

func (F) SetNeuraKubeSpec

func (f F) SetNeuraKubeSpec()

func (F) SetProject

func (f F) SetProject()

func (F) SetProviderIDActive

func (f F) SetProviderIDActive(id string)

Jump to

Keyboard shortcuts

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