v2

package
v0.0.0-...-609bd80 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DeploymentPath  = "/v2/deployments/"
	DeploymentsPath = "/v2/deployments"
)
View Source
const (
	GpuGroupPath  = "/v2/gpuGroups/"
	GpuGroupsPath = "/v2/gpuGroups"
)
View Source
const (
	GpuLeasePath  = "/v2/gpuLeases/"
	GpuLeasesPath = "/v2/gpuLeases"
)
View Source
const (
	JobPath  = "/v2/jobs/"
	JobsPath = "/v2/jobs"
)
View Source
const (
	NotificationPath  = "/v2/notifications/"
	NotificationsPath = "/v2/notifications"
)
View Source
const (
	ResourceMigrationPath  = "/v2/resourceMigrations/"
	ResourceMigrationsPath = "/v2/resourceMigrations"
)
View Source
const (
	SmPath  = "/v2/storageManagers/"
	SmsPath = "/v2/storageManagers"
)
View Source
const (
	TeamPath  = "/v2/teams/"
	TeamsPath = "/v2/teams"
)
View Source
const (
	UserPath  = "/v2/users/"
	UsersPath = "/v2/users"
)
View Source
const (
	VmPath  = "/v2/vms/"
	VmsPath = "/v2/vms"

	VmActionsPath = "/v2/vmActions"
)
View Source
const (
	ZonePath  = "/v2/zones/"
	ZonesPath = "/v2/zones"
)

Variables

This section is empty.

Functions

func CheckUpURL

func CheckUpURL(t *testing.T, url string) bool

func CleanUpDeployment

func CleanUpDeployment(t *testing.T, id string)

func CleanUpResourceMigration

func CleanUpResourceMigration(t *testing.T, id string)

func CreateApiKey

func CreateApiKey(t *testing.T, userID string, apiKeyCreate body.ApiKeyCreate)

func DeleteResourceMigration

func DeleteResourceMigration(t *testing.T, id string, user ...string)

func DeleteTeam

func DeleteTeam(t *testing.T, id string, user ...string)

func DoSshCommand

func DoSshCommand(t *testing.T, connectionString, cmd string) string

func DoVmAction

func DoVmAction(t *testing.T, vmID string, requestBody body.VmActionCreate, user ...string) body.VmActionCreated

func GetAnyAvailableGpuGroup

func GetAnyAvailableGpuGroup(t *testing.T, userID ...string) *body.GpuGroupRead

func GetDeployment

func GetDeployment(t *testing.T, id string, user ...string) body.DeploymentRead

func GetGpuGroup

func GetGpuGroup(t *testing.T, id string, userID ...string) body.GpuGroupRead

func GetGpuLease

func GetGpuLease(t *testing.T, id string, userID ...string) body.GpuLeaseRead

func GetJob

func GetJob(t *testing.T, id string, user ...string) body.JobRead

func GetNotification

func GetNotification(t *testing.T, id string, user ...string) body.NotificationRead

func GetResourceMigration

func GetResourceMigration(t *testing.T, id string, user ...string) body.ResourceMigrationRead

func GetSM

func GetSM(t *testing.T, id string) body.SmRead

func GetTeam

func GetTeam(t *testing.T, id string, user ...string) body.TeamRead

func GetUser

func GetUser(t *testing.T, id string, user ...string) body.UserRead

func GetUserDiscovery

func GetUserDiscovery(t *testing.T, id string, user ...string) body.UserReadDiscovery

func GetVM

func GetVM(t *testing.T, id string, user ...string) body.VmRead

func GetZone

func GetZone(t *testing.T, id string) body.ZoneRead

func JoinTeam

func JoinTeam(t *testing.T, id string, invitationCode string, user ...string)

func ListDeployments

func ListDeployments(t *testing.T, query string, user ...string) []body.DeploymentRead

func ListGpuGroups

func ListGpuGroups(t *testing.T, query string, userID ...string) []body.GpuGroupRead

func ListGpuLeases

func ListGpuLeases(t *testing.T, query string, userID ...string) []body.GpuLeaseRead

func ListJobs

func ListJobs(t *testing.T, query string, user ...string) []body.JobRead

func ListNotifications

func ListNotifications(t *testing.T, query string, user ...string) []body.NotificationRead

func ListResourceMigrations

func ListResourceMigrations(t *testing.T, query string, user ...string) []body.ResourceMigrationRead

func ListSMs

func ListSMs(t *testing.T, query string, userID ...string) []body.SmRead

func ListTeams

func ListTeams(t *testing.T, query string, user ...string) []body.TeamRead

func ListUsers

func ListUsers(t *testing.T, query string) []body.UserRead

func ListUsersDiscovery

func ListUsersDiscovery(t *testing.T, query string, userID ...string) []body.UserReadDiscovery

func ListVMs

func ListVMs(t *testing.T, query string, user ...string) []body.VmRead

func ListZones

func ListZones(t *testing.T, query string) []body.ZoneRead

func ResourceMigrationExists

func ResourceMigrationExists(t *testing.T, id string, user ...string) bool

func UpdateDeployment

func UpdateDeployment(t *testing.T, id string, requestBody body.DeploymentUpdate, user ...string) body.DeploymentRead

func UpdateGpuLease

func UpdateGpuLease(t *testing.T, id string, requestBody body.GpuLeaseUpdate, userID ...string) body.GpuLeaseRead

func UpdateJob

func UpdateJob(t *testing.T, id string, requestBody body.JobUpdate, user ...string) body.JobRead

func UpdateNotification

func UpdateNotification(t *testing.T, id string, update body.NotificationUpdate, user ...string) body.NotificationRead

func UpdateResourceMigration

func UpdateResourceMigration(t *testing.T, id string, requestBody body.ResourceMigrationUpdate, user ...string) body.ResourceMigrationRead

func UpdateTeam

func UpdateTeam(t *testing.T, id string, teamUpdate body.TeamUpdate, user ...string) body.TeamRead

func UpdateUser

func UpdateUser(t *testing.T, id string, update body.UserUpdate) body.UserRead

func UpdateVM

func UpdateVM(t *testing.T, id string, requestBody body.VmUpdate, user ...string) body.VmRead

func WaitForDeploymentDeleted

func WaitForDeploymentDeleted(t *testing.T, id string, callback func() bool)

func WaitForDeploymentRunning

func WaitForDeploymentRunning(t *testing.T, id string, callback func(*body.DeploymentRead) bool)

func WaitForJobFinished

func WaitForJobFinished(t *testing.T, id string, callback func(*body.JobRead) bool)

func WaitForSmRunning

func WaitForSmRunning(t *testing.T, id string, callback func(read *body.SmRead) bool)

func WaitForVmDeleted

func WaitForVmDeleted(t *testing.T, id string, callback func() bool)

func WaitForVmRunning

func WaitForVmRunning(t *testing.T, id string, callback func(*body.VmRead) bool)

func WithAssumedFailedDeployment

func WithAssumedFailedDeployment(t *testing.T, requestBody body.DeploymentCreate, user ...string)

func WithAssumedFailedVM

func WithAssumedFailedVM(t *testing.T, requestBody body.VmCreate)

func WithDefaultGpuLease

func WithDefaultGpuLease(t *testing.T, gpuGroupID string, userID ...string) body.GpuLeaseRead

func WithDefaultVM

func WithDefaultVM(t *testing.T, userID ...string) body.VmRead

func WithDeployment

func WithDeployment(t *testing.T, requestBody body.DeploymentCreate, user ...string) (body.DeploymentRead, string)

func WithGpuLease

func WithGpuLease(t *testing.T, requestBody body.GpuLeaseCreate, userID ...string) body.GpuLeaseRead

func WithResourceMigration

func WithResourceMigration(t *testing.T, requestBody body.ResourceMigrationCreate, user ...string) body.ResourceMigrationRead

func WithSshPublicKey

func WithSshPublicKey(t *testing.T) string

func WithTeam

func WithTeam(t *testing.T, teamCreate body.TeamCreate, user ...string) body.TeamRead

func WithVM

func WithVM(t *testing.T, requestBody body.VmCreate, user ...string) body.VmRead

Types

This section is empty.

Jump to

Keyboard shortcuts

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