agent

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: NCSA Imports: 24 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPredictor

func AddPredictor(framework dl.FrameworkManifest, pred predictor.Predictor) error

func GetPredictor

func GetPredictor(framework dl.FrameworkManifest) (predictor.Predictor, error)

func GetPredictors added in v0.3.0

func GetPredictors(framework dl.FrameworkManifest) ([]predictor.Predictor, error)

func PredictorFrameworks added in v0.2.19

func PredictorFrameworks() []dl.FrameworkManifest

func Predictors

func Predictors() []string

func UploadDir

func UploadDir() (string, error)

Types

type Option

type Option func(o *Options) *Options

func WithHost

func WithHost(host string) Option

func WithPort

func WithPort(port int) Option

func WithPortString added in v0.2.16

func WithPortString(port string) Option

type Options

type Options struct {
	// contains filtered or unexported fields
}

func NewOptions

func NewOptions(opts ...Option) (*Options, error)

type PredictorLifetime added in v0.3.0

type PredictorLifetime struct {
	Predictor      *predictor.Predictor
	ReferenceCount uint64
}

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func (*Registry) FrameworkAgents

func (c *Registry) FrameworkAgents(context.Context, *dl.FrameworkRequest) (*dl.Agents, error)

func (*Registry) FrameworkManifests

func (*Registry) ModelAgents

func (c *Registry) ModelAgents(context.Context, *dl.ModelRequest) (*dl.Agents, error)

func (*Registry) ModelManifests

func (*Registry) PublishInPredictor added in v0.2.16

func (b *Registry) PublishInPredictor(host, prefix string) error

func (*Registry) PublishInRegistery

func (c *Registry) PublishInRegistery() error

Jump to

Keyboard shortcuts

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