Documentation ¶
Index ¶
- type ItemBlockActionGRPCClient
- type ItemBlockActionGRPCServer
- func (s *ItemBlockActionGRPCServer) AppliesTo(ctx context.Context, req *protoibav1.ItemBlockActionAppliesToRequest) (response *protoibav1.ItemBlockActionAppliesToResponse, err error)
- func (s *ItemBlockActionGRPCServer) GetRelatedItems(ctx context.Context, req *protoibav1.ItemBlockActionGetRelatedItemsRequest) (response *protoibav1.ItemBlockActionGetRelatedItemsResponse, err error)
- func (s *ItemBlockActionGRPCServer) Name() string
- type ItemBlockActionPlugin
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 (c *ItemBlockActionGRPCClient) AppliesTo() (velero.ResourceSelector, error)
func (*ItemBlockActionGRPCClient) GetRelatedItems ¶
func (c *ItemBlockActionGRPCClient) GetRelatedItems(item runtime.Unstructured, backup *api.Backup) ([]velero.ResourceIdentifier, error)
func (*ItemBlockActionGRPCClient) Name ¶
func (c *ItemBlockActionGRPCClient) Name() string
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 (s *ItemBlockActionGRPCServer) AppliesTo( ctx context.Context, req *protoibav1.ItemBlockActionAppliesToRequest) ( response *protoibav1.ItemBlockActionAppliesToResponse, err error)
func (*ItemBlockActionGRPCServer) GetRelatedItems ¶
func (s *ItemBlockActionGRPCServer) GetRelatedItems( ctx context.Context, req *protoibav1.ItemBlockActionGetRelatedItemsRequest) (response *protoibav1.ItemBlockActionGetRelatedItemsResponse, err error)
func (*ItemBlockActionGRPCServer) Name ¶
func (s *ItemBlockActionGRPCServer) Name() string
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.