Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4836 from hashicorp/f-add-ons-serverstate
Browse files Browse the repository at this point in the history
Server state: Add Ons & Add On definitions
  • Loading branch information
paladin-devops authored Aug 11, 2023
2 parents d764a26 + 21c8e31 commit eda1ec3
Show file tree
Hide file tree
Showing 10 changed files with 7,310 additions and 6,550 deletions.
53 changes: 53 additions & 0 deletions internal/server/boltdbstate/add_on.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package boltdbstate

import (
"context"

"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

pb "github.com/hashicorp/waypoint/pkg/server/gen"
)

func (s *State) AddOnDefinitionPut(ctx context.Context, definition *pb.AddOnDefinition) (*pb.AddOnDefinition, error) {
return nil, status.Errorf(codes.Unimplemented, "Add On Unimplemented")
}

func (s *State) AddOnDefinitionUpdate(ctx context.Context, definition *pb.AddOnDefinition, existingDefinition *pb.Ref_AddOnDefinition) (*pb.AddOnDefinition, error) {
return nil, status.Errorf(codes.Unimplemented, "Add On Unimplemented")
}

func (s *State) AddOnDefinitionGet(ctx context.Context, definition *pb.Ref_AddOnDefinition) (*pb.AddOnDefinition, error) {
return nil, status.Errorf(codes.Unimplemented, "Add On Unimplemented")
}

func (s *State) AddOnDefinitionDelete(ctx context.Context, definition *pb.Ref_AddOnDefinition) error {
return status.Errorf(codes.Unimplemented, "Add On Unimplemented")
}

func (s *State) AddOnDefinitionList(ctx context.Context, request *pb.ListAddOnDefinitionsRequest) ([]*pb.AddOnDefinition, *pb.PaginationResponse, error) {
return nil, nil, status.Errorf(codes.Unimplemented, "Add On Unimplemented")
}

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) {
return nil, status.Errorf(codes.Unimplemented, "Add On Unimplemented")
}

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

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

func (s *State) AddOnList(ctx context.Context, request *pb.ListAddOnsRequest) ([]*pb.AddOn, *pb.PaginationResponse, error) {
return nil, nil, status.Errorf(codes.Unimplemented, "Add On Unimplemented")
}
2 changes: 2 additions & 0 deletions internal/server/boltdbstate/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ func TestImpl(t *testing.T) {
// Tests for features that have not been implemented in OSS
unimplementedTests := []string{
"TestProjectTemplateFeatures",
"TestAddOnFeatures",
"TestAddOnPagination",
}

statetest.Test(t, func(t *testing.T) serverstate.Interface {
Expand Down
Loading

0 comments on commit eda1ec3

Please sign in to comment.