Skip to content

Commit b45bbf3

Browse files
committed
fix lint line-length violations
1 parent 001a2aa commit b45bbf3

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

pkg/connectorbuilder/actions.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,13 @@ type CustomActionManager interface {
2828
GetActionSchema(ctx context.Context, name string) (*v2.BatonActionSchema, annotations.Annotations, error)
2929

3030
// InvokeAction invokes an action. If resourceTypeID is set, invokes a resource-scoped action.
31-
InvokeAction(ctx context.Context, name string, resourceTypeID string, args *structpb.Struct, encryptionConfigs []*v2.EncryptionConfig) (string, v2.BatonActionStatus, *structpb.Struct, annotations.Annotations, error)
31+
InvokeAction(
32+
ctx context.Context,
33+
name string,
34+
resourceTypeID string,
35+
args *structpb.Struct,
36+
encryptionConfigs []*v2.EncryptionConfig,
37+
) (string, v2.BatonActionStatus, *structpb.Struct, annotations.Annotations, error)
3238

3339
// GetActionStatus returns the status of an outstanding action.
3440
GetActionStatus(ctx context.Context, id string) (v2.BatonActionStatus, string, *structpb.Struct, annotations.Annotations, error)

pkg/connectorbuilder/connectorbuilder_test.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,13 @@ func (t *testCustomActionManager) GetActionSchema(ctx context.Context, name stri
503503
}.Build(), annotations.Annotations{}, nil
504504
}
505505

506-
func (t *testCustomActionManager) InvokeAction(ctx context.Context, name string, resourceTypeID string, args *structpb.Struct, encryptionConfigs []*v2.EncryptionConfig) (string, v2.BatonActionStatus, *structpb.Struct, annotations.Annotations, error) {
506+
func (t *testCustomActionManager) InvokeAction(
507+
ctx context.Context,
508+
name string,
509+
resourceTypeID string,
510+
args *structpb.Struct,
511+
encryptionConfigs []*v2.EncryptionConfig,
512+
) (string, v2.BatonActionStatus, *structpb.Struct, annotations.Annotations, error) {
507513
return "action-id-123", v2.BatonActionStatus_BATON_ACTION_STATUS_COMPLETE, &structpb.Struct{}, annotations.Annotations{}, nil
508514
}
509515

0 commit comments

Comments
 (0)