Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add organization proto #589

Merged
merged 7 commits into from
Nov 22, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion manifests/bucketeer/charts/web-gateway/values.yaml

Large diffs are not rendered by default.

84 changes: 84 additions & 0 deletions pkg/environment/api/organization.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
// Copyright 2023 The Bucketeer Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package api
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just confirming. The ConvertTrialProject API is not implemented. Are you going to implement it later?


import (
"context"

environmentproto "github.com/bucketeer-io/bucketeer/proto/environment"
)

func (s *EnvironmentService) GetOrganization(
ctx context.Context,
req *environmentproto.GetOrganizationRequest,
) (*environmentproto.GetOrganizationResponse, error) {
return &environmentproto.GetOrganizationResponse{}, nil
}

func (s *EnvironmentService) ListOrganizations(
ctx context.Context,
req *environmentproto.ListOrganizationsRequest,
) (*environmentproto.ListOrganizationsResponse, error) {
return &environmentproto.ListOrganizationsResponse{}, nil
}

func (s *EnvironmentService) CreateOrganization(
ctx context.Context,
req *environmentproto.CreateOrganizationRequest,
) (*environmentproto.CreateOrganizationResponse, error) {
return &environmentproto.CreateOrganizationResponse{}, nil
}

func (s *EnvironmentService) UpdateOrganization(
ctx context.Context,
req *environmentproto.UpdateOrganizationRequest,
) (*environmentproto.UpdateOrganizationResponse, error) {
return &environmentproto.UpdateOrganizationResponse{}, nil
}

func (s *EnvironmentService) EnableOrganization(
ctx context.Context,
req *environmentproto.EnableOrganizationRequest,
) (*environmentproto.EnableOrganizationResponse, error) {
return &environmentproto.EnableOrganizationResponse{}, nil
}

func (s *EnvironmentService) DisableOrganization(
ctx context.Context,
req *environmentproto.DisableOrganizationRequest,
) (*environmentproto.DisableOrganizationResponse, error) {
return &environmentproto.DisableOrganizationResponse{}, nil
}

func (s *EnvironmentService) ArchiveOrganization(
ctx context.Context,
req *environmentproto.ArchiveOrganizationRequest,
) (*environmentproto.ArchiveOrganizationResponse, error) {
return &environmentproto.ArchiveOrganizationResponse{}, nil
}

func (s *EnvironmentService) UnarchiveOrganization(
ctx context.Context,
req *environmentproto.UnarchiveOrganizationRequest,
) (*environmentproto.UnarchiveOrganizationResponse, error) {
return &environmentproto.UnarchiveOrganizationResponse{}, nil
}

func (s *EnvironmentService) ConvertTrialOrganization(
ctx context.Context,
req *environmentproto.ConvertTrialOrganizationRequest,
) (*environmentproto.ConvertTrialOrganizationResponse, error) {
return &environmentproto.ConvertTrialOrganizationResponse{}, nil
}
180 changes: 180 additions & 0 deletions pkg/environment/client/mock/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.