Fix compilation of command
This commit is contained in:
1 parent
19f74a8247
commit
6254e18698
5 files changed
+31
-30
No files matched your search
@@ -3,21 +3,21 @@ package host_catalogs
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/hashicorp/watchtower/internal/gen/controller/api"
|
||||
"github.com/hashicorp/watchtower/internal/gen/controller/api/services"
|
||||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
)
|
||||
|
||||
type Service struct {
|
||||
*api.UnimplementedHostCatalogServiceServer
|
||||
*services.UnimplementedHostCatalogServiceServer
|
||||
}
|
||||
|
||||
func (s Service) ListHostCatalogs(ctx context.Context, req *api.ListHostCatalogsRequest) (*api.ListHostCatalogsResponse, error) {
|
||||
func (s Service) ListHostCatalogs(ctx context.Context, req *services.ListHostCatalogsRequest) (*services.ListHostCatalogsResponse, error) {
|
||||
return nil, status.Errorf(codes.NotFound, "Org %q not found", req.OrgId)
|
||||
}
|
||||
|
||||
func (s Service) DeleteHostCatalog(ctx context.Context, req *api.DeleteHostCatalogRequest) (*api.DeleteHostCatalogResponse, error) {
|
||||
return &api.DeleteHostCatalogResponse{Existed: false}, nil
|
||||
func (s Service) DeleteHostCatalog(ctx context.Context, req *services.DeleteHostCatalogRequest) (*services.DeleteHostCatalogResponse, error) {
|
||||
return &services.DeleteHostCatalogResponse{Existed: false}, nil
|
||||
}
|
||||
|
||||
var _ api.HostCatalogServiceServer = &Service{}
|
||||
var _ services.HostCatalogServiceServer = &Service{}
|
||||
@@ -3,21 +3,21 @@ package host_sets
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/hashicorp/watchtower/internal/gen/controller/api"
|
||||
"github.com/hashicorp/watchtower/internal/gen/controller/api/services"
|
||||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
)
|
||||
|
||||
type Service struct {
|
||||
*api.UnimplementedHostSetServiceServer
|
||||
*services.UnimplementedHostSetServiceServer
|
||||
}
|
||||
|
||||
func (s Service) ListHostSets(ctx context.Context, req *api.ListHostSetsRequest) (*api.ListHostSetsResponse, error) {
|
||||
func (s Service) ListHostSets(ctx context.Context, req *services.ListHostSetsRequest) (*services.ListHostSetsResponse, error) {
|
||||
return nil, status.Errorf(codes.NotFound, "Org %q not found", req.OrgId)
|
||||
}
|
||||
|
||||
func (s Service) DeleteHostSet(context.Context, *api.DeleteHostSetRequest) (*api.DeleteHostSetResponse, error) {
|
||||
return &api.DeleteHostSetResponse{Existed: false}, nil
|
||||
func (s Service) DeleteHostSet(context.Context, *services.DeleteHostSetRequest) (*services.DeleteHostSetResponse, error) {
|
||||
return &services.DeleteHostSetResponse{Existed: false}, nil
|
||||
}
|
||||
|
||||
var _ api.HostSetServiceServer = &Service{}
|
||||
var _ services.HostSetServiceServer = &Service{}
|
||||
@@ -3,21 +3,21 @@ package hosts
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/hashicorp/watchtower/internal/gen/controller/api"
|
||||
"github.com/hashicorp/watchtower/internal/gen/controller/api/services"
|
||||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
)
|
||||
|
||||
type Service struct {
|
||||
*api.UnimplementedHostServiceServer
|
||||
*services.UnimplementedHostServiceServer
|
||||
}
|
||||
|
||||
func (s Service) ListHosts(ctx context.Context, req *api.ListHostsRequest) (*api.ListHostsResponse, error) {
|
||||
func (s Service) ListHosts(ctx context.Context, req *services.ListHostsRequest) (*services.ListHostsResponse, error) {
|
||||
return nil, status.Errorf(codes.NotFound, "Org %q not found", req.OrgId)
|
||||
}
|
||||
|
||||
func (s Service) DeleteHost(context.Context, *api.DeleteHostRequest) (*api.DeleteHostResponse, error) {
|
||||
return &api.DeleteHostResponse{}, nil
|
||||
func (s Service) DeleteHost(context.Context, *services.DeleteHostRequest) (*services.DeleteHostResponse, error) {
|
||||
return &services.DeleteHostResponse{}, nil
|
||||
}
|
||||
|
||||
var _ api.HostServiceServer = &Service{}
|
||||
var _ services.HostServiceServer = &Service{}
|
||||
Reference in new issue
Block a user