Documentation
¶
Index ¶
- Constants
- func NewPluginManagementServiceHandler(svc PluginManagementServiceHandler, opts ...rpc.HandlerOption) (string, http.Handler)
- func NewPluginServiceHandler(svc PluginServiceHandler, opts ...rpc.HandlerOption) (string, http.Handler)
- func NewRegisterServiceHandler(svc RegisterServiceHandler, opts ...rpc.HandlerOption) (string, http.Handler)
- type PluginManagementServiceClient
- type PluginManagementServiceHandler
- type PluginServiceClient
- type PluginServiceHandler
- type RegisterServiceClient
- type RegisterServiceHandler
- type UnimplementedPluginManagementServiceHandler
- func (UnimplementedPluginManagementServiceHandler) DisablePlugin(context.Context, *v1.DisablePluginRequest) (*v1.DisablePluginResponse, error)
- func (UnimplementedPluginManagementServiceHandler) EnablePlugin(context.Context, *v1.EnablePluginRequest) (*v1.EnablePluginResponse, error)
- func (UnimplementedPluginManagementServiceHandler) ListPlugins(context.Context, *v1.ListPluginsRequest) (*v1.ListPluginsResponse, error)
- type UnimplementedPluginServiceHandler
- type UnimplementedRegisterServiceHandler
Constants ¶
const ( // RegisterServiceName is the fully-qualified name of the RegisterService service. RegisterServiceName = "plugins.v1.RegisterService" // PluginServiceName is the fully-qualified name of the PluginService service. PluginServiceName = "plugins.v1.PluginService" )
const ( // RegisterServiceRegisterPluginProcedure is the fully-qualified name of the RegisterService's RegisterPlugin RPC. RegisterServiceRegisterPluginProcedure = "/plugins.v1.RegisterService/RegisterPlugin" // PluginServiceShutdownProcedure is the fully-qualified name of the PluginService's Shutdown RPC. PluginServiceShutdownProcedure = "/plugins.v1.PluginService/Shutdown" )
const ( // PluginManagementServiceListPluginsProcedure is the fully-qualified name of the PluginManagementService's ListPlugins RPC. PluginManagementServiceListPluginsProcedure = "/plugins.v1.PluginManagementService/ListPlugins" // PluginManagementServiceEnablePluginProcedure is the fully-qualified name of the PluginManagementService's EnablePlugin RPC. PluginManagementServiceEnablePluginProcedure = "/plugins.v1.PluginManagementService/EnablePlugin" // PluginManagementServiceDisablePluginProcedure is the fully-qualified name of the PluginManagementService's DisablePlugin RPC. PluginManagementServiceDisablePluginProcedure = "/plugins.v1.PluginManagementService/DisablePlugin" )
const (
// PluginManagementServiceName is the fully-qualified name of the PluginManagementService service.
PluginManagementServiceName = "plugins.v1.PluginManagementService"
)
Variables ¶
This section is empty.
Functions ¶
func NewPluginManagementServiceHandler ¶
func NewPluginManagementServiceHandler(svc PluginManagementServiceHandler, opts ...rpc.HandlerOption) (string, http.Handler)
NewPluginManagementServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler, and the handler itself.
func NewPluginServiceHandler ¶
func NewPluginServiceHandler(svc PluginServiceHandler, opts ...rpc.HandlerOption) (string, http.Handler)
NewPluginServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler, and the handler itself.
func NewRegisterServiceHandler ¶
func NewRegisterServiceHandler(svc RegisterServiceHandler, opts ...rpc.HandlerOption) (string, http.Handler)
NewRegisterServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler, and the handler itself.
Types ¶
type PluginManagementServiceClient ¶
type PluginManagementServiceClient interface {
// ListPlugins returns all plugins registered with the engine.
ListPlugins(context.Context, *v1.ListPluginsRequest) (*v1.ListPluginsResponse, error)
// EnablePlugin enables a plugin by name.
EnablePlugin(context.Context, *v1.EnablePluginRequest) (*v1.EnablePluginResponse, error)
// DisablePlugin disables a plugin by name.
DisablePlugin(context.Context, *v1.DisablePluginRequest) (*v1.DisablePluginResponse, error)
}
PluginManagementServiceClient is a client for the plugins.v1.PluginManagementService service.
func NewPluginManagementServiceClient ¶
func NewPluginManagementServiceClient(httpClient rpc.HTTPClient, baseURL string, opts ...rpc.ClientOption) PluginManagementServiceClient
NewPluginManagementServiceClient constructs a client for the plugins.v1.PluginManagementService service at baseURL, for example "http://unix".
type PluginManagementServiceHandler ¶
type PluginManagementServiceHandler interface {
// ListPlugins returns all plugins registered with the engine.
ListPlugins(context.Context, *v1.ListPluginsRequest) (*v1.ListPluginsResponse, error)
// EnablePlugin enables a plugin by name.
EnablePlugin(context.Context, *v1.EnablePluginRequest) (*v1.EnablePluginResponse, error)
// DisablePlugin disables a plugin by name.
DisablePlugin(context.Context, *v1.DisablePluginRequest) (*v1.DisablePluginResponse, error)
}
PluginManagementServiceHandler is an implementation of the plugins.v1.PluginManagementService service.
type PluginServiceClient ¶
type PluginServiceClient interface {
// Shutdown a plugin (let it know the runtime is going down).
Shutdown(context.Context, *v1.ShutdownRequest) (*v1.ShutdownResponse, error)
}
PluginServiceClient is a client for the plugins.v1.PluginService service.
func NewPluginServiceClient ¶
func NewPluginServiceClient(httpClient rpc.HTTPClient, baseURL string, opts ...rpc.ClientOption) PluginServiceClient
NewPluginServiceClient constructs a client for the plugins.v1.PluginService service at baseURL, for example "http://unix".
type PluginServiceHandler ¶
type PluginServiceHandler interface {
// Shutdown a plugin (let it know the runtime is going down).
Shutdown(context.Context, *v1.ShutdownRequest) (*v1.ShutdownResponse, error)
}
PluginServiceHandler is an implementation of the plugins.v1.PluginService service.
type RegisterServiceClient ¶
type RegisterServiceClient interface {
// RegisterPlugin registers the plugin with the engine.
RegisterPlugin(context.Context, *v1.RegisterPluginRequest) (*v1.RegisterPluginResponse, error)
}
RegisterServiceClient is a client for the plugins.v1.RegisterService service.
func NewRegisterServiceClient ¶
func NewRegisterServiceClient(httpClient rpc.HTTPClient, baseURL string, opts ...rpc.ClientOption) RegisterServiceClient
NewRegisterServiceClient constructs a client for the plugins.v1.RegisterService service at baseURL, for example "http://unix".
type RegisterServiceHandler ¶
type RegisterServiceHandler interface {
// RegisterPlugin registers the plugin with the engine.
RegisterPlugin(context.Context, *v1.RegisterPluginRequest) (*v1.RegisterPluginResponse, error)
}
RegisterServiceHandler is an implementation of the plugins.v1.RegisterService service.
type UnimplementedPluginManagementServiceHandler ¶
type UnimplementedPluginManagementServiceHandler struct{}
UnimplementedPluginManagementServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedPluginManagementServiceHandler) DisablePlugin ¶
func (UnimplementedPluginManagementServiceHandler) DisablePlugin(context.Context, *v1.DisablePluginRequest) (*v1.DisablePluginResponse, error)
func (UnimplementedPluginManagementServiceHandler) EnablePlugin ¶
func (UnimplementedPluginManagementServiceHandler) EnablePlugin(context.Context, *v1.EnablePluginRequest) (*v1.EnablePluginResponse, error)
func (UnimplementedPluginManagementServiceHandler) ListPlugins ¶
func (UnimplementedPluginManagementServiceHandler) ListPlugins(context.Context, *v1.ListPluginsRequest) (*v1.ListPluginsResponse, error)
type UnimplementedPluginServiceHandler ¶
type UnimplementedPluginServiceHandler struct{}
UnimplementedPluginServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedPluginServiceHandler) Shutdown ¶
func (UnimplementedPluginServiceHandler) Shutdown(context.Context, *v1.ShutdownRequest) (*v1.ShutdownResponse, error)
type UnimplementedRegisterServiceHandler ¶
type UnimplementedRegisterServiceHandler struct{}
UnimplementedRegisterServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedRegisterServiceHandler) RegisterPlugin ¶
func (UnimplementedRegisterServiceHandler) RegisterPlugin(context.Context, *v1.RegisterPluginRequest) (*v1.RegisterPluginResponse, error)