Documentation
¶
Index ¶
- Constants
- func CheckUpURL(t *testing.T, url string) bool
- func CleanUpDeployment(t *testing.T, id string)
- func CleanUpResourceMigration(t *testing.T, id string)
- func CreateApiKey(t *testing.T, userID string, apiKeyCreate body.ApiKeyCreate)
- func DeleteResourceMigration(t *testing.T, id string, user ...string)
- func DeleteTeam(t *testing.T, id string, user ...string)
- func DoSshCommand(t *testing.T, connectionString, cmd string) string
- func DoVmAction(t *testing.T, vmID string, requestBody body.VmActionCreate, user ...string) body.VmActionCreated
- func GetAnyAvailableGpuGroup(t *testing.T, userID ...string) *body.GpuGroupRead
- func GetDeployment(t *testing.T, id string, user ...string) body.DeploymentRead
- func GetGpuGroup(t *testing.T, id string, userID ...string) body.GpuGroupRead
- func GetGpuLease(t *testing.T, id string, userID ...string) body.GpuLeaseRead
- func GetJob(t *testing.T, id string, user ...string) body.JobRead
- func GetNotification(t *testing.T, id string, user ...string) body.NotificationRead
- func GetResourceMigration(t *testing.T, id string, user ...string) body.ResourceMigrationRead
- func GetSM(t *testing.T, id string) body.SmRead
- func GetTeam(t *testing.T, id string, user ...string) body.TeamRead
- func GetUser(t *testing.T, id string, user ...string) body.UserRead
- func GetUserDiscovery(t *testing.T, id string, user ...string) body.UserReadDiscovery
- func GetVM(t *testing.T, id string, user ...string) body.VmRead
- func GetZone(t *testing.T, id string) body.ZoneRead
- func JoinTeam(t *testing.T, id string, invitationCode string, user ...string)
- func ListDeployments(t *testing.T, query string, user ...string) []body.DeploymentRead
- func ListGpuGroups(t *testing.T, query string, userID ...string) []body.GpuGroupRead
- func ListGpuLeases(t *testing.T, query string, userID ...string) []body.GpuLeaseRead
- func ListJobs(t *testing.T, query string, user ...string) []body.JobRead
- func ListNotifications(t *testing.T, query string, user ...string) []body.NotificationRead
- func ListResourceMigrations(t *testing.T, query string, user ...string) []body.ResourceMigrationRead
- func ListSMs(t *testing.T, query string, userID ...string) []body.SmRead
- func ListTeams(t *testing.T, query string, user ...string) []body.TeamRead
- func ListUsers(t *testing.T, query string) []body.UserRead
- func ListUsersDiscovery(t *testing.T, query string, userID ...string) []body.UserReadDiscovery
- func ListVMs(t *testing.T, query string, user ...string) []body.VmRead
- func ListZones(t *testing.T, query string) []body.ZoneRead
- func ResourceMigrationExists(t *testing.T, id string, user ...string) bool
- func UpdateDeployment(t *testing.T, id string, requestBody body.DeploymentUpdate, user ...string) body.DeploymentRead
- func UpdateGpuLease(t *testing.T, id string, requestBody body.GpuLeaseUpdate, userID ...string) body.GpuLeaseRead
- func UpdateJob(t *testing.T, id string, requestBody body.JobUpdate, user ...string) body.JobRead
- func UpdateNotification(t *testing.T, id string, update body.NotificationUpdate, user ...string) body.NotificationRead
- func UpdateResourceMigration(t *testing.T, id string, requestBody body.ResourceMigrationUpdate, ...) body.ResourceMigrationRead
- func UpdateTeam(t *testing.T, id string, teamUpdate body.TeamUpdate, user ...string) body.TeamRead
- func UpdateUser(t *testing.T, id string, update body.UserUpdate) body.UserRead
- func UpdateVM(t *testing.T, id string, requestBody body.VmUpdate, user ...string) body.VmRead
- func WaitForDeploymentDeleted(t *testing.T, id string, callback func() bool)
- func WaitForDeploymentRunning(t *testing.T, id string, callback func(*body.DeploymentRead) bool)
- func WaitForJobFinished(t *testing.T, id string, callback func(*body.JobRead) bool)
- func WaitForSmRunning(t *testing.T, id string, callback func(read *body.SmRead) bool)
- func WaitForVmDeleted(t *testing.T, id string, callback func() bool)
- func WaitForVmRunning(t *testing.T, id string, callback func(*body.VmRead) bool)
- func WithAssumedFailedDeployment(t *testing.T, requestBody body.DeploymentCreate, user ...string)
- func WithAssumedFailedVM(t *testing.T, requestBody body.VmCreate)
- func WithDefaultGpuLease(t *testing.T, gpuGroupID string, userID ...string) body.GpuLeaseRead
- func WithDefaultVM(t *testing.T, userID ...string) body.VmRead
- func WithDeployment(t *testing.T, requestBody body.DeploymentCreate, user ...string) (body.DeploymentRead, string)
- func WithGpuLease(t *testing.T, requestBody body.GpuLeaseCreate, userID ...string) body.GpuLeaseRead
- func WithResourceMigration(t *testing.T, requestBody body.ResourceMigrationCreate, user ...string) body.ResourceMigrationRead
- func WithSshPublicKey(t *testing.T) string
- func WithTeam(t *testing.T, teamCreate body.TeamCreate, user ...string) body.TeamRead
- func WithVM(t *testing.T, requestBody body.VmCreate, user ...string) body.VmRead
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 CleanUpDeployment ¶
func CreateApiKey ¶
func CreateApiKey(t *testing.T, userID string, apiKeyCreate body.ApiKeyCreate)
func DeleteResourceMigration ¶
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 GetGpuGroup ¶
func GetGpuLease ¶
func GetNotification ¶
func GetResourceMigration ¶
func GetUserDiscovery ¶
func ListDeployments ¶
func ListGpuGroups ¶
func ListGpuLeases ¶
func ListNotifications ¶
func ListResourceMigrations ¶
func ListUsersDiscovery ¶
func ResourceMigrationExists ¶
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 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 UpdateUser ¶
func WaitForJobFinished ¶
func WaitForSmRunning ¶
func WaitForVmRunning ¶
func WithAssumedFailedDeployment ¶
func WithAssumedFailedDeployment(t *testing.T, requestBody body.DeploymentCreate, user ...string)
func WithDefaultGpuLease ¶
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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.