Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ require (
github.com/google/go-containerregistry v0.16.1
github.com/jedib0t/go-pretty/v6 v6.4.6
github.com/lithammer/fuzzysearch v1.1.8
github.com/rigdev/rig-go-api v0.0.0-20230928083412-68f9a89db6cc
github.com/rigdev/rig-go-api v0.0.0-20231002064256-71702c3a7379
github.com/rigdev/rig-go-sdk v0.0.0-20230918110956-2301fcd9da11
k8s.io/metrics v0.28.0
sigs.k8s.io/controller-runtime v0.16.1
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,8 @@ github.com/rigdev/rig-go-api v0.0.0-20230928082219-2938cafc0991 h1:DpktlJZVFH5L1
github.com/rigdev/rig-go-api v0.0.0-20230928082219-2938cafc0991/go.mod h1:fraLUk9ekeQvvu5bOmUmpNAsBqG2QzqWU9wzGbPwB/w=
github.com/rigdev/rig-go-api v0.0.0-20230928083412-68f9a89db6cc h1:7J5GkZvHlO2OqFgHMecQ6x+eXr7cN4k5nSfqFIvUSnQ=
github.com/rigdev/rig-go-api v0.0.0-20230928083412-68f9a89db6cc/go.mod h1:fraLUk9ekeQvvu5bOmUmpNAsBqG2QzqWU9wzGbPwB/w=
github.com/rigdev/rig-go-api v0.0.0-20231002064256-71702c3a7379 h1:dsaTYx5/TATc19CW4m/lWAmrdudSR7B4LbYRqjEXrX8=
github.com/rigdev/rig-go-api v0.0.0-20231002064256-71702c3a7379/go.mod h1:fraLUk9ekeQvvu5bOmUmpNAsBqG2QzqWU9wzGbPwB/w=
github.com/rigdev/rig-go-sdk v0.0.0-20230918110956-2301fcd9da11 h1:cdW4OYPgzr+iMzsqPCLDTRa37rpTRD2OUxhbPApzHss=
github.com/rigdev/rig-go-sdk v0.0.0-20230918110956-2301fcd9da11/go.mod h1:CtN3BUZJfONEGNuVnoewrKHGSHF/XS5OsHxzkA9ToI4=
github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
Expand Down
5 changes: 5 additions & 0 deletions internal/handler/api/capsule/list_instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/bufbuild/connect-go"
"github.com/rigdev/rig-go-api/api/v1/capsule"
"github.com/rigdev/rig/pkg/errors"
"github.com/rigdev/rig/pkg/iterator"
)

Expand All @@ -26,3 +27,7 @@ func (h *Handler) ListInstances(ctx context.Context, req *connect.Request[capsul
},
}, nil
}

func (h *Handler) ListInstanceStatuses(ctx context.Context, req *connect.Request[capsule.ListInstanceStatusesRequest]) (*connect.Response[capsule.ListInstanceStatusesResponse], error) {
return nil, errors.UnimplementedErrorf("not implemented")
}
2 changes: 1 addition & 1 deletion proto/rig/api/v1/capsule/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ service Service {
// Get metrics for a capsule
rpc CapsuleMetrics(CapsuleMetricsRequest) returns (CapsuleMetricsResponse) {}
// Lists all instance statuses for the capsule.
rpc ListInstanceStatuses(ListInstancesRequest) returns (ListInstancesResponse) {}
rpc ListInstanceStatuses(ListInstanceStatusesRequest) returns (ListInstanceStatusesResponse) {}
}

message CreateRequest {
Expand Down