plugin

package module
v0.0.0-...-c26f926 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: MIT Imports: 17 Imported by: 7

Documentation

Index

Constants

View Source
const ProtocolV1 = "v1"

Variables

This section is empty.

Functions

func DefaultRegistryApplyCallback

func DefaultRegistryApplyCallback(stream apiv1.DeployPluginService_ApplyServer) func(*apiv1.ApplyAction)

func DefaultRegistryApplyDNSCallback

func DefaultRegistryApplyDNSCallback(stream apiv1.DNSPluginService_ApplyDNSServer) func(*apiv1.ApplyAction)

func DefaultRegistryApplyMonitoringCallback

func DefaultRegistryApplyMonitoringCallback(stream apiv1.MonitoringPluginService_ApplyMonitoringServer) func(*apiv1.ApplyAction)

func Serve

func Serve(handler BasicPluginHandler, opts ...ServerOption) error

Types

type Cleanup

type Cleanup interface {
	Cleanup() error
}

type CommandPluginHandler

type CommandPluginHandler interface {
	apiv1.CommandPluginServiceServer
}

type DeployHookHandler

type DeployHookHandler interface {
	apiv1.DeployHookServiceServer
}

type Handshake

type Handshake struct {
	Protocol string `json:"protocol"`
	Addr     string `json:"addr"`
}

type LockingPluginHandler

type LockingPluginHandler interface {
	apiv1.LockingPluginServiceServer
}

type LogsPluginHandler

type LogsPluginHandler interface {
	apiv1.LogsPluginServiceServer
}

type RegistryOptions

type RegistryOptions struct {
	AllowDuplicates bool
}

type RunPluginHandler

type RunPluginHandler interface {
	apiv1.RunPluginServiceServer
}

type SecretPluginHandler

type SecretPluginHandler interface {
	apiv1.SecretPluginServiceServer
}

type Server

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

type ServerOption

type ServerOption func(*Server)

func WithRegistryAllowDuplicates

func WithRegistryAllowDuplicates(b bool) ServerOption

type StatePluginHandler

type StatePluginHandler interface {
	apiv1.StatePluginServiceServer
}

Directories

Path Synopsis
gen
Heavily inspired by approach in terraform providers (google, aws etc).
Heavily inspired by approach in terraform providers (google, aws etc).

Jump to

Keyboard shortcuts

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