Skip to content

Commit e20b883

Browse files
authored
feat(controlplane): list available extensions in the server (#149)
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
1 parent 400fd77 commit e20b883

File tree

18 files changed

+1684
-599
lines changed

18 files changed

+1684
-599
lines changed

app/cli/internal/action/integration_delete.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func NewIntegrationDelete(cfg *ActionsOpts) *IntegrationDelete {
3131

3232
func (action *IntegrationDelete) Run(id string) error {
3333
client := pb.NewIntegrationsServiceClient(action.cfg.CPConnection)
34-
if _, err := client.Delete(context.Background(), &pb.IntegrationsServiceDeleteRequest{Id: id}); err != nil {
34+
if _, err := client.Deregister(context.Background(), &pb.IntegrationsServiceDeregisterRequest{Id: id}); err != nil {
3535
return err
3636
}
3737

app/cli/internal/action/integration_list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func NewIntegrationList(cfg *ActionsOpts) *IntegrationList {
4444

4545
func (action *IntegrationList) Run() ([]*IntegrationItem, error) {
4646
client := pb.NewIntegrationsServiceClient(action.cfg.CPConnection)
47-
resp, err := client.List(context.Background(), &pb.IntegrationsServiceListRequest{})
47+
resp, err := client.ListRegistrations(context.Background(), &pb.IntegrationsServiceListRegistrationsRequest{})
4848
if err != nil {
4949
return nil, err
5050
}
@@ -62,7 +62,7 @@ func (action *IntegrationList) Run() ([]*IntegrationItem, error) {
6262
return result, nil
6363
}
6464

65-
func pbIntegrationItemToAction(in *pb.IntegrationItem) (*IntegrationItem, error) {
65+
func pbIntegrationItemToAction(in *pb.RegisteredIntegrationItem) (*IntegrationItem, error) {
6666
if in == nil {
6767
return nil, errors.New("nil input")
6868
}

0 commit comments

Comments
 (0)