v1

package
v0.0.0-...-c1b1270 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ItemBlockActionGRPCClient

type ItemBlockActionGRPCClient struct {
	*common.ClientBase
	// contains filtered or unexported fields
}

ItemBlockActionGRPCClient implements the backup/ItemAction interface and uses a gRPC client to make calls to the plugin server.

func (*ItemBlockActionGRPCClient) AppliesTo

func (*ItemBlockActionGRPCClient) GetRelatedItems

func (c *ItemBlockActionGRPCClient) GetRelatedItems(item runtime.Unstructured, backup *api.Backup) ([]velero.ResourceIdentifier, error)

func (*ItemBlockActionGRPCClient) Name

This shouldn't be called on the GRPC client since the RestartableItemBlockAction won't delegate this method

type ItemBlockActionGRPCServer

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

ItemBlockActionGRPCServer implements the proto-generated ItemBlockAction interface, and accepts gRPC calls and forwards them to an implementation of the pluggable interface.

func (*ItemBlockActionGRPCServer) AppliesTo

func (*ItemBlockActionGRPCServer) Name

This shouldn't be called on the GRPC server since the server won't ever receive this request, as the RestartableItemBlockAction in Velero won't delegate this to the server

type ItemBlockActionPlugin

type ItemBlockActionPlugin struct {
	plugin.NetRPCUnsupportedPlugin
	*common.PluginBase
}

ItemBlockActionPlugin is an implementation of go-plugin's Plugin interface with support for gRPC for the backup/ItemAction interface.

func NewItemBlockActionPlugin

func NewItemBlockActionPlugin(options ...common.PluginOption) *ItemBlockActionPlugin

NewItemBlockActionPlugin constructs a ItemBlockActionPlugin.

func (*ItemBlockActionPlugin) GRPCClient

func (p *ItemBlockActionPlugin) GRPCClient(_ context.Context, _ *plugin.GRPCBroker, clientConn *grpc.ClientConn) (interface{}, error)

GRPCClient returns a clientDispenser for ItemBlockAction gRPC clients.

func (*ItemBlockActionPlugin) GRPCServer

func (p *ItemBlockActionPlugin) GRPCServer(_ *plugin.GRPCBroker, server *grpc.Server) error

GRPCServer registers a ItemBlockAction gRPC server.

Jump to

Keyboard shortcuts

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