registry

package
v0.29.4 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChoriaPlugin

func ChoriaPlugin() plugin.Pluggable

ChoriaPlugin creates the choria plugin hooks

func New

func New(mgr server.AgentManager) (agents.Agent, error)

New creates a new registry agent

Types

type DDLRequest

type DDLRequest struct {
	Name       string `json:"name"`
	PluginType string `json:"plugin_type" validate:"enum=agent"`
	Format     string `json:"format" validate:"enum=ddl,json"`
}

DDLRequest is a request for a DDL file for plugin type Type and name Name

type DDLResponse

type DDLResponse struct {
	Name       string `json:"name"`
	PluginType string `json:"plugin_type"`
	Version    string `json:"version"`
	DDL        string `json:"ddl"`
}

DDLResponse is the response to a DDL request

type NamesRequest added in v0.25.0

type NamesRequest struct {
	PluginType string `json:"plugin_type" validate:"enum=agent"`
}

type NamesResponse added in v0.25.0

type NamesResponse struct {
	Names      []string `json:"names"`
	PluginType string   `json:"plugin_type"`
}

Jump to

Keyboard shortcuts

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