api

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 0 Imported by: 1

Documentation

Overview

* Copyright (c) 2023 Juice Technologies, Inc. All Rights Reserved.

Index

Constants

View Source
const (
	StateQueued int = iota
	StateAssigned
	StateActive
	StateInactive
	StateClosed
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent added in v0.1.1

type Agent struct {
	AgentBase

	Id string `json:"id"`

	State int `json:"state"`

	MaxSessions int `json:"maxSessions"`

	Gpus []Gpu `json:"gpus"`

	Tags map[string]string `json:"tags,omitempty"`

	Taints map[string]string `json:"taints,omitempty"`

	Sessions []Session `json:"sessions,omitempty"`
}

type AgentBase added in v0.1.1

type AgentBase struct {
	Version string `json:"version"`

	Hostname string `json:"hostname"`

	Address string `json:"address"`
}

type Controller added in v0.1.1

type Controller struct {
	AgentBase
}

type Gpu

type Gpu struct {
	Index int `json:"index"`

	Name string `json:"name"`

	VendorId uint32 `json:"vendorId"`

	DeviceId uint32 `json:"deviceId"`

	Vram uint64 `json:"vram,omitempty"`
}

type GpuRequirements

type GpuRequirements struct {
	VendorId uint32 `json:"vendorId,omitempty"`

	DeviceId uint32 `json:"deviceId,omitempty"`

	VramRequired uint64 `json:"vramRequired,omitempty"`
}

type RequestSession added in v0.1.1

type RequestSession struct {
	Version string `json:"version"`

	Gpus []GpuRequirements `json:"gpus"`
}

type Session

type Session struct {
	Id string `json:"id"`

	State int `json:"state"`

	Address string `json:"address,omitempty"`

	Version string `json:"version,omitempty"`

	Gpus []Gpu `json:"gpus,omitempty"`
}

Jump to

Keyboard shortcuts

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