server

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Disable

func Disable(ctx context.Context, docker docker.Client, serverNames []string) error

func Enable

func Enable(ctx context.Context, docker docker.Client, serverNames []string) error

func List

func List(ctx context.Context, docker docker.Client) ([]string, error)

Types

type Info

type Info struct {
	Tools  []Tool `json:"tools"`
	Readme string `json:"readme"`
}

func Inspect

func Inspect(ctx context.Context, dockerClient docker.Client, serverName string) (Info, error)

func (Info) ToJSON

func (s Info) ToJSON() ([]byte, error)

type Tool added in v0.20.0

type Tool struct {
	Name        string                     `json:"name"`
	Description string                     `json:"description"`
	Arguments   []ToolArgument             `json:"arguments,omitempty"`
	Annotations map[string]json.RawMessage `json:"annotations,omitempty"`
	Enabled     bool                       `json:"enabled"`
}

type ToolArgument added in v0.20.0

type ToolArgument struct {
	Name string `json:"name"`
	Type string `json:"type"`
	Desc string `json:"desc"`
}

Jump to

Keyboard shortcuts

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