dockerized

package
v0.0.0-...-351bd47 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	DockerHost: "tcp://127.0.0.1:2376",
}

Functions

func ListActiveAgentsHandler

func ListActiveAgentsHandler(s *Supervisor) http.HandlerFunc

ListActiveAgentsHandler lists agents that are currently running.

func ListAgentsHandler

func ListAgentsHandler(s *Supervisor) http.HandlerFunc

ListAgentsHandler lists AI agents.

func PullDockerHubAgentHandler

func PullDockerHubAgentHandler(s *Supervisor) http.HandlerFunc

PullDockerHubAgentHandler pulls the Docker image named |image| from DockerHub.

func ShowAgentInfoHandler

func ShowAgentInfoHandler(s *Supervisor) http.HandlerFunc

ShowImageHandler shows information about an AI Agent

func UploadImageHandler

func UploadImageHandler(s *Supervisor) http.HandlerFunc

UploadImageHandler ensures that the Agent image responds to the PING command.

func ValidateAgentHandler

func ValidateAgentHandler(s *Supervisor) http.HandlerFunc

ValidateAgentHandler ensures that the Agent image responds to the PING command.

Types

type AgentInfo

type AgentInfo struct {
	Owner  string
	Taunts []string
}

type Config

type Config struct {
	DockerHost string // address of docker daemon host
	TLS        *TLSConfig
}

type Supervisor

type Supervisor struct {
	Client *docker.Client
}

Supervisor manages AI agents running in Docker containers

func NewSupervisor

func NewSupervisor(config Config) (*Supervisor, error)

func (*Supervisor) ValidateImage

func (s *Supervisor) ValidateImage(image string) error

type TLSConfig

type TLSConfig struct {
	KeyPath           string
	CertPath          string
	CertAuthorityPath string
}

paths to TLS config files

Jump to

Keyboard shortcuts

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