agent

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: 27 Imported by: 0

Documentation

Overview

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

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

Index

Constants

View Source
const (
	RequestSessionName = "RequestSession"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	Id string

	Hostname  string
	JuicePath string

	Gpus gpu.GpuSet

	Server *server.Server

	GpuMetricsProvider *gpuMetrics.Provider
	// contains filtered or unexported fields
}

func NewAgent

func NewAgent(tlsConfig *tls.Config) (*Agent, error)

func (*Agent) Cancel

func (agent *Agent) Cancel()

func (*Agent) Ctx

func (agent *Agent) Ctx() context.Context

func (*Agent) GetSession

func (agent *Agent) GetSession(id string) (*session.Session, error)

func (*Agent) Go

func (agent *Agent) Go(task task.Task)

func (*Agent) GoFn

func (agent *Agent) GoFn(task task.TaskFn)

func (*Agent) MaxSessions

func (agent *Agent) MaxSessions() int

func (*Agent) RegisterSession

func (agent *Agent) RegisterSession(sessionToRegister api.Session) error

func (*Agent) Sessions

func (agent *Agent) Sessions() []api.Session

func (*Agent) Start

func (agent *Agent) Start()

func (*Agent) StartSession

func (agent *Agent) StartSession(requestSession api.RequestSession) (*session.Session, error)

func (*Agent) Wait

func (agent *Agent) Wait() error

Directories

Path Synopsis
* Copyright (c) 2023 Juice Technologies, Inc.
* Copyright (c) 2023 Juice Technologies, Inc.
gpu
* Copyright (c) 2023 Juice Technologies, Inc.
* Copyright (c) 2023 Juice Technologies, Inc.
metrics
* Copyright (c) 2023 Juice Technologies, Inc.
* Copyright (c) 2023 Juice Technologies, Inc.
* Copyright (c) 2023 Juice Technologies, Inc.
* Copyright (c) 2023 Juice Technologies, Inc.
* Copyright (c) 2023 Juice Technologies, Inc.
* Copyright (c) 2023 Juice Technologies, Inc.
windows
* Copyright (c) 2023 Juice Technologies, Inc.
* Copyright (c) 2023 Juice Technologies, Inc.

Jump to

Keyboard shortcuts

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