Skip to content

Commit

Permalink
addons: Update state interface for add-on updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
paladin-devops committed Aug 10, 2023
1 parent 6f2013a commit 79a1954
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/boltdbstate/add_on.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (s *State) AddOnPut(ctx context.Context, addOn *pb.AddOn) (*pb.AddOn, error
return nil, status.Errorf(codes.Unimplemented, "Add On Unimplemented")
}

func (s *State) AddOnUpdate(ctx context.Context, addOn *pb.AddOn) (*pb.AddOn, error) {
func (s *State) AddOnUpdate(ctx context.Context, addOn *pb.AddOn, existingAddOn *pb.Ref_AddOn) (*pb.AddOn, error) {
return nil, status.Errorf(codes.Unimplemented, "Add On Unimplemented")
}

Expand Down
1 change: 1 addition & 0 deletions pkg/serverstate/serverstate.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ type Interface interface {

AddOnPut(ctx context.Context, addOn *pb.AddOn) (*pb.AddOn, error)
AddOnGet(ctx context.Context, addOn *pb.Ref_AddOn) (*pb.AddOn, error)
AddOnUpdate(ctx context.Context, addOn *pb.AddOn, existingAddOn *pb.Ref_AddOn) (*pb.AddOn, error)
AddOnDelete(ctx context.Context, addOn *pb.Ref_AddOn) error
AddOnList(ctx context.Context, request *pb.ListAddOnsRequest) ([]*pb.AddOn, *pb.PaginationResponse, error)
}
Expand Down

0 comments on commit 79a1954

Please sign in to comment.