Fix typos related to Delete Item Action plugin type (#6333)

Signed-off-by: Nutrymaco <efim7299@icloud.com>
This commit is contained in:
Efim Smykov
2023-06-09 15:44:03 +08:00
committed by GitHub
parent d90ca5928c
commit aed8c8ec1b
3 changed files with 16 additions and 6 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ import (
proto "github.com/vmware-tanzu/velero/pkg/plugin/generated"
)
// RestoreItemActionPlugin is an implementation of go-plugin's Plugin
// DeleteItemActionPlugin is an implementation of go-plugin's Plugin
// interface with support for gRPC for the restore/ItemAction
// interface.
type DeleteItemActionPlugin struct {
@@ -33,7 +33,7 @@ type DeleteItemActionPlugin struct {
*common.PluginBase
}
// GRPCClient returns a RestoreItemAction gRPC client.
// GRPCClient returns a DeleteItemAction gRPC client.
func (p *DeleteItemActionPlugin) GRPCClient(_ context.Context, _ *plugin.GRPCBroker, clientConn *grpc.ClientConn) (interface{}, error) {
return common.NewClientDispenser(p.ClientLogger, clientConn, newDeleteItemActionGRPCClient), nil
}
@@ -37,7 +37,7 @@ func NewDeleteItemActionPlugin(options ...common.PluginOption) *DeleteItemAction
}
}
// DeleteItemActionGRPCClient implements the backup/ItemAction interface and uses a
// DeleteItemActionGRPCClient implements the DeleteItemAction interface and uses a
// gRPC client to make calls to the plugin server.
type DeleteItemActionGRPCClient struct {
*common.ClientBase