See how Boundary would look with gofumpt applied (#853)

* See how Boundary would look with https://github.com/mvdan/gofumpt applied

Results of running `gofumpt -w -s .`

* Update tools file and Makefile for gofumpt

Co-authored-by: Jeff Mitchell <jeffrey.mitchell@gmail.com>
This commit is contained in:
Michael GaffneyandJeff Mitchell authored and GitHub committed 2021-01-07 10:02:32 -05:00
1 parent cca0fbea2b
commit 94cb79bbdd
237 files changed
+1567 -1529

No files matched your search

+2 -2
View File
@@ -35,7 +35,7 @@ func parsePBs() {
msg := in.inProto.ProtoReflect()
desc := msg.Descriptor()
//printDebug(desc)
// printDebug(desc)
// Evaluate above, populate below.
in.generatedStructure.pkg = packageFromFullName(desc.FullName())
@@ -73,7 +73,7 @@ func parsePBs() {
}
in.generatedStructure.fields = append(in.generatedStructure.fields, fi)
}
//fmt.Printf("Parsed: %#v\n", in.generatedStructure)
// fmt.Printf("Parsed: %#v\n", in.generatedStructure)
}
}
+2 -2
View File
@@ -129,7 +129,7 @@ func fillTemplates() {
if _, err := os.Stat(outDir); os.IsNotExist(err) {
_ = os.Mkdir(outDir, os.ModePerm)
}
if err := ioutil.WriteFile(outFile, outBuf.Bytes(), 0644); err != nil {
if err := ioutil.WriteFile(outFile, outBuf.Bytes(), 0o644); err != nil {
fmt.Printf("error writing file %q: %v\n", outFile, err)
os.Exit(1)
}
@@ -169,7 +169,7 @@ func fillTemplates() {
if _, err := os.Stat(outDir); os.IsNotExist(err) {
_ = os.Mkdir(outDir, os.ModePerm)
}
if err := ioutil.WriteFile(outFile, outBuf.Bytes(), 0644); err != nil {
if err := ioutil.WriteFile(outFile, outBuf.Bytes(), 0o644); err != nil {
fmt.Printf("error writing file %q: %v\n", outFile, err)
os.Exit(1)
}
+1 -1
View File
@@ -22,7 +22,7 @@ func TestAccount_New(t *testing.T) {
opts []Option
}
var tests = []struct {
tests := []struct {
name string
args args
want *Account
+3 -4
View File
@@ -121,7 +121,7 @@ func TestArgon2Configuration_Readonly(t *testing.T) {
authMethod := authMethods[0]
authMethodId := authMethod.GetPublicId()
var tests = []struct {
tests := []struct {
name string
chgFn func(*Argon2Configuration) (*Argon2Configuration, []string)
}{
@@ -157,11 +157,10 @@ func TestArgon2Configuration_Readonly(t *testing.T) {
assert.Equal(0, count)
})
}
}
func TestArgon2Configuration_Validate(t *testing.T) {
var tests = []struct {
tests := []struct {
name string
in *Argon2Configuration
want error
@@ -315,7 +314,7 @@ func TestArgon2Credential_New(t *testing.T) {
password string
conf *Argon2Configuration
}
var tests = []struct {
tests := []struct {
name string
args args
want *Argon2Credential
+1 -1
View File
@@ -21,7 +21,7 @@ func TestAuthMethod_New(t *testing.T) {
opts []Option
}
var tests = []struct {
tests := []struct {
name string
args args
want *AuthMethod
@@ -17,7 +17,7 @@ import (
)
func TestCheckLoginName(t *testing.T) {
var tests = []struct {
tests := []struct {
in string
want bool
}{
@@ -50,7 +50,7 @@ func TestRepository_CreateAccount(t *testing.T) {
authMethods := TestAuthMethods(t, conn, org.GetPublicId(), 1)
authMethod := authMethods[0]
var tests = []struct {
tests := []struct {
name string
in *Account
opts []Option
@@ -333,7 +333,7 @@ func TestRepository_LookupAccount(t *testing.T) {
newAcctId, err := newAccountId()
require.NoError(t, err)
var tests = []struct {
tests := []struct {
name string
in string
want *Account
@@ -387,7 +387,7 @@ func TestRepository_DeleteAccount(t *testing.T) {
newAcctId, err := newAccountId()
require.NoError(t, err)
var tests = []struct {
tests := []struct {
name string
in string
want int
@@ -442,7 +442,7 @@ func TestRepository_ListAccounts(t *testing.T) {
accounts2 := TestAccounts(t, conn, authMethods[1].GetPublicId(), 4)
_ = accounts2
var tests = []struct {
tests := []struct {
name string
in string
opts []Option
@@ -498,7 +498,7 @@ func TestRepository_ListAccounts_Limits(t *testing.T) {
accountCount := 10
_ = TestAccounts(t, conn, am.GetPublicId(), accountCount)
var tests = []struct {
tests := []struct {
name string
repoOpts []Option
listOpts []Option
@@ -619,7 +619,7 @@ func TestRepository_UpdateAccount(t *testing.T) {
}
}
var tests = []struct {
tests := []struct {
name string
orig *Account
chgFn func(*Account) *Account
@@ -28,7 +28,7 @@ func TestRepository_CreateAuthMethod(t *testing.T) {
iamRepo := iam.TestRepo(t, conn, wrapper)
org, _ := iam.TestScopes(t, iamRepo)
var tests = []struct {
tests := []struct {
name string
in *AuthMethod
opts []Option
@@ -266,7 +266,7 @@ func TestRepository_LookupAuthMethod(t *testing.T) {
amId, err := newAuthMethodId()
require.NoError(t, err)
var tests = []struct {
tests := []struct {
name string
in string
want *AuthMethod
@@ -317,7 +317,7 @@ func TestRepository_DeleteAuthMethod(t *testing.T) {
newAuthMethodId, err := newAuthMethodId()
require.NoError(t, err)
var tests = []struct {
tests := []struct {
name string
in string
want int
@@ -368,7 +368,7 @@ func TestRepository_ListAuthMethods(t *testing.T) {
o, _ := iam.TestScopes(t, iamRepo)
authMethods := TestAuthMethods(t, conn, o.GetPublicId(), 3)
var tests = []struct {
tests := []struct {
name string
in string
opts []Option
@@ -420,7 +420,7 @@ func TestRepository_ListAuthMethods_Limits(t *testing.T) {
authMethodCount := 10
ams := TestAuthMethods(t, conn, o.GetPublicId(), authMethodCount)
var tests = []struct {
tests := []struct {
name string
repoOpts []Option
listOpts []Option
@@ -136,7 +136,7 @@ func TestRepository_GetConfiguration(t *testing.T) {
authMethodId := authMethod.GetPublicId()
ctx := context.Background()
var tests = []struct {
tests := []struct {
name string
authMethodId string
want *Argon2Configuration
@@ -207,7 +207,7 @@ func TestRepository_SetConfiguration(t *testing.T) {
authMethod := authMethods[0]
authMethodId := authMethod.GetPublicId()
var tests = []struct {
tests := []struct {
name string
in Configuration
want *Argon2Configuration
@@ -45,7 +45,7 @@ func TestRepository_Authenticate(t *testing.T) {
password string
}
var tests = []struct {
tests := []struct {
name string
args args
want *Account
@@ -272,7 +272,7 @@ func TestRepository_ChangePassword(t *testing.T) {
old, new string
}
var tests = []struct {
tests := []struct {
name string
args args
wantAccount bool
@@ -447,7 +447,7 @@ func TestRepository_SetPassword(t *testing.T) {
return ""
}
var tests = []struct {
tests := []struct {
name string
oldPw string
newPw string
@@ -537,5 +537,4 @@ func TestRepository_SetPassword(t *testing.T) {
assert.Nil(acct)
})
}
}
+1 -1
View File
@@ -24,7 +24,7 @@ func TestRepository_New(t *testing.T) {
opts []Option
}
var tests = []struct {
tests := []struct {
name string
args args
want *Repository
+12 -8
View File
@@ -9,11 +9,12 @@
package store
import (
reflect "reflect"
sync "sync"
timestamp "github.com/hashicorp/boundary/internal/db/timestamp"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
@@ -370,12 +371,15 @@ func file_controller_storage_auth_password_store_v1_argon2_proto_rawDescGZIP() [
return file_controller_storage_auth_password_store_v1_argon2_proto_rawDescData
}
var file_controller_storage_auth_password_store_v1_argon2_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_controller_storage_auth_password_store_v1_argon2_proto_goTypes = []interface{}{
(*Argon2Configuration)(nil), // 0: controller.storage.auth.password.store.v1.Argon2Configuration
(*Argon2Credential)(nil), // 1: controller.storage.auth.password.store.v1.Argon2Credential
(*timestamp.Timestamp)(nil), // 2: controller.storage.timestamp.v1.Timestamp
}
var (
file_controller_storage_auth_password_store_v1_argon2_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
file_controller_storage_auth_password_store_v1_argon2_proto_goTypes = []interface{}{
(*Argon2Configuration)(nil), // 0: controller.storage.auth.password.store.v1.Argon2Configuration
(*Argon2Credential)(nil), // 1: controller.storage.auth.password.store.v1.Argon2Credential
(*timestamp.Timestamp)(nil), // 2: controller.storage.timestamp.v1.Timestamp
}
)
var file_controller_storage_auth_password_store_v1_argon2_proto_depIdxs = []int32{
2, // 0: controller.storage.auth.password.store.v1.Argon2Configuration.create_time:type_name -> controller.storage.timestamp.v1.Timestamp
2, // 1: controller.storage.auth.password.store.v1.Argon2Credential.create_time:type_name -> controller.storage.timestamp.v1.Timestamp
+13 -9
View File
@@ -9,12 +9,13 @@
package store
import (
reflect "reflect"
sync "sync"
timestamp "github.com/hashicorp/boundary/internal/db/timestamp"
_ "github.com/hashicorp/boundary/internal/gen/controller/protooptions"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
@@ -459,13 +460,16 @@ func file_controller_storage_auth_password_store_v1_password_proto_rawDescGZIP()
return file_controller_storage_auth_password_store_v1_password_proto_rawDescData
}
var file_controller_storage_auth_password_store_v1_password_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_controller_storage_auth_password_store_v1_password_proto_goTypes = []interface{}{
(*AuthMethod)(nil), // 0: controller.storage.auth.password.store.v1.AuthMethod
(*Account)(nil), // 1: controller.storage.auth.password.store.v1.Account
(*Credential)(nil), // 2: controller.storage.auth.password.store.v1.Credential
(*timestamp.Timestamp)(nil), // 3: controller.storage.timestamp.v1.Timestamp
}
var (
file_controller_storage_auth_password_store_v1_password_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
file_controller_storage_auth_password_store_v1_password_proto_goTypes = []interface{}{
(*AuthMethod)(nil), // 0: controller.storage.auth.password.store.v1.AuthMethod
(*Account)(nil), // 1: controller.storage.auth.password.store.v1.Account
(*Credential)(nil), // 2: controller.storage.auth.password.store.v1.Credential
(*timestamp.Timestamp)(nil), // 3: controller.storage.timestamp.v1.Timestamp
}
)
var file_controller_storage_auth_password_store_v1_password_proto_depIdxs = []int32{
3, // 0: controller.storage.auth.password.store.v1.AuthMethod.create_time:type_name -> controller.storage.timestamp.v1.Timestamp
3, // 1: controller.storage.auth.password.store.v1.AuthMethod.update_time:type_name -> controller.storage.timestamp.v1.Timestamp
+10 -6
View File
@@ -7,11 +7,12 @@
package store
import (
reflect "reflect"
sync "sync"
_ "github.com/hashicorp/boundary/internal/db/timestamp"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
@@ -142,10 +143,13 @@ func file_controller_storage_auth_store_v1_account_proto_rawDescGZIP() []byte {
return file_controller_storage_auth_store_v1_account_proto_rawDescData
}
var file_controller_storage_auth_store_v1_account_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_controller_storage_auth_store_v1_account_proto_goTypes = []interface{}{
(*Account)(nil), // 0: controller.storage.auth.store.v1.Account
}
var (
file_controller_storage_auth_store_v1_account_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
file_controller_storage_auth_store_v1_account_proto_goTypes = []interface{}{
(*Account)(nil), // 0: controller.storage.auth.store.v1.Account
}
)
var file_controller_storage_auth_store_v1_account_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
+11 -7
View File
@@ -7,11 +7,12 @@
package store
import (
reflect "reflect"
sync "sync"
_ "github.com/hashicorp/boundary/internal/db/timestamp"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
@@ -199,11 +200,14 @@ func file_controller_storage_auth_store_v1_auth_method_proto_rawDescGZIP() []byt
return file_controller_storage_auth_store_v1_auth_method_proto_rawDescData
}
var file_controller_storage_auth_store_v1_auth_method_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_controller_storage_auth_store_v1_auth_method_proto_goTypes = []interface{}{
(*AuthMethod)(nil), // 0: controller.storage.auth.store.v1.AuthMethod
(*AuthAccount)(nil), // 1: controller.storage.auth.store.v1.AuthAccount
}
var (
file_controller_storage_auth_store_v1_auth_method_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
file_controller_storage_auth_store_v1_auth_method_proto_goTypes = []interface{}{
(*AuthMethod)(nil), // 0: controller.storage.auth.store.v1.AuthMethod
(*AuthAccount)(nil), // 1: controller.storage.auth.store.v1.AuthAccount
}
)
var file_controller_storage_auth_store_v1_auth_method_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
+3 -3
View File
@@ -42,7 +42,7 @@ func TestAuthToken_DbUpdate(t *testing.T) {
future, err := ptypes.TimestampProto(time.Now().Add(time.Hour))
require.NoError(t, err)
var tests = []struct {
tests := []struct {
name string
args args
want *AuthToken
@@ -131,7 +131,7 @@ func TestAuthToken_DbCreate(t *testing.T) {
return id
}
var tests = []struct {
tests := []struct {
name string
in *store.AuthToken
wantError bool
@@ -185,7 +185,7 @@ func TestAuthToken_DbDelete(t *testing.T) {
org, _ := iam.TestScopes(t, iam.TestRepo(t, conn, wrapper))
existingAuthTok := TestAuthToken(t, conn, kms, org.GetPublicId())
var tests = []struct {
tests := []struct {
name string
at *writableAuthToken
wantError bool
+4 -2
View File
@@ -1,7 +1,9 @@
package authtoken
const defaultAuthTokenTableName = "auth_token_account"
const defaultWritableAuthTokenTableName = "auth_token"
const (
defaultAuthTokenTableName = "auth_token_account"
defaultWritableAuthTokenTableName = "auth_token"
)
// TableName returns the table name for the auth token.
func (s *AuthToken) TableName() string {
+1 -2
View File
@@ -26,7 +26,7 @@ func TestAuthToken_ImmutableFields(t *testing.T) {
org, _ := iam.TestScopes(t, repo)
new := TestAuthToken(t, conn, kms, org.PublicId)
var tests = []struct {
tests := []struct {
name string
update *AuthToken
fieldMask []string
@@ -76,7 +76,6 @@ func TestAuthToken_ImmutableFields(t *testing.T) {
require.NoError(err)
assert.True(proto.Equal(orig, after))
})
}
}
+7 -7
View File
@@ -34,7 +34,7 @@ func TestRepository_New(t *testing.T) {
opts []Option
}
var tests = []struct {
tests := []struct {
name string
args args
want *Repository
@@ -192,7 +192,7 @@ func TestRepository_CreateAuthToken(t *testing.T) {
org2, _ := iam.TestScopes(t, repo)
u2 := iam.TestUser(t, repo, org2.GetPublicId())
var tests = []struct {
tests := []struct {
name string
iamUser *iam.User
authAcctId string
@@ -279,7 +279,7 @@ func TestRepository_LookupAuthToken(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, badId)
var tests = []struct {
tests := []struct {
name string
id string
want *AuthToken
@@ -370,7 +370,7 @@ func TestRepository_ValidateToken(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, badToken)
var tests = []struct {
tests := []struct {
name string
id string
token string
@@ -475,7 +475,7 @@ func TestRepository_ValidateToken_expired(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, iamUser)
var tests = []struct {
tests := []struct {
name string
staleDuration time.Duration
expirationDuration time.Duration
@@ -543,7 +543,7 @@ func TestRepository_DeleteAuthToken(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, badId)
var tests = []struct {
tests := []struct {
name string
id string
want int
@@ -609,7 +609,7 @@ func TestRepository_ListAuthTokens(t *testing.T) {
emptyOrg, _ := iam.TestScopes(t, repo)
var tests = []struct {
tests := []struct {
name string
orgId string
want []*AuthToken
+11 -7
View File
@@ -7,11 +7,12 @@
package store
import (
reflect "reflect"
sync "sync"
timestamp "github.com/hashicorp/boundary/internal/db/timestamp"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
@@ -254,11 +255,14 @@ func file_controller_storage_authtoken_store_v1_authtoken_proto_rawDescGZIP() []
return file_controller_storage_authtoken_store_v1_authtoken_proto_rawDescData
}
var file_controller_storage_authtoken_store_v1_authtoken_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_controller_storage_authtoken_store_v1_authtoken_proto_goTypes = []interface{}{
(*AuthToken)(nil), // 0: controller.storage.authtoken.store.v1.AuthToken
(*timestamp.Timestamp)(nil), // 1: controller.storage.timestamp.v1.Timestamp
}
var (
file_controller_storage_authtoken_store_v1_authtoken_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
file_controller_storage_authtoken_store_v1_authtoken_proto_goTypes = []interface{}{
(*AuthToken)(nil), // 0: controller.storage.authtoken.store.v1.AuthToken
(*timestamp.Timestamp)(nil), // 1: controller.storage.timestamp.v1.Timestamp
}
)
var file_controller_storage_authtoken_store_v1_authtoken_proto_depIdxs = []int32{
1, // 0: controller.storage.authtoken.store.v1.AuthToken.create_time:type_name -> controller.storage.timestamp.v1.Timestamp
1, // 1: controller.storage.authtoken.store.v1.AuthToken.update_time:type_name -> controller.storage.timestamp.v1.Timestamp
+1 -1
View File
@@ -14,7 +14,7 @@ import (
func StartMemProfiler(logger hclog.Logger) {
profileDir := filepath.Join(os.TempDir(), "boundaryprof")
if err := os.MkdirAll(profileDir, 0700); err != nil {
if err := os.MkdirAll(profileDir, 0o700); err != nil {
logger.Debug("could not create profile directory", "error", err)
return
}
+2 -2
View File
@@ -159,7 +159,7 @@ func (b *Server) StorePidFile(pidPath string) error {
}
// Open the PID file
pidFile, err := os.OpenFile(pidPath, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0644)
pidFile, err := os.OpenFile(pidPath, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0o644)
if err != nil {
return fmt.Errorf("could not open pid file: %w", err)
}
@@ -313,7 +313,7 @@ func (b *Server) SetupListeners(ui cli.Ui, config *configutil.SharedConfig, allo
lnConfig.MaxRequestSize = globals.DefaultMaxRequestSize
}
// TODO: We don't actually limit this yet.
//props["max_request_size"] = fmt.Sprintf("%d", lnConfig.MaxRequestSize)
// props["max_request_size"] = fmt.Sprintf("%d", lnConfig.MaxRequestSize)
if lnConfig.MaxRequestDuration == 0 {
lnConfig.MaxRequestDuration = globals.DefaultMaxRequestDuration
+4 -2
View File
@@ -17,8 +17,10 @@ import (
"github.com/posener/complete"
)
var _ cli.Command = (*Command)(nil)
var _ cli.CommandAutocomplete = (*Command)(nil)
var (
_ cli.Command = (*Command)(nil)
_ cli.CommandAutocomplete = (*Command)(nil)
)
type Command struct {
*base.Command
+4 -2
View File
@@ -16,8 +16,10 @@ import (
"github.com/posener/complete"
)
var _ cli.Command = (*PasswordCommand)(nil)
var _ cli.CommandAutocomplete = (*PasswordCommand)(nil)
var (
_ cli.Command = (*PasswordCommand)(nil)
_ cli.CommandAutocomplete = (*PasswordCommand)(nil)
)
type PasswordCommand struct {
*base.Command
@@ -20,12 +20,16 @@ import (
zkeyring "github.com/zalando/go-keyring"
)
var _ cli.Command = (*PasswordCommand)(nil)
var _ cli.CommandAutocomplete = (*PasswordCommand)(nil)
var (
_ cli.Command = (*PasswordCommand)(nil)
_ cli.CommandAutocomplete = (*PasswordCommand)(nil)
)
var envPassword = "BOUNDARY_AUTHENTICATE_PASSWORD_PASSWORD"
var envLoginName = "BOUNDARY_AUTHENTICATE_PASSWORD_LOGIN_NAME"
var envAuthMethodId = "BOUNDARY_AUTHENTICATE_AUTH_METHOD_ID"
var (
envPassword = "BOUNDARY_AUTHENTICATE_PASSWORD_PASSWORD"
envLoginName = "BOUNDARY_AUTHENTICATE_PASSWORD_LOGIN_NAME"
envAuthMethodId = "BOUNDARY_AUTHENTICATE_AUTH_METHOD_ID"
)
type PasswordCommand struct {
*base.Command
@@ -14,8 +14,10 @@ import (
"github.com/posener/complete"
)
var _ cli.Command = (*Command)(nil)
var _ cli.CommandAutocomplete = (*Command)(nil)
var (
_ cli.Command = (*Command)(nil)
_ cli.CommandAutocomplete = (*Command)(nil)
)
type Command struct {
*base.Command
@@ -14,8 +14,10 @@ import (
"github.com/posener/complete"
)
var _ cli.Command = (*PasswordCommand)(nil)
var _ cli.CommandAutocomplete = (*PasswordCommand)(nil)
var (
_ cli.Command = (*PasswordCommand)(nil)
_ cli.CommandAutocomplete = (*PasswordCommand)(nil)
)
type PasswordCommand struct {
*base.Command
@@ -15,8 +15,10 @@ import (
"github.com/posener/complete"
)
var _ cli.Command = (*Command)(nil)
var _ cli.CommandAutocomplete = (*Command)(nil)
var (
_ cli.Command = (*Command)(nil)
_ cli.CommandAutocomplete = (*Command)(nil)
)
type Command struct {
*base.Command
@@ -14,8 +14,10 @@ import (
"github.com/posener/complete"
)
var _ cli.Command = (*EncryptDecryptCommand)(nil)
var _ cli.CommandAutocomplete = (*EncryptDecryptCommand)(nil)
var (
_ cli.Command = (*EncryptDecryptCommand)(nil)
_ cli.CommandAutocomplete = (*EncryptDecryptCommand)(nil)
)
type EncryptDecryptCommand struct {
*base.Command
@@ -61,7 +61,6 @@ func TestEncryptDecrypt(t *testing.T) {
for _, c := range cases {
t.Run(fmt.Sprintf("Test encrypt %v", c.f), func(t *testing.T) {
var b bytes.Buffer
ui := &cli.BasicUi{
+4 -2
View File
@@ -9,8 +9,10 @@ import (
"github.com/posener/complete"
)
var _ cli.Command = (*TokenCommand)(nil)
var _ cli.CommandAutocomplete = (*TokenCommand)(nil)
var (
_ cli.Command = (*TokenCommand)(nil)
_ cli.CommandAutocomplete = (*TokenCommand)(nil)
)
type TokenCommand struct {
*base.Command
+4 -4
View File
@@ -56,8 +56,10 @@ type TerminationInfo struct {
Reason string `json:"termination_reason"`
}
var _ cli.Command = (*Command)(nil)
var _ cli.CommandAutocomplete = (*Command)(nil)
var (
_ cli.Command = (*Command)(nil)
_ cli.CommandAutocomplete = (*Command)(nil)
)
type Command struct {
*base.Command
@@ -648,7 +650,6 @@ func (c *Command) getWsConn(
ctx context.Context,
workerAddr string,
transport *http.Transport) (*websocket.Conn, error) {
conn, resp, err := websocket.Dial(
ctx,
fmt.Sprintf("wss://%s/v1/proxy", workerAddr),
@@ -687,7 +688,6 @@ func (c *Command) sendSessionTeardown(
ctx context.Context,
wsConn *websocket.Conn,
tofuToken string) error {
handshake := proxy.ClientHandshake{
TofuToken: tofuToken,
Command: proxy.HANDSHAKECOMMAND_HANDSHAKECOMMAND_SESSION_CANCEL,
+4 -2
View File
@@ -6,8 +6,10 @@ import (
"github.com/posener/complete"
)
var _ cli.Command = (*Command)(nil)
var _ cli.CommandAutocomplete = (*Command)(nil)
var (
_ cli.Command = (*Command)(nil)
_ cli.CommandAutocomplete = (*Command)(nil)
)
type Command struct {
*base.Command
+4 -2
View File
@@ -18,8 +18,10 @@ import (
"github.com/posener/complete"
)
var _ cli.Command = (*InitCommand)(nil)
var _ cli.CommandAutocomplete = (*InitCommand)(nil)
var (
_ cli.Command = (*InitCommand)(nil)
_ cli.CommandAutocomplete = (*InitCommand)(nil)
)
type InitCommand struct {
*base.Command
+5 -3
View File
@@ -21,8 +21,10 @@ import (
"github.com/posener/complete"
)
var _ cli.Command = (*Command)(nil)
var _ cli.CommandAutocomplete = (*Command)(nil)
var (
_ cli.Command = (*Command)(nil)
_ cli.CommandAutocomplete = (*Command)(nil)
)
type Command struct {
*base.Server
@@ -241,7 +243,7 @@ func (c *Command) Run(args []string) int {
return 1
}
//childShutdownCh := make(chan struct{})
// childShutdownCh := make(chan struct{})
c.Config, err = config.DevCombined()
if err != nil {
+4 -2
View File
@@ -13,8 +13,10 @@ import (
"github.com/posener/complete"
)
var _ cli.Command = (*Command)(nil)
var _ cli.CommandAutocomplete = (*Command)(nil)
var (
_ cli.Command = (*Command)(nil)
_ cli.CommandAutocomplete = (*Command)(nil)
)
type Command struct {
*base.Command
@@ -14,8 +14,10 @@ import (
"github.com/posener/complete"
)
var _ cli.Command = (*Command)(nil)
var _ cli.CommandAutocomplete = (*Command)(nil)
var (
_ cli.Command = (*Command)(nil)
_ cli.CommandAutocomplete = (*Command)(nil)
)
type Command struct {
*base.Command
+4 -2
View File
@@ -13,8 +13,10 @@ import (
"github.com/posener/complete"
)
var _ cli.Command = (*StaticCommand)(nil)
var _ cli.CommandAutocomplete = (*StaticCommand)(nil)
var (
_ cli.Command = (*StaticCommand)(nil)
_ cli.CommandAutocomplete = (*StaticCommand)(nil)
)
type StaticCommand struct {
*base.Command
+4 -2
View File
@@ -14,8 +14,10 @@ import (
"github.com/posener/complete"
)
var _ cli.Command = (*Command)(nil)
var _ cli.CommandAutocomplete = (*Command)(nil)
var (
_ cli.Command = (*Command)(nil)
_ cli.CommandAutocomplete = (*Command)(nil)
)
type Command struct {
*base.Command
+4 -2
View File
@@ -13,8 +13,10 @@ import (
"github.com/posener/complete"
)
var _ cli.Command = (*StaticCommand)(nil)
var _ cli.CommandAutocomplete = (*StaticCommand)(nil)
var (
_ cli.Command = (*StaticCommand)(nil)
_ cli.CommandAutocomplete = (*StaticCommand)(nil)
)
type StaticCommand struct {
*base.Command
+4 -2
View File
@@ -14,8 +14,10 @@ import (
"github.com/posener/complete"
)
var _ cli.Command = (*Command)(nil)
var _ cli.CommandAutocomplete = (*Command)(nil)
var (
_ cli.Command = (*Command)(nil)
_ cli.CommandAutocomplete = (*Command)(nil)
)
type Command struct {
*base.Command
+4 -2
View File
@@ -13,8 +13,10 @@ import (
"github.com/posener/complete"
)
var _ cli.Command = (*StaticCommand)(nil)
var _ cli.CommandAutocomplete = (*StaticCommand)(nil)
var (
_ cli.Command = (*StaticCommand)(nil)
_ cli.CommandAutocomplete = (*StaticCommand)(nil)
)
type StaticCommand struct {
*base.Command
-1
View File
@@ -138,7 +138,6 @@ func generateRoleTableOutput(in *roles.Role) string {
ret = append(ret,
fmt.Sprintf(" %s", grant.Canonical),
)
}
return base.WrapForHelpText(ret)
}
+4 -2
View File
@@ -14,8 +14,10 @@ import (
"github.com/posener/complete"
)
var _ cli.Command = (*Command)(nil)
var _ cli.CommandAutocomplete = (*Command)(nil)
var (
_ cli.Command = (*Command)(nil)
_ cli.CommandAutocomplete = (*Command)(nil)
)
type Command struct {
*base.Command
+4 -2
View File
@@ -14,8 +14,10 @@ import (
"github.com/posener/complete"
)
var _ cli.Command = (*Command)(nil)
var _ cli.CommandAutocomplete = (*Command)(nil)
var (
_ cli.Command = (*Command)(nil)
_ cli.CommandAutocomplete = (*Command)(nil)
)
type Command struct {
*base.Command
+4 -2
View File
@@ -20,8 +20,10 @@ import (
"github.com/posener/complete"
)
var _ cli.Command = (*Command)(nil)
var _ cli.CommandAutocomplete = (*Command)(nil)
var (
_ cli.Command = (*Command)(nil)
_ cli.CommandAutocomplete = (*Command)(nil)
)
type Command struct {
*base.Server
+4 -2
View File
@@ -14,8 +14,10 @@ import (
"github.com/posener/complete"
)
var _ cli.Command = (*Command)(nil)
var _ cli.CommandAutocomplete = (*Command)(nil)
var (
_ cli.Command = (*Command)(nil)
_ cli.CommandAutocomplete = (*Command)(nil)
)
type Command struct {
*base.Command
+4 -2
View File
@@ -15,8 +15,10 @@ import (
"github.com/posener/complete"
)
var _ cli.Command = (*Command)(nil)
var _ cli.CommandAutocomplete = (*Command)(nil)
var (
_ cli.Command = (*Command)(nil)
_ cli.CommandAutocomplete = (*Command)(nil)
)
type Command struct {
*base.Command
+4 -2
View File
@@ -15,8 +15,10 @@ import (
"github.com/posener/complete"
)
var _ cli.Command = (*TcpCommand)(nil)
var _ cli.CommandAutocomplete = (*TcpCommand)(nil)
var (
_ cli.Command = (*TcpCommand)(nil)
_ cli.CommandAutocomplete = (*TcpCommand)(nil)
)
type TcpCommand struct {
*base.Command
+4 -2
View File
@@ -13,8 +13,10 @@ import (
"github.com/posener/complete"
)
var _ cli.Command = (*Command)(nil)
var _ cli.CommandAutocomplete = (*Command)(nil)
var (
_ cli.Command = (*Command)(nil)
_ cli.CommandAutocomplete = (*Command)(nil)
)
type Command struct {
*base.Command
+4 -2
View File
@@ -9,8 +9,10 @@ import (
"github.com/posener/complete"
)
var _ cli.Command = (*Command)(nil)
var _ cli.CommandAutocomplete = (*Command)(nil)
var (
_ cli.Command = (*Command)(nil)
_ cli.CommandAutocomplete = (*Command)(nil)
)
type Command struct {
*base.Command
+1 -3
View File
@@ -14,9 +14,7 @@ import (
"github.com/lib/pq"
)
var (
StartDbInDocker = docker.StartDbInDocker
)
var StartDbInDocker = docker.StartDbInDocker
type DbType int
+5
View File
@@ -43,6 +43,7 @@ func (u *TestUser) Clone() interface{} {
StoreTestUser: s.(*StoreTestUser),
}
}
func (u *TestUser) TableName() string {
if u.table != "" {
return u.table
@@ -83,6 +84,7 @@ func (c *TestCar) TableName() string {
return defaultCarTableName
}
func (c *TestCar) SetTableName(name string) {
c.table = name
}
@@ -103,6 +105,7 @@ func NewTestRental() (*TestRental, error) {
},
}, nil
}
func (r *TestRental) TableName() string {
if r.table != "" {
return r.table
@@ -110,6 +113,7 @@ func (r *TestRental) TableName() string {
return defaultRentalTableName
}
func (r *TestRental) SetTableName(name string) {
r.table = name
}
@@ -137,6 +141,7 @@ func (t *TestScooter) Clone() interface{} {
StoreTestScooter: s.(*StoreTestScooter),
}
}
func (t *TestScooter) TableName() string {
if t.table != "" {
return t.table
+14 -10
View File
@@ -11,11 +11,12 @@
package db_test
import (
reflect "reflect"
sync "sync"
timestamp "github.com/hashicorp/boundary/internal/db/timestamp"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
@@ -555,14 +556,17 @@ func file_controller_storage_db_db_test_v1_db_test_proto_rawDescGZIP() []byte {
return file_controller_storage_db_db_test_v1_db_test_proto_rawDescData
}
var file_controller_storage_db_db_test_v1_db_test_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_controller_storage_db_db_test_v1_db_test_proto_goTypes = []interface{}{
(*StoreTestUser)(nil), // 0: controller.storage.db.db_test.v1.StoreTestUser
(*StoreTestCar)(nil), // 1: controller.storage.db.db_test.v1.StoreTestCar
(*StoreTestRental)(nil), // 2: controller.storage.db.db_test.v1.StoreTestRental
(*StoreTestScooter)(nil), // 3: controller.storage.db.db_test.v1.StoreTestScooter
(*timestamp.Timestamp)(nil), // 4: controller.storage.timestamp.v1.Timestamp
}
var (
file_controller_storage_db_db_test_v1_db_test_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
file_controller_storage_db_db_test_v1_db_test_proto_goTypes = []interface{}{
(*StoreTestUser)(nil), // 0: controller.storage.db.db_test.v1.StoreTestUser
(*StoreTestCar)(nil), // 1: controller.storage.db.db_test.v1.StoreTestCar
(*StoreTestRental)(nil), // 2: controller.storage.db.db_test.v1.StoreTestRental
(*StoreTestScooter)(nil), // 3: controller.storage.db.db_test.v1.StoreTestScooter
(*timestamp.Timestamp)(nil), // 4: controller.storage.timestamp.v1.Timestamp
}
)
var file_controller_storage_db_db_test_v1_db_test_proto_depIdxs = []int32{
4, // 0: controller.storage.db.db_test.v1.StoreTestUser.create_time:type_name -> controller.storage.timestamp.v1.Timestamp
4, // 1: controller.storage.db.db_test.v1.StoreTestUser.update_time:type_name -> controller.storage.timestamp.v1.Timestamp
+1 -3
View File
@@ -451,7 +451,7 @@ set id = null;
assert.NoError(t, err)
assert.Equal(t, 1, count)
var tests = []struct {
tests := []struct {
name string
stmt string
}{
@@ -525,7 +525,5 @@ set id = null;
assert.Equal(orig.Id, found.Id)
assert.Equal(orig.Name, found.Name)
assert.Equal(orig.CreateTime, found.CreateTime)
})
}
-1
View File
@@ -48,7 +48,6 @@ func TestNewPublicId(t *testing.T) {
if len(got) != tt.wantLen {
t.Errorf("NewPublicId() = %v, with len of %d and wanted len of %v", got, len(got), tt.wantLen)
}
})
}
}
+1
View File
@@ -56,6 +56,7 @@ func newFakeFile(dialect string, name string) (*fakeFile, error) {
ff.dialect = dialect
return ff, nil
}
func (f *fakeFile) Read(p []byte) (n int, err error) {
return f.reader.Read(p)
}
@@ -114,7 +114,7 @@ func generate(dialect string) {
}
outFile := fmt.Sprintf("%s/%s.gen.go", baseDir, dialect)
if err := ioutil.WriteFile(outFile, outBuf.Bytes(), 0644); err != nil {
if err := ioutil.WriteFile(outFile, outBuf.Bytes(), 0o644); err != nil {
fmt.Printf("error writing file %q: %v\n", outFile, err)
os.Exit(1)
}
+4 -3
View File
@@ -169,8 +169,10 @@ type Db struct {
}
// ensure that Db implements the interfaces of: Reader and Writer
var _ Reader = (*Db)(nil)
var _ Writer = (*Db)(nil)
var (
_ Reader = (*Db)(nil)
_ Writer = (*Db)(nil)
)
func New(underlying *gorm.DB) *Db {
return &Db{underlying: underlying}
@@ -344,7 +346,6 @@ func (rw *Db) CreateItems(ctx context.Context, createItems []interface{}, opt ..
if err := rw.Create(ctx, item); err != nil {
return errors.Wrap(err, op)
}
}
if opts.withOplog {
if err := rw.addOplogForItems(ctx, CreateOp, opts, ticket, createItems); err != nil {
+9 -4
View File
@@ -34,7 +34,8 @@ func TestDb_UpdateUnsetField(t *testing.T) {
StoreTestUser: &db_test.StoreTestUser{
PublicId: testId(t),
Name: "default",
}}
},
}
require.NoError(t, rw.Create(context.Background(), tu))
updatedTu := tu.Clone().(*db_test.TestUser)
@@ -586,9 +587,11 @@ type testUserWithVet struct {
func (u *testUserWithVet) GetPublicId() string {
return u.PublicId
}
func (u *testUserWithVet) TableName() string {
return "db_test_user"
}
func (u *testUserWithVet) VetForWrite(ctx context.Context, r Reader, opType OpType, opt ...Option) error {
if u.PublicId == "" {
return stderrors.New("public id is empty string for user write")
@@ -1029,6 +1032,7 @@ func TestDb_Exec(t *testing.T) {
require.Equal(1, rowsAffected)
})
}
func TestDb_DoTx(t *testing.T) {
t.Parallel()
db, _ := TestSetup(t, "postgres")
@@ -1901,6 +1905,7 @@ func testUser(t *testing.T, conn *gorm.DB, name, email, phoneNumber string) *db_
}
return u
}
func testCar(t *testing.T, conn *gorm.DB, name, model string, mpg int32) *db_test.TestCar {
t.Helper()
require := require.New(t)
@@ -2274,7 +2279,7 @@ func TestClear_InputTypes(t *testing.T) {
d int
}
var tests = []struct {
tests := []struct {
name string
args args
want interface{}
@@ -2430,7 +2435,7 @@ func TestClear_Structs(t *testing.T) {
f []string
d int
}
var tests = []struct {
tests := []struct {
name string
args args
want interface{}
@@ -2676,7 +2681,7 @@ func TestClear_SetFieldsToNil(t *testing.T) {
v interface{}
f []string
}
var tests = []struct {
tests := []struct {
name string
args args
want interface{}
-1
View File
@@ -17,7 +17,6 @@ func Test_Utils(t *testing.T) {
t.Parallel()
_, _ = TestSetup(t, "postgres")
t.Run("nothing", func(t *testing.T) {
})
}
+11 -7
View File
@@ -7,11 +7,12 @@
package timestamp
import (
reflect "reflect"
sync "sync"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
@@ -107,11 +108,14 @@ func file_controller_storage_timestamp_v1_timestamp_proto_rawDescGZIP() []byte {
return file_controller_storage_timestamp_v1_timestamp_proto_rawDescData
}
var file_controller_storage_timestamp_v1_timestamp_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_controller_storage_timestamp_v1_timestamp_proto_goTypes = []interface{}{
(*Timestamp)(nil), // 0: controller.storage.timestamp.v1.Timestamp
(*timestamp.Timestamp)(nil), // 1: google.protobuf.Timestamp
}
var (
file_controller_storage_timestamp_v1_timestamp_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
file_controller_storage_timestamp_v1_timestamp_proto_goTypes = []interface{}{
(*Timestamp)(nil), // 0: controller.storage.timestamp.v1.Timestamp
(*timestamp.Timestamp)(nil), // 1: google.protobuf.Timestamp
}
)
var file_controller_storage_timestamp_v1_timestamp_proto_depIdxs = []int32{
1, // 0: controller.storage.timestamp.v1.Timestamp.timestamp:type_name -> google.protobuf.Timestamp
1, // [1:1] is the sub-list for method output_type
-1
View File
@@ -128,7 +128,6 @@ func TestCode_Both_String_Info(t *testing.T) {
assert := assert.New(t)
assert.Equal(errorCodeInfo[tt.want], tt.c.Info())
assert.Equal(errorCodeInfo[tt.want].Message, tt.c.String())
})
}
}
+5 -5
View File
@@ -14,7 +14,7 @@ import (
func TestError_IsUnique(t *testing.T) {
t.Parallel()
var tests = []struct {
tests := []struct {
name string
in error
want bool
@@ -76,7 +76,7 @@ func TestError_IsUnique(t *testing.T) {
func TestError_IsCheckConstraint(t *testing.T) {
t.Parallel()
var tests = []struct {
tests := []struct {
name string
in error
want bool
@@ -138,7 +138,7 @@ func TestError_IsCheckConstraint(t *testing.T) {
func TestError_IsNotNullError(t *testing.T) {
t.Parallel()
var tests = []struct {
tests := []struct {
name string
in error
want bool
@@ -206,7 +206,7 @@ func TestError_IsNotNullError(t *testing.T) {
}
func TestError_IsMissingTableError(t *testing.T) {
var tests = []struct {
tests := []struct {
name string
in error
want bool
@@ -258,7 +258,7 @@ func TestError_IsMissingTableError(t *testing.T) {
}
func TestError_IsNotFoundError(t *testing.T) {
var tests = []struct {
tests := []struct {
name string
in error
want bool
+13 -9
View File
@@ -7,10 +7,11 @@
package api
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)
const (
@@ -320,13 +321,16 @@ func file_controller_api_v1_error_proto_rawDescGZIP() []byte {
return file_controller_api_v1_error_proto_rawDescData
}
var file_controller_api_v1_error_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_controller_api_v1_error_proto_goTypes = []interface{}{
(*WrappedError)(nil), // 0: controller.api.v1.WrappedError
(*ErrorDetails)(nil), // 1: controller.api.v1.ErrorDetails
(*FieldError)(nil), // 2: controller.api.v1.FieldError
(*Error)(nil), // 3: controller.api.v1.Error
}
var (
file_controller_api_v1_error_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
file_controller_api_v1_error_proto_goTypes = []interface{}{
(*WrappedError)(nil), // 0: controller.api.v1.WrappedError
(*ErrorDetails)(nil), // 1: controller.api.v1.ErrorDetails
(*FieldError)(nil), // 2: controller.api.v1.FieldError
(*Error)(nil), // 3: controller.api.v1.Error
}
)
var file_controller_api_v1_error_proto_depIdxs = []int32{
2, // 0: controller.api.v1.ErrorDetails.request_fields:type_name -> controller.api.v1.FieldError
0, // 1: controller.api.v1.ErrorDetails.wrapped_errors:type_name -> controller.api.v1.WrappedError
@@ -7,6 +7,9 @@
package accounts
import (
reflect "reflect"
sync "sync"
_struct "github.com/golang/protobuf/ptypes/struct"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
@@ -14,8 +17,6 @@ import (
_ "github.com/hashicorp/boundary/internal/gen/controller/protooptions"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
@@ -299,15 +300,18 @@ func file_controller_api_resources_accounts_v1_account_proto_rawDescGZIP() []byt
return file_controller_api_resources_accounts_v1_account_proto_rawDescData
}
var file_controller_api_resources_accounts_v1_account_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_controller_api_resources_accounts_v1_account_proto_goTypes = []interface{}{
(*Account)(nil), // 0: controller.api.resources.accounts.v1.Account
(*PasswordAccountAttributes)(nil), // 1: controller.api.resources.accounts.v1.PasswordAccountAttributes
(*scopes.ScopeInfo)(nil), // 2: controller.api.resources.scopes.v1.ScopeInfo
(*wrappers.StringValue)(nil), // 3: google.protobuf.StringValue
(*timestamp.Timestamp)(nil), // 4: google.protobuf.Timestamp
(*_struct.Struct)(nil), // 5: google.protobuf.Struct
}
var (
file_controller_api_resources_accounts_v1_account_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
file_controller_api_resources_accounts_v1_account_proto_goTypes = []interface{}{
(*Account)(nil), // 0: controller.api.resources.accounts.v1.Account
(*PasswordAccountAttributes)(nil), // 1: controller.api.resources.accounts.v1.PasswordAccountAttributes
(*scopes.ScopeInfo)(nil), // 2: controller.api.resources.scopes.v1.ScopeInfo
(*wrappers.StringValue)(nil), // 3: google.protobuf.StringValue
(*timestamp.Timestamp)(nil), // 4: google.protobuf.Timestamp
(*_struct.Struct)(nil), // 5: google.protobuf.Struct
}
)
var file_controller_api_resources_accounts_v1_account_proto_depIdxs = []int32{
2, // 0: controller.api.resources.accounts.v1.Account.scope:type_name -> controller.api.resources.scopes.v1.ScopeInfo
3, // 1: controller.api.resources.accounts.v1.Account.name:type_name -> google.protobuf.StringValue
@@ -7,6 +7,9 @@
package authmethods
import (
reflect "reflect"
sync "sync"
_struct "github.com/golang/protobuf/ptypes/struct"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
@@ -14,8 +17,6 @@ import (
_ "github.com/hashicorp/boundary/internal/gen/controller/protooptions"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
@@ -305,15 +306,18 @@ func file_controller_api_resources_authmethods_v1_auth_method_proto_rawDescGZIP(
return file_controller_api_resources_authmethods_v1_auth_method_proto_rawDescData
}
var file_controller_api_resources_authmethods_v1_auth_method_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_controller_api_resources_authmethods_v1_auth_method_proto_goTypes = []interface{}{
(*AuthMethod)(nil), // 0: controller.api.resources.authmethods.v1.AuthMethod
(*PasswordAuthMethodAttributes)(nil), // 1: controller.api.resources.authmethods.v1.PasswordAuthMethodAttributes
(*scopes.ScopeInfo)(nil), // 2: controller.api.resources.scopes.v1.ScopeInfo
(*wrappers.StringValue)(nil), // 3: google.protobuf.StringValue
(*timestamp.Timestamp)(nil), // 4: google.protobuf.Timestamp
(*_struct.Struct)(nil), // 5: google.protobuf.Struct
}
var (
file_controller_api_resources_authmethods_v1_auth_method_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
file_controller_api_resources_authmethods_v1_auth_method_proto_goTypes = []interface{}{
(*AuthMethod)(nil), // 0: controller.api.resources.authmethods.v1.AuthMethod
(*PasswordAuthMethodAttributes)(nil), // 1: controller.api.resources.authmethods.v1.PasswordAuthMethodAttributes
(*scopes.ScopeInfo)(nil), // 2: controller.api.resources.scopes.v1.ScopeInfo
(*wrappers.StringValue)(nil), // 3: google.protobuf.StringValue
(*timestamp.Timestamp)(nil), // 4: google.protobuf.Timestamp
(*_struct.Struct)(nil), // 5: google.protobuf.Struct
}
)
var file_controller_api_resources_authmethods_v1_auth_method_proto_depIdxs = []int32{
2, // 0: controller.api.resources.authmethods.v1.AuthMethod.scope:type_name -> controller.api.resources.scopes.v1.ScopeInfo
3, // 1: controller.api.resources.authmethods.v1.AuthMethod.name:type_name -> google.protobuf.StringValue
@@ -7,13 +7,14 @@
package authtokens
import (
reflect "reflect"
sync "sync"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "github.com/golang/protobuf/ptypes/wrappers"
scopes "github.com/hashicorp/boundary/internal/gen/controller/api/resources/scopes"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
@@ -232,12 +233,15 @@ func file_controller_api_resources_authtokens_v1_authtoken_proto_rawDescGZIP() [
return file_controller_api_resources_authtokens_v1_authtoken_proto_rawDescData
}
var file_controller_api_resources_authtokens_v1_authtoken_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_controller_api_resources_authtokens_v1_authtoken_proto_goTypes = []interface{}{
(*AuthToken)(nil), // 0: controller.api.resources.authtokens.v1.AuthToken
(*scopes.ScopeInfo)(nil), // 1: controller.api.resources.scopes.v1.ScopeInfo
(*timestamp.Timestamp)(nil), // 2: google.protobuf.Timestamp
}
var (
file_controller_api_resources_authtokens_v1_authtoken_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
file_controller_api_resources_authtokens_v1_authtoken_proto_goTypes = []interface{}{
(*AuthToken)(nil), // 0: controller.api.resources.authtokens.v1.AuthToken
(*scopes.ScopeInfo)(nil), // 1: controller.api.resources.scopes.v1.ScopeInfo
(*timestamp.Timestamp)(nil), // 2: google.protobuf.Timestamp
}
)
var file_controller_api_resources_authtokens_v1_authtoken_proto_depIdxs = []int32{
1, // 0: controller.api.resources.authtokens.v1.AuthToken.scope:type_name -> controller.api.resources.scopes.v1.ScopeInfo
2, // 1: controller.api.resources.authtokens.v1.AuthToken.created_time:type_name -> google.protobuf.Timestamp
@@ -7,14 +7,15 @@
package groups
import (
reflect "reflect"
sync "sync"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
scopes "github.com/hashicorp/boundary/internal/gen/controller/api/resources/scopes"
_ "github.com/hashicorp/boundary/internal/gen/controller/protooptions"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
@@ -288,14 +289,17 @@ func file_controller_api_resources_groups_v1_group_proto_rawDescGZIP() []byte {
return file_controller_api_resources_groups_v1_group_proto_rawDescData
}
var file_controller_api_resources_groups_v1_group_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_controller_api_resources_groups_v1_group_proto_goTypes = []interface{}{
(*Member)(nil), // 0: controller.api.resources.groups.v1.Member
(*Group)(nil), // 1: controller.api.resources.groups.v1.Group
(*scopes.ScopeInfo)(nil), // 2: controller.api.resources.scopes.v1.ScopeInfo
(*wrappers.StringValue)(nil), // 3: google.protobuf.StringValue
(*timestamp.Timestamp)(nil), // 4: google.protobuf.Timestamp
}
var (
file_controller_api_resources_groups_v1_group_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
file_controller_api_resources_groups_v1_group_proto_goTypes = []interface{}{
(*Member)(nil), // 0: controller.api.resources.groups.v1.Member
(*Group)(nil), // 1: controller.api.resources.groups.v1.Group
(*scopes.ScopeInfo)(nil), // 2: controller.api.resources.scopes.v1.ScopeInfo
(*wrappers.StringValue)(nil), // 3: google.protobuf.StringValue
(*timestamp.Timestamp)(nil), // 4: google.protobuf.Timestamp
}
)
var file_controller_api_resources_groups_v1_group_proto_depIdxs = []int32{
2, // 0: controller.api.resources.groups.v1.Group.scope:type_name -> controller.api.resources.scopes.v1.ScopeInfo
3, // 1: controller.api.resources.groups.v1.Group.name:type_name -> google.protobuf.StringValue
@@ -7,6 +7,9 @@
package hostcatalogs
import (
reflect "reflect"
sync "sync"
_struct "github.com/golang/protobuf/ptypes/struct"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
@@ -14,8 +17,6 @@ import (
_ "github.com/hashicorp/boundary/internal/gen/controller/protooptions"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
@@ -232,14 +233,17 @@ func file_controller_api_resources_hostcatalogs_v1_host_catalog_proto_rawDescGZI
return file_controller_api_resources_hostcatalogs_v1_host_catalog_proto_rawDescData
}
var file_controller_api_resources_hostcatalogs_v1_host_catalog_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_controller_api_resources_hostcatalogs_v1_host_catalog_proto_goTypes = []interface{}{
(*HostCatalog)(nil), // 0: controller.api.resources.hostcatalogs.v1.HostCatalog
(*scopes.ScopeInfo)(nil), // 1: controller.api.resources.scopes.v1.ScopeInfo
(*wrappers.StringValue)(nil), // 2: google.protobuf.StringValue
(*timestamp.Timestamp)(nil), // 3: google.protobuf.Timestamp
(*_struct.Struct)(nil), // 4: google.protobuf.Struct
}
var (
file_controller_api_resources_hostcatalogs_v1_host_catalog_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
file_controller_api_resources_hostcatalogs_v1_host_catalog_proto_goTypes = []interface{}{
(*HostCatalog)(nil), // 0: controller.api.resources.hostcatalogs.v1.HostCatalog
(*scopes.ScopeInfo)(nil), // 1: controller.api.resources.scopes.v1.ScopeInfo
(*wrappers.StringValue)(nil), // 2: google.protobuf.StringValue
(*timestamp.Timestamp)(nil), // 3: google.protobuf.Timestamp
(*_struct.Struct)(nil), // 4: google.protobuf.Struct
}
)
var file_controller_api_resources_hostcatalogs_v1_host_catalog_proto_depIdxs = []int32{
1, // 0: controller.api.resources.hostcatalogs.v1.HostCatalog.scope:type_name -> controller.api.resources.scopes.v1.ScopeInfo
2, // 1: controller.api.resources.hostcatalogs.v1.HostCatalog.name:type_name -> google.protobuf.StringValue
@@ -7,6 +7,9 @@
package hosts
import (
reflect "reflect"
sync "sync"
_struct "github.com/golang/protobuf/ptypes/struct"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
@@ -14,8 +17,6 @@ import (
_ "github.com/hashicorp/boundary/internal/gen/controller/protooptions"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
@@ -297,15 +298,18 @@ func file_controller_api_resources_hosts_v1_host_proto_rawDescGZIP() []byte {
return file_controller_api_resources_hosts_v1_host_proto_rawDescData
}
var file_controller_api_resources_hosts_v1_host_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_controller_api_resources_hosts_v1_host_proto_goTypes = []interface{}{
(*Host)(nil), // 0: controller.api.resources.hosts.v1.Host
(*StaticHostAttributes)(nil), // 1: controller.api.resources.hosts.v1.StaticHostAttributes
(*scopes.ScopeInfo)(nil), // 2: controller.api.resources.scopes.v1.ScopeInfo
(*wrappers.StringValue)(nil), // 3: google.protobuf.StringValue
(*timestamp.Timestamp)(nil), // 4: google.protobuf.Timestamp
(*_struct.Struct)(nil), // 5: google.protobuf.Struct
}
var (
file_controller_api_resources_hosts_v1_host_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
file_controller_api_resources_hosts_v1_host_proto_goTypes = []interface{}{
(*Host)(nil), // 0: controller.api.resources.hosts.v1.Host
(*StaticHostAttributes)(nil), // 1: controller.api.resources.hosts.v1.StaticHostAttributes
(*scopes.ScopeInfo)(nil), // 2: controller.api.resources.scopes.v1.ScopeInfo
(*wrappers.StringValue)(nil), // 3: google.protobuf.StringValue
(*timestamp.Timestamp)(nil), // 4: google.protobuf.Timestamp
(*_struct.Struct)(nil), // 5: google.protobuf.Struct
}
)
var file_controller_api_resources_hosts_v1_host_proto_depIdxs = []int32{
2, // 0: controller.api.resources.hosts.v1.Host.scope:type_name -> controller.api.resources.scopes.v1.ScopeInfo
3, // 1: controller.api.resources.hosts.v1.Host.name:type_name -> google.protobuf.StringValue
@@ -7,6 +7,9 @@
package hostsets
import (
reflect "reflect"
sync "sync"
_struct "github.com/golang/protobuf/ptypes/struct"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
@@ -15,8 +18,6 @@ import (
_ "github.com/hashicorp/boundary/internal/gen/controller/protooptions"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
@@ -245,14 +246,17 @@ func file_controller_api_resources_hostsets_v1_host_set_proto_rawDescGZIP() []by
return file_controller_api_resources_hostsets_v1_host_set_proto_rawDescData
}
var file_controller_api_resources_hostsets_v1_host_set_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_controller_api_resources_hostsets_v1_host_set_proto_goTypes = []interface{}{
(*HostSet)(nil), // 0: controller.api.resources.hostsets.v1.HostSet
(*scopes.ScopeInfo)(nil), // 1: controller.api.resources.scopes.v1.ScopeInfo
(*wrappers.StringValue)(nil), // 2: google.protobuf.StringValue
(*timestamp.Timestamp)(nil), // 3: google.protobuf.Timestamp
(*_struct.Struct)(nil), // 4: google.protobuf.Struct
}
var (
file_controller_api_resources_hostsets_v1_host_set_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
file_controller_api_resources_hostsets_v1_host_set_proto_goTypes = []interface{}{
(*HostSet)(nil), // 0: controller.api.resources.hostsets.v1.HostSet
(*scopes.ScopeInfo)(nil), // 1: controller.api.resources.scopes.v1.ScopeInfo
(*wrappers.StringValue)(nil), // 2: google.protobuf.StringValue
(*timestamp.Timestamp)(nil), // 3: google.protobuf.Timestamp
(*_struct.Struct)(nil), // 4: google.protobuf.Struct
}
)
var file_controller_api_resources_hostsets_v1_host_set_proto_depIdxs = []int32{
1, // 0: controller.api.resources.hostsets.v1.HostSet.scope:type_name -> controller.api.resources.scopes.v1.ScopeInfo
2, // 1: controller.api.resources.hostsets.v1.HostSet.name:type_name -> google.protobuf.StringValue
@@ -7,14 +7,15 @@
package roles
import (
reflect "reflect"
sync "sync"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
scopes "github.com/hashicorp/boundary/internal/gen/controller/api/resources/scopes"
_ "github.com/hashicorp/boundary/internal/gen/controller/protooptions"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
@@ -484,16 +485,19 @@ func file_controller_api_resources_roles_v1_role_proto_rawDescGZIP() []byte {
return file_controller_api_resources_roles_v1_role_proto_rawDescData
}
var file_controller_api_resources_roles_v1_role_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_controller_api_resources_roles_v1_role_proto_goTypes = []interface{}{
(*Principal)(nil), // 0: controller.api.resources.roles.v1.Principal
(*GrantJson)(nil), // 1: controller.api.resources.roles.v1.GrantJson
(*Grant)(nil), // 2: controller.api.resources.roles.v1.Grant
(*Role)(nil), // 3: controller.api.resources.roles.v1.Role
(*scopes.ScopeInfo)(nil), // 4: controller.api.resources.scopes.v1.ScopeInfo
(*wrappers.StringValue)(nil), // 5: google.protobuf.StringValue
(*timestamp.Timestamp)(nil), // 6: google.protobuf.Timestamp
}
var (
file_controller_api_resources_roles_v1_role_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
file_controller_api_resources_roles_v1_role_proto_goTypes = []interface{}{
(*Principal)(nil), // 0: controller.api.resources.roles.v1.Principal
(*GrantJson)(nil), // 1: controller.api.resources.roles.v1.GrantJson
(*Grant)(nil), // 2: controller.api.resources.roles.v1.Grant
(*Role)(nil), // 3: controller.api.resources.roles.v1.Role
(*scopes.ScopeInfo)(nil), // 4: controller.api.resources.scopes.v1.ScopeInfo
(*wrappers.StringValue)(nil), // 5: google.protobuf.StringValue
(*timestamp.Timestamp)(nil), // 6: google.protobuf.Timestamp
}
)
var file_controller_api_resources_roles_v1_role_proto_depIdxs = []int32{
1, // 0: controller.api.resources.roles.v1.Grant.json:type_name -> controller.api.resources.roles.v1.GrantJson
4, // 1: controller.api.resources.roles.v1.Role.scope:type_name -> controller.api.resources.scopes.v1.ScopeInfo
@@ -7,13 +7,14 @@
package scopes
import (
reflect "reflect"
sync "sync"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
_ "github.com/hashicorp/boundary/internal/gen/controller/protooptions"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
@@ -303,13 +304,16 @@ func file_controller_api_resources_scopes_v1_scope_proto_rawDescGZIP() []byte {
return file_controller_api_resources_scopes_v1_scope_proto_rawDescData
}
var file_controller_api_resources_scopes_v1_scope_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_controller_api_resources_scopes_v1_scope_proto_goTypes = []interface{}{
(*ScopeInfo)(nil), // 0: controller.api.resources.scopes.v1.ScopeInfo
(*Scope)(nil), // 1: controller.api.resources.scopes.v1.Scope
(*wrappers.StringValue)(nil), // 2: google.protobuf.StringValue
(*timestamp.Timestamp)(nil), // 3: google.protobuf.Timestamp
}
var (
file_controller_api_resources_scopes_v1_scope_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
file_controller_api_resources_scopes_v1_scope_proto_goTypes = []interface{}{
(*ScopeInfo)(nil), // 0: controller.api.resources.scopes.v1.ScopeInfo
(*Scope)(nil), // 1: controller.api.resources.scopes.v1.Scope
(*wrappers.StringValue)(nil), // 2: google.protobuf.StringValue
(*timestamp.Timestamp)(nil), // 3: google.protobuf.Timestamp
}
)
var file_controller_api_resources_scopes_v1_scope_proto_depIdxs = []int32{
0, // 0: controller.api.resources.scopes.v1.Scope.scope:type_name -> controller.api.resources.scopes.v1.ScopeInfo
2, // 1: controller.api.resources.scopes.v1.Scope.name:type_name -> google.protobuf.StringValue
@@ -7,6 +7,9 @@
package sessions
import (
reflect "reflect"
sync "sync"
_ "github.com/golang/protobuf/ptypes/struct"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "github.com/golang/protobuf/ptypes/wrappers"
@@ -15,8 +18,6 @@ import (
_ "github.com/hashicorp/boundary/internal/gen/controller/protooptions"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
@@ -459,14 +460,17 @@ func file_controller_api_resources_sessions_v1_session_proto_rawDescGZIP() []byt
return file_controller_api_resources_sessions_v1_session_proto_rawDescData
}
var file_controller_api_resources_sessions_v1_session_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_controller_api_resources_sessions_v1_session_proto_goTypes = []interface{}{
(*WorkerInfo)(nil), // 0: controller.api.resources.sessions.v1.WorkerInfo
(*SessionState)(nil), // 1: controller.api.resources.sessions.v1.SessionState
(*Session)(nil), // 2: controller.api.resources.sessions.v1.Session
(*timestamp.Timestamp)(nil), // 3: google.protobuf.Timestamp
(*scopes.ScopeInfo)(nil), // 4: controller.api.resources.scopes.v1.ScopeInfo
}
var (
file_controller_api_resources_sessions_v1_session_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
file_controller_api_resources_sessions_v1_session_proto_goTypes = []interface{}{
(*WorkerInfo)(nil), // 0: controller.api.resources.sessions.v1.WorkerInfo
(*SessionState)(nil), // 1: controller.api.resources.sessions.v1.SessionState
(*Session)(nil), // 2: controller.api.resources.sessions.v1.Session
(*timestamp.Timestamp)(nil), // 3: google.protobuf.Timestamp
(*scopes.ScopeInfo)(nil), // 4: controller.api.resources.scopes.v1.ScopeInfo
}
)
var file_controller_api_resources_sessions_v1_session_proto_depIdxs = []int32{
3, // 0: controller.api.resources.sessions.v1.SessionState.start_time:type_name -> google.protobuf.Timestamp
3, // 1: controller.api.resources.sessions.v1.SessionState.end_time:type_name -> google.protobuf.Timestamp
@@ -7,6 +7,9 @@
package targets
import (
reflect "reflect"
sync "sync"
_struct "github.com/golang/protobuf/ptypes/struct"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
@@ -14,8 +17,6 @@ import (
_ "github.com/hashicorp/boundary/internal/gen/controller/protooptions"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
@@ -786,21 +787,24 @@ func file_controller_api_resources_targets_v1_target_proto_rawDescGZIP() []byte
return file_controller_api_resources_targets_v1_target_proto_rawDescData
}
var file_controller_api_resources_targets_v1_target_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_controller_api_resources_targets_v1_target_proto_goTypes = []interface{}{
(*HostSet)(nil), // 0: controller.api.resources.targets.v1.HostSet
(*Target)(nil), // 1: controller.api.resources.targets.v1.Target
(*TcpTargetAttributes)(nil), // 2: controller.api.resources.targets.v1.TcpTargetAttributes
(*WorkerInfo)(nil), // 3: controller.api.resources.targets.v1.WorkerInfo
(*SessionAuthorizationData)(nil), // 4: controller.api.resources.targets.v1.SessionAuthorizationData
(*SessionAuthorization)(nil), // 5: controller.api.resources.targets.v1.SessionAuthorization
(*scopes.ScopeInfo)(nil), // 6: controller.api.resources.scopes.v1.ScopeInfo
(*wrappers.StringValue)(nil), // 7: google.protobuf.StringValue
(*timestamp.Timestamp)(nil), // 8: google.protobuf.Timestamp
(*wrappers.UInt32Value)(nil), // 9: google.protobuf.UInt32Value
(*wrappers.Int32Value)(nil), // 10: google.protobuf.Int32Value
(*_struct.Struct)(nil), // 11: google.protobuf.Struct
}
var (
file_controller_api_resources_targets_v1_target_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
file_controller_api_resources_targets_v1_target_proto_goTypes = []interface{}{
(*HostSet)(nil), // 0: controller.api.resources.targets.v1.HostSet
(*Target)(nil), // 1: controller.api.resources.targets.v1.Target
(*TcpTargetAttributes)(nil), // 2: controller.api.resources.targets.v1.TcpTargetAttributes
(*WorkerInfo)(nil), // 3: controller.api.resources.targets.v1.WorkerInfo
(*SessionAuthorizationData)(nil), // 4: controller.api.resources.targets.v1.SessionAuthorizationData
(*SessionAuthorization)(nil), // 5: controller.api.resources.targets.v1.SessionAuthorization
(*scopes.ScopeInfo)(nil), // 6: controller.api.resources.scopes.v1.ScopeInfo
(*wrappers.StringValue)(nil), // 7: google.protobuf.StringValue
(*timestamp.Timestamp)(nil), // 8: google.protobuf.Timestamp
(*wrappers.UInt32Value)(nil), // 9: google.protobuf.UInt32Value
(*wrappers.Int32Value)(nil), // 10: google.protobuf.Int32Value
(*_struct.Struct)(nil), // 11: google.protobuf.Struct
}
)
var file_controller_api_resources_targets_v1_target_proto_depIdxs = []int32{
6, // 0: controller.api.resources.targets.v1.Target.scope:type_name -> controller.api.resources.scopes.v1.ScopeInfo
7, // 1: controller.api.resources.targets.v1.Target.name:type_name -> google.protobuf.StringValue
@@ -7,14 +7,15 @@
package users
import (
reflect "reflect"
sync "sync"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
scopes "github.com/hashicorp/boundary/internal/gen/controller/api/resources/scopes"
_ "github.com/hashicorp/boundary/internal/gen/controller/protooptions"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
@@ -288,14 +289,17 @@ func file_controller_api_resources_users_v1_user_proto_rawDescGZIP() []byte {
return file_controller_api_resources_users_v1_user_proto_rawDescData
}
var file_controller_api_resources_users_v1_user_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_controller_api_resources_users_v1_user_proto_goTypes = []interface{}{
(*Account)(nil), // 0: controller.api.resources.users.v1.Account
(*User)(nil), // 1: controller.api.resources.users.v1.User
(*scopes.ScopeInfo)(nil), // 2: controller.api.resources.scopes.v1.ScopeInfo
(*wrappers.StringValue)(nil), // 3: google.protobuf.StringValue
(*timestamp.Timestamp)(nil), // 4: google.protobuf.Timestamp
}
var (
file_controller_api_resources_users_v1_user_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
file_controller_api_resources_users_v1_user_proto_goTypes = []interface{}{
(*Account)(nil), // 0: controller.api.resources.users.v1.Account
(*User)(nil), // 1: controller.api.resources.users.v1.User
(*scopes.ScopeInfo)(nil), // 2: controller.api.resources.scopes.v1.ScopeInfo
(*wrappers.StringValue)(nil), // 3: google.protobuf.StringValue
(*timestamp.Timestamp)(nil), // 4: google.protobuf.Timestamp
}
)
var file_controller_api_resources_users_v1_user_proto_depIdxs = []int32{
2, // 0: controller.api.resources.users.v1.User.scope:type_name -> controller.api.resources.scopes.v1.ScopeInfo
3, // 1: controller.api.resources.users.v1.User.name:type_name -> google.protobuf.StringValue
@@ -7,6 +7,9 @@
package services
import (
reflect "reflect"
sync "sync"
_ "github.com/golang/protobuf/ptypes/wrappers"
_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
accounts "github.com/hashicorp/boundary/internal/gen/controller/api/resources/accounts"
@@ -14,8 +17,6 @@ import (
field_mask "google.golang.org/genproto/protobuf/field_mask"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
@@ -945,25 +946,28 @@ func file_controller_api_services_v1_account_service_proto_rawDescGZIP() []byte
return file_controller_api_services_v1_account_service_proto_rawDescData
}
var file_controller_api_services_v1_account_service_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
var file_controller_api_services_v1_account_service_proto_goTypes = []interface{}{
(*GetAccountRequest)(nil), // 0: controller.api.services.v1.GetAccountRequest
(*GetAccountResponse)(nil), // 1: controller.api.services.v1.GetAccountResponse
(*ListAccountsRequest)(nil), // 2: controller.api.services.v1.ListAccountsRequest
(*ListAccountsResponse)(nil), // 3: controller.api.services.v1.ListAccountsResponse
(*CreateAccountRequest)(nil), // 4: controller.api.services.v1.CreateAccountRequest
(*CreateAccountResponse)(nil), // 5: controller.api.services.v1.CreateAccountResponse
(*UpdateAccountRequest)(nil), // 6: controller.api.services.v1.UpdateAccountRequest
(*UpdateAccountResponse)(nil), // 7: controller.api.services.v1.UpdateAccountResponse
(*DeleteAccountRequest)(nil), // 8: controller.api.services.v1.DeleteAccountRequest
(*DeleteAccountResponse)(nil), // 9: controller.api.services.v1.DeleteAccountResponse
(*SetPasswordRequest)(nil), // 10: controller.api.services.v1.SetPasswordRequest
(*SetPasswordResponse)(nil), // 11: controller.api.services.v1.SetPasswordResponse
(*ChangePasswordRequest)(nil), // 12: controller.api.services.v1.ChangePasswordRequest
(*ChangePasswordResponse)(nil), // 13: controller.api.services.v1.ChangePasswordResponse
(*accounts.Account)(nil), // 14: controller.api.resources.accounts.v1.Account
(*field_mask.FieldMask)(nil), // 15: google.protobuf.FieldMask
}
var (
file_controller_api_services_v1_account_service_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
file_controller_api_services_v1_account_service_proto_goTypes = []interface{}{
(*GetAccountRequest)(nil), // 0: controller.api.services.v1.GetAccountRequest
(*GetAccountResponse)(nil), // 1: controller.api.services.v1.GetAccountResponse
(*ListAccountsRequest)(nil), // 2: controller.api.services.v1.ListAccountsRequest
(*ListAccountsResponse)(nil), // 3: controller.api.services.v1.ListAccountsResponse
(*CreateAccountRequest)(nil), // 4: controller.api.services.v1.CreateAccountRequest
(*CreateAccountResponse)(nil), // 5: controller.api.services.v1.CreateAccountResponse
(*UpdateAccountRequest)(nil), // 6: controller.api.services.v1.UpdateAccountRequest
(*UpdateAccountResponse)(nil), // 7: controller.api.services.v1.UpdateAccountResponse
(*DeleteAccountRequest)(nil), // 8: controller.api.services.v1.DeleteAccountRequest
(*DeleteAccountResponse)(nil), // 9: controller.api.services.v1.DeleteAccountResponse
(*SetPasswordRequest)(nil), // 10: controller.api.services.v1.SetPasswordRequest
(*SetPasswordResponse)(nil), // 11: controller.api.services.v1.SetPasswordResponse
(*ChangePasswordRequest)(nil), // 12: controller.api.services.v1.ChangePasswordRequest
(*ChangePasswordResponse)(nil), // 13: controller.api.services.v1.ChangePasswordResponse
(*accounts.Account)(nil), // 14: controller.api.resources.accounts.v1.Account
(*field_mask.FieldMask)(nil), // 15: google.protobuf.FieldMask
}
)
var file_controller_api_services_v1_account_service_proto_depIdxs = []int32{
14, // 0: controller.api.services.v1.GetAccountResponse.item:type_name -> controller.api.resources.accounts.v1.Account
14, // 1: controller.api.services.v1.ListAccountsResponse.items:type_name -> controller.api.resources.accounts.v1.Account
@@ -24,12 +24,14 @@ import (
)
// Suppress "imported and not used" errors
var _ codes.Code
var _ io.Reader
var _ status.Status
var _ = runtime.String
var _ = utilities.NewDoubleArray
var _ = metadata.Join
var (
_ codes.Code
_ io.Reader
_ status.Status
_ = runtime.String
_ = utilities.NewDoubleArray
_ = metadata.Join
)
func request_AccountService_GetAccount_0(ctx context.Context, marshaler runtime.Marshaler, client AccountServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq GetAccountRequest
@@ -54,7 +56,6 @@ func request_AccountService_GetAccount_0(ctx context.Context, marshaler runtime.
msg, err := client.GetAccount(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_AccountService_GetAccount_0(ctx context.Context, marshaler runtime.Marshaler, server AccountServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -80,12 +81,9 @@ func local_request_AccountService_GetAccount_0(ctx context.Context, marshaler ru
msg, err := server.GetAccount(ctx, &protoReq)
return msg, metadata, err
}
var (
filter_AccountService_ListAccounts_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
)
var filter_AccountService_ListAccounts_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
func request_AccountService_ListAccounts_0(ctx context.Context, marshaler runtime.Marshaler, client AccountServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq ListAccountsRequest
@@ -100,7 +98,6 @@ func request_AccountService_ListAccounts_0(ctx context.Context, marshaler runtim
msg, err := client.ListAccounts(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_AccountService_ListAccounts_0(ctx context.Context, marshaler runtime.Marshaler, server AccountServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -116,7 +113,6 @@ func local_request_AccountService_ListAccounts_0(ctx context.Context, marshaler
msg, err := server.ListAccounts(ctx, &protoReq)
return msg, metadata, err
}
func request_AccountService_CreateAccount_0(ctx context.Context, marshaler runtime.Marshaler, client AccountServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -133,7 +129,6 @@ func request_AccountService_CreateAccount_0(ctx context.Context, marshaler runti
msg, err := client.CreateAccount(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_AccountService_CreateAccount_0(ctx context.Context, marshaler runtime.Marshaler, server AccountServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -150,12 +145,9 @@ func local_request_AccountService_CreateAccount_0(ctx context.Context, marshaler
msg, err := server.CreateAccount(ctx, &protoReq)
return msg, metadata, err
}
var (
filter_AccountService_UpdateAccount_0 = &utilities.DoubleArray{Encoding: map[string]int{"item": 0, "id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}}
)
var filter_AccountService_UpdateAccount_0 = &utilities.DoubleArray{Encoding: map[string]int{"item": 0, "id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}}
func request_AccountService_UpdateAccount_0(ctx context.Context, marshaler runtime.Marshaler, client AccountServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq UpdateAccountRequest
@@ -202,7 +194,6 @@ func request_AccountService_UpdateAccount_0(ctx context.Context, marshaler runti
msg, err := client.UpdateAccount(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_AccountService_UpdateAccount_0(ctx context.Context, marshaler runtime.Marshaler, server AccountServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -250,7 +241,6 @@ func local_request_AccountService_UpdateAccount_0(ctx context.Context, marshaler
msg, err := server.UpdateAccount(ctx, &protoReq)
return msg, metadata, err
}
func request_AccountService_DeleteAccount_0(ctx context.Context, marshaler runtime.Marshaler, client AccountServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -276,7 +266,6 @@ func request_AccountService_DeleteAccount_0(ctx context.Context, marshaler runti
msg, err := client.DeleteAccount(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_AccountService_DeleteAccount_0(ctx context.Context, marshaler runtime.Marshaler, server AccountServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -302,7 +291,6 @@ func local_request_AccountService_DeleteAccount_0(ctx context.Context, marshaler
msg, err := server.DeleteAccount(ctx, &protoReq)
return msg, metadata, err
}
func request_AccountService_SetPassword_0(ctx context.Context, marshaler runtime.Marshaler, client AccountServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -336,7 +324,6 @@ func request_AccountService_SetPassword_0(ctx context.Context, marshaler runtime
msg, err := client.SetPassword(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_AccountService_SetPassword_0(ctx context.Context, marshaler runtime.Marshaler, server AccountServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -370,7 +357,6 @@ func local_request_AccountService_SetPassword_0(ctx context.Context, marshaler r
msg, err := server.SetPassword(ctx, &protoReq)
return msg, metadata, err
}
func request_AccountService_ChangePassword_0(ctx context.Context, marshaler runtime.Marshaler, client AccountServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -404,7 +390,6 @@ func request_AccountService_ChangePassword_0(ctx context.Context, marshaler runt
msg, err := client.ChangePassword(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_AccountService_ChangePassword_0(ctx context.Context, marshaler runtime.Marshaler, server AccountServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -438,7 +423,6 @@ func local_request_AccountService_ChangePassword_0(ctx context.Context, marshale
msg, err := server.ChangePassword(ctx, &protoReq)
return msg, metadata, err
}
// RegisterAccountServiceHandlerServer registers the http handlers for service AccountService to "mux".
@@ -446,7 +430,6 @@ func local_request_AccountService_ChangePassword_0(ctx context.Context, marshale
// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAccountServiceHandlerFromEndpoint instead.
func RegisterAccountServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AccountServiceServer) error {
mux.Handle("GET", pattern_AccountService_GetAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
@@ -467,7 +450,6 @@ func RegisterAccountServiceHandlerServer(ctx context.Context, mux *runtime.Serve
}
forward_AccountService_GetAccount_0(ctx, mux, outboundMarshaler, w, req, response_AccountService_GetAccount_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_AccountService_ListAccounts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -490,7 +472,6 @@ func RegisterAccountServiceHandlerServer(ctx context.Context, mux *runtime.Serve
}
forward_AccountService_ListAccounts_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_AccountService_CreateAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -513,7 +494,6 @@ func RegisterAccountServiceHandlerServer(ctx context.Context, mux *runtime.Serve
}
forward_AccountService_CreateAccount_0(ctx, mux, outboundMarshaler, w, req, response_AccountService_CreateAccount_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("PATCH", pattern_AccountService_UpdateAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -536,7 +516,6 @@ func RegisterAccountServiceHandlerServer(ctx context.Context, mux *runtime.Serve
}
forward_AccountService_UpdateAccount_0(ctx, mux, outboundMarshaler, w, req, response_AccountService_UpdateAccount_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("DELETE", pattern_AccountService_DeleteAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -559,7 +538,6 @@ func RegisterAccountServiceHandlerServer(ctx context.Context, mux *runtime.Serve
}
forward_AccountService_DeleteAccount_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_AccountService_SetPassword_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -582,7 +560,6 @@ func RegisterAccountServiceHandlerServer(ctx context.Context, mux *runtime.Serve
}
forward_AccountService_SetPassword_0(ctx, mux, outboundMarshaler, w, req, response_AccountService_SetPassword_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_AccountService_ChangePassword_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -605,7 +582,6 @@ func RegisterAccountServiceHandlerServer(ctx context.Context, mux *runtime.Serve
}
forward_AccountService_ChangePassword_0(ctx, mux, outboundMarshaler, w, req, response_AccountService_ChangePassword_0{resp}, mux.GetForwardResponseOptions()...)
})
return nil
@@ -648,7 +624,6 @@ func RegisterAccountServiceHandler(ctx context.Context, mux *runtime.ServeMux, c
// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
// "AccountServiceClient" to call the correct interceptors.
func RegisterAccountServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccountServiceClient) error {
mux.Handle("GET", pattern_AccountService_GetAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
@@ -666,7 +641,6 @@ func RegisterAccountServiceHandlerClient(ctx context.Context, mux *runtime.Serve
}
forward_AccountService_GetAccount_0(ctx, mux, outboundMarshaler, w, req, response_AccountService_GetAccount_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_AccountService_ListAccounts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -686,7 +660,6 @@ func RegisterAccountServiceHandlerClient(ctx context.Context, mux *runtime.Serve
}
forward_AccountService_ListAccounts_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_AccountService_CreateAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -706,7 +679,6 @@ func RegisterAccountServiceHandlerClient(ctx context.Context, mux *runtime.Serve
}
forward_AccountService_CreateAccount_0(ctx, mux, outboundMarshaler, w, req, response_AccountService_CreateAccount_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("PATCH", pattern_AccountService_UpdateAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -726,7 +698,6 @@ func RegisterAccountServiceHandlerClient(ctx context.Context, mux *runtime.Serve
}
forward_AccountService_UpdateAccount_0(ctx, mux, outboundMarshaler, w, req, response_AccountService_UpdateAccount_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("DELETE", pattern_AccountService_DeleteAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -746,7 +717,6 @@ func RegisterAccountServiceHandlerClient(ctx context.Context, mux *runtime.Serve
}
forward_AccountService_DeleteAccount_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_AccountService_SetPassword_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -766,7 +736,6 @@ func RegisterAccountServiceHandlerClient(ctx context.Context, mux *runtime.Serve
}
forward_AccountService_SetPassword_0(ctx, mux, outboundMarshaler, w, req, response_AccountService_SetPassword_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_AccountService_ChangePassword_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -786,7 +755,6 @@ func RegisterAccountServiceHandlerClient(ctx context.Context, mux *runtime.Serve
}
forward_AccountService_ChangePassword_0(ctx, mux, outboundMarshaler, w, req, response_AccountService_ChangePassword_0{resp}, mux.GetForwardResponseOptions()...)
})
return nil
@@ -4,6 +4,7 @@ package services
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
@@ -170,27 +171,32 @@ type AccountServiceServer interface {
}
// UnimplementedAccountServiceServer must be embedded to have forward compatible implementations.
type UnimplementedAccountServiceServer struct {
}
type UnimplementedAccountServiceServer struct{}
func (UnimplementedAccountServiceServer) GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetAccount not implemented")
}
func (UnimplementedAccountServiceServer) ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListAccounts not implemented")
}
func (UnimplementedAccountServiceServer) CreateAccount(context.Context, *CreateAccountRequest) (*CreateAccountResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateAccount not implemented")
}
func (UnimplementedAccountServiceServer) UpdateAccount(context.Context, *UpdateAccountRequest) (*UpdateAccountResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateAccount not implemented")
}
func (UnimplementedAccountServiceServer) DeleteAccount(context.Context, *DeleteAccountRequest) (*DeleteAccountResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteAccount not implemented")
}
func (UnimplementedAccountServiceServer) SetPassword(context.Context, *SetPasswordRequest) (*SetPasswordResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetPassword not implemented")
}
func (UnimplementedAccountServiceServer) ChangePassword(context.Context, *ChangePasswordRequest) (*ChangePasswordResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ChangePassword not implemented")
}
@@ -7,6 +7,9 @@
package services
import (
reflect "reflect"
sync "sync"
_struct "github.com/golang/protobuf/ptypes/struct"
_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
authmethods "github.com/hashicorp/boundary/internal/gen/controller/api/resources/authmethods"
@@ -15,8 +18,6 @@ import (
field_mask "google.golang.org/genproto/protobuf/field_mask"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
@@ -886,26 +887,29 @@ func file_controller_api_services_v1_auth_method_service_proto_rawDescGZIP() []b
return file_controller_api_services_v1_auth_method_service_proto_rawDescData
}
var file_controller_api_services_v1_auth_method_service_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
var file_controller_api_services_v1_auth_method_service_proto_goTypes = []interface{}{
(*GetAuthMethodRequest)(nil), // 0: controller.api.services.v1.GetAuthMethodRequest
(*GetAuthMethodResponse)(nil), // 1: controller.api.services.v1.GetAuthMethodResponse
(*ListAuthMethodsRequest)(nil), // 2: controller.api.services.v1.ListAuthMethodsRequest
(*ListAuthMethodsResponse)(nil), // 3: controller.api.services.v1.ListAuthMethodsResponse
(*CreateAuthMethodRequest)(nil), // 4: controller.api.services.v1.CreateAuthMethodRequest
(*CreateAuthMethodResponse)(nil), // 5: controller.api.services.v1.CreateAuthMethodResponse
(*UpdateAuthMethodRequest)(nil), // 6: controller.api.services.v1.UpdateAuthMethodRequest
(*UpdateAuthMethodResponse)(nil), // 7: controller.api.services.v1.UpdateAuthMethodResponse
(*DeleteAuthMethodRequest)(nil), // 8: controller.api.services.v1.DeleteAuthMethodRequest
(*DeleteAuthMethodResponse)(nil), // 9: controller.api.services.v1.DeleteAuthMethodResponse
(*PasswordCredentials)(nil), // 10: controller.api.services.v1.PasswordCredentials
(*AuthenticateRequest)(nil), // 11: controller.api.services.v1.AuthenticateRequest
(*AuthenticateResponse)(nil), // 12: controller.api.services.v1.AuthenticateResponse
(*authmethods.AuthMethod)(nil), // 13: controller.api.resources.authmethods.v1.AuthMethod
(*field_mask.FieldMask)(nil), // 14: google.protobuf.FieldMask
(*_struct.Struct)(nil), // 15: google.protobuf.Struct
(*authtokens.AuthToken)(nil), // 16: controller.api.resources.authtokens.v1.AuthToken
}
var (
file_controller_api_services_v1_auth_method_service_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
file_controller_api_services_v1_auth_method_service_proto_goTypes = []interface{}{
(*GetAuthMethodRequest)(nil), // 0: controller.api.services.v1.GetAuthMethodRequest
(*GetAuthMethodResponse)(nil), // 1: controller.api.services.v1.GetAuthMethodResponse
(*ListAuthMethodsRequest)(nil), // 2: controller.api.services.v1.ListAuthMethodsRequest
(*ListAuthMethodsResponse)(nil), // 3: controller.api.services.v1.ListAuthMethodsResponse
(*CreateAuthMethodRequest)(nil), // 4: controller.api.services.v1.CreateAuthMethodRequest
(*CreateAuthMethodResponse)(nil), // 5: controller.api.services.v1.CreateAuthMethodResponse
(*UpdateAuthMethodRequest)(nil), // 6: controller.api.services.v1.UpdateAuthMethodRequest
(*UpdateAuthMethodResponse)(nil), // 7: controller.api.services.v1.UpdateAuthMethodResponse
(*DeleteAuthMethodRequest)(nil), // 8: controller.api.services.v1.DeleteAuthMethodRequest
(*DeleteAuthMethodResponse)(nil), // 9: controller.api.services.v1.DeleteAuthMethodResponse
(*PasswordCredentials)(nil), // 10: controller.api.services.v1.PasswordCredentials
(*AuthenticateRequest)(nil), // 11: controller.api.services.v1.AuthenticateRequest
(*AuthenticateResponse)(nil), // 12: controller.api.services.v1.AuthenticateResponse
(*authmethods.AuthMethod)(nil), // 13: controller.api.resources.authmethods.v1.AuthMethod
(*field_mask.FieldMask)(nil), // 14: google.protobuf.FieldMask
(*_struct.Struct)(nil), // 15: google.protobuf.Struct
(*authtokens.AuthToken)(nil), // 16: controller.api.resources.authtokens.v1.AuthToken
}
)
var file_controller_api_services_v1_auth_method_service_proto_depIdxs = []int32{
13, // 0: controller.api.services.v1.GetAuthMethodResponse.item:type_name -> controller.api.resources.authmethods.v1.AuthMethod
13, // 1: controller.api.services.v1.ListAuthMethodsResponse.items:type_name -> controller.api.resources.authmethods.v1.AuthMethod
@@ -24,12 +24,14 @@ import (
)
// Suppress "imported and not used" errors
var _ codes.Code
var _ io.Reader
var _ status.Status
var _ = runtime.String
var _ = utilities.NewDoubleArray
var _ = metadata.Join
var (
_ codes.Code
_ io.Reader
_ status.Status
_ = runtime.String
_ = utilities.NewDoubleArray
_ = metadata.Join
)
func request_AuthMethodService_GetAuthMethod_0(ctx context.Context, marshaler runtime.Marshaler, client AuthMethodServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq GetAuthMethodRequest
@@ -54,7 +56,6 @@ func request_AuthMethodService_GetAuthMethod_0(ctx context.Context, marshaler ru
msg, err := client.GetAuthMethod(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_AuthMethodService_GetAuthMethod_0(ctx context.Context, marshaler runtime.Marshaler, server AuthMethodServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -80,12 +81,9 @@ func local_request_AuthMethodService_GetAuthMethod_0(ctx context.Context, marsha
msg, err := server.GetAuthMethod(ctx, &protoReq)
return msg, metadata, err
}
var (
filter_AuthMethodService_ListAuthMethods_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
)
var filter_AuthMethodService_ListAuthMethods_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
func request_AuthMethodService_ListAuthMethods_0(ctx context.Context, marshaler runtime.Marshaler, client AuthMethodServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq ListAuthMethodsRequest
@@ -100,7 +98,6 @@ func request_AuthMethodService_ListAuthMethods_0(ctx context.Context, marshaler
msg, err := client.ListAuthMethods(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_AuthMethodService_ListAuthMethods_0(ctx context.Context, marshaler runtime.Marshaler, server AuthMethodServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -116,7 +113,6 @@ func local_request_AuthMethodService_ListAuthMethods_0(ctx context.Context, mars
msg, err := server.ListAuthMethods(ctx, &protoReq)
return msg, metadata, err
}
func request_AuthMethodService_CreateAuthMethod_0(ctx context.Context, marshaler runtime.Marshaler, client AuthMethodServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -133,7 +129,6 @@ func request_AuthMethodService_CreateAuthMethod_0(ctx context.Context, marshaler
msg, err := client.CreateAuthMethod(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_AuthMethodService_CreateAuthMethod_0(ctx context.Context, marshaler runtime.Marshaler, server AuthMethodServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -150,12 +145,9 @@ func local_request_AuthMethodService_CreateAuthMethod_0(ctx context.Context, mar
msg, err := server.CreateAuthMethod(ctx, &protoReq)
return msg, metadata, err
}
var (
filter_AuthMethodService_UpdateAuthMethod_0 = &utilities.DoubleArray{Encoding: map[string]int{"item": 0, "id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}}
)
var filter_AuthMethodService_UpdateAuthMethod_0 = &utilities.DoubleArray{Encoding: map[string]int{"item": 0, "id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}}
func request_AuthMethodService_UpdateAuthMethod_0(ctx context.Context, marshaler runtime.Marshaler, client AuthMethodServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq UpdateAuthMethodRequest
@@ -202,7 +194,6 @@ func request_AuthMethodService_UpdateAuthMethod_0(ctx context.Context, marshaler
msg, err := client.UpdateAuthMethod(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_AuthMethodService_UpdateAuthMethod_0(ctx context.Context, marshaler runtime.Marshaler, server AuthMethodServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -250,7 +241,6 @@ func local_request_AuthMethodService_UpdateAuthMethod_0(ctx context.Context, mar
msg, err := server.UpdateAuthMethod(ctx, &protoReq)
return msg, metadata, err
}
func request_AuthMethodService_DeleteAuthMethod_0(ctx context.Context, marshaler runtime.Marshaler, client AuthMethodServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -276,7 +266,6 @@ func request_AuthMethodService_DeleteAuthMethod_0(ctx context.Context, marshaler
msg, err := client.DeleteAuthMethod(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_AuthMethodService_DeleteAuthMethod_0(ctx context.Context, marshaler runtime.Marshaler, server AuthMethodServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -302,7 +291,6 @@ func local_request_AuthMethodService_DeleteAuthMethod_0(ctx context.Context, mar
msg, err := server.DeleteAuthMethod(ctx, &protoReq)
return msg, metadata, err
}
func request_AuthMethodService_Authenticate_0(ctx context.Context, marshaler runtime.Marshaler, client AuthMethodServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -336,7 +324,6 @@ func request_AuthMethodService_Authenticate_0(ctx context.Context, marshaler run
msg, err := client.Authenticate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_AuthMethodService_Authenticate_0(ctx context.Context, marshaler runtime.Marshaler, server AuthMethodServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -370,7 +357,6 @@ func local_request_AuthMethodService_Authenticate_0(ctx context.Context, marshal
msg, err := server.Authenticate(ctx, &protoReq)
return msg, metadata, err
}
// RegisterAuthMethodServiceHandlerServer registers the http handlers for service AuthMethodService to "mux".
@@ -378,7 +364,6 @@ func local_request_AuthMethodService_Authenticate_0(ctx context.Context, marshal
// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAuthMethodServiceHandlerFromEndpoint instead.
func RegisterAuthMethodServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthMethodServiceServer) error {
mux.Handle("GET", pattern_AuthMethodService_GetAuthMethod_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
@@ -399,7 +384,6 @@ func RegisterAuthMethodServiceHandlerServer(ctx context.Context, mux *runtime.Se
}
forward_AuthMethodService_GetAuthMethod_0(ctx, mux, outboundMarshaler, w, req, response_AuthMethodService_GetAuthMethod_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_AuthMethodService_ListAuthMethods_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -422,7 +406,6 @@ func RegisterAuthMethodServiceHandlerServer(ctx context.Context, mux *runtime.Se
}
forward_AuthMethodService_ListAuthMethods_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_AuthMethodService_CreateAuthMethod_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -445,7 +428,6 @@ func RegisterAuthMethodServiceHandlerServer(ctx context.Context, mux *runtime.Se
}
forward_AuthMethodService_CreateAuthMethod_0(ctx, mux, outboundMarshaler, w, req, response_AuthMethodService_CreateAuthMethod_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("PATCH", pattern_AuthMethodService_UpdateAuthMethod_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -468,7 +450,6 @@ func RegisterAuthMethodServiceHandlerServer(ctx context.Context, mux *runtime.Se
}
forward_AuthMethodService_UpdateAuthMethod_0(ctx, mux, outboundMarshaler, w, req, response_AuthMethodService_UpdateAuthMethod_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("DELETE", pattern_AuthMethodService_DeleteAuthMethod_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -491,7 +472,6 @@ func RegisterAuthMethodServiceHandlerServer(ctx context.Context, mux *runtime.Se
}
forward_AuthMethodService_DeleteAuthMethod_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_AuthMethodService_Authenticate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -514,7 +494,6 @@ func RegisterAuthMethodServiceHandlerServer(ctx context.Context, mux *runtime.Se
}
forward_AuthMethodService_Authenticate_0(ctx, mux, outboundMarshaler, w, req, response_AuthMethodService_Authenticate_0{resp}, mux.GetForwardResponseOptions()...)
})
return nil
@@ -557,7 +536,6 @@ func RegisterAuthMethodServiceHandler(ctx context.Context, mux *runtime.ServeMux
// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
// "AuthMethodServiceClient" to call the correct interceptors.
func RegisterAuthMethodServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthMethodServiceClient) error {
mux.Handle("GET", pattern_AuthMethodService_GetAuthMethod_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
@@ -575,7 +553,6 @@ func RegisterAuthMethodServiceHandlerClient(ctx context.Context, mux *runtime.Se
}
forward_AuthMethodService_GetAuthMethod_0(ctx, mux, outboundMarshaler, w, req, response_AuthMethodService_GetAuthMethod_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_AuthMethodService_ListAuthMethods_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -595,7 +572,6 @@ func RegisterAuthMethodServiceHandlerClient(ctx context.Context, mux *runtime.Se
}
forward_AuthMethodService_ListAuthMethods_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_AuthMethodService_CreateAuthMethod_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -615,7 +591,6 @@ func RegisterAuthMethodServiceHandlerClient(ctx context.Context, mux *runtime.Se
}
forward_AuthMethodService_CreateAuthMethod_0(ctx, mux, outboundMarshaler, w, req, response_AuthMethodService_CreateAuthMethod_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("PATCH", pattern_AuthMethodService_UpdateAuthMethod_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -635,7 +610,6 @@ func RegisterAuthMethodServiceHandlerClient(ctx context.Context, mux *runtime.Se
}
forward_AuthMethodService_UpdateAuthMethod_0(ctx, mux, outboundMarshaler, w, req, response_AuthMethodService_UpdateAuthMethod_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("DELETE", pattern_AuthMethodService_DeleteAuthMethod_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -655,7 +629,6 @@ func RegisterAuthMethodServiceHandlerClient(ctx context.Context, mux *runtime.Se
}
forward_AuthMethodService_DeleteAuthMethod_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_AuthMethodService_Authenticate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -675,7 +648,6 @@ func RegisterAuthMethodServiceHandlerClient(ctx context.Context, mux *runtime.Se
}
forward_AuthMethodService_Authenticate_0(ctx, mux, outboundMarshaler, w, req, response_AuthMethodService_Authenticate_0{resp}, mux.GetForwardResponseOptions()...)
})
return nil
@@ -4,6 +4,7 @@ package services
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
@@ -145,24 +146,28 @@ type AuthMethodServiceServer interface {
}
// UnimplementedAuthMethodServiceServer must be embedded to have forward compatible implementations.
type UnimplementedAuthMethodServiceServer struct {
}
type UnimplementedAuthMethodServiceServer struct{}
func (UnimplementedAuthMethodServiceServer) GetAuthMethod(context.Context, *GetAuthMethodRequest) (*GetAuthMethodResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetAuthMethod not implemented")
}
func (UnimplementedAuthMethodServiceServer) ListAuthMethods(context.Context, *ListAuthMethodsRequest) (*ListAuthMethodsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListAuthMethods not implemented")
}
func (UnimplementedAuthMethodServiceServer) CreateAuthMethod(context.Context, *CreateAuthMethodRequest) (*CreateAuthMethodResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateAuthMethod not implemented")
}
func (UnimplementedAuthMethodServiceServer) UpdateAuthMethod(context.Context, *UpdateAuthMethodRequest) (*UpdateAuthMethodResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateAuthMethod not implemented")
}
func (UnimplementedAuthMethodServiceServer) DeleteAuthMethod(context.Context, *DeleteAuthMethodRequest) (*DeleteAuthMethodResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteAuthMethod not implemented")
}
func (UnimplementedAuthMethodServiceServer) Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Authenticate not implemented")
}
@@ -7,13 +7,14 @@
package services
import (
reflect "reflect"
sync "sync"
_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
authtokens "github.com/hashicorp/boundary/internal/gen/controller/api/resources/authtokens"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
@@ -389,16 +390,19 @@ func file_controller_api_services_v1_authtokens_service_proto_rawDescGZIP() []by
return file_controller_api_services_v1_authtokens_service_proto_rawDescData
}
var file_controller_api_services_v1_authtokens_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_controller_api_services_v1_authtokens_service_proto_goTypes = []interface{}{
(*GetAuthTokenRequest)(nil), // 0: controller.api.services.v1.GetAuthTokenRequest
(*GetAuthTokenResponse)(nil), // 1: controller.api.services.v1.GetAuthTokenResponse
(*ListAuthTokensRequest)(nil), // 2: controller.api.services.v1.ListAuthTokensRequest
(*ListAuthTokensResponse)(nil), // 3: controller.api.services.v1.ListAuthTokensResponse
(*DeleteAuthTokenRequest)(nil), // 4: controller.api.services.v1.DeleteAuthTokenRequest
(*DeleteAuthTokenResponse)(nil), // 5: controller.api.services.v1.DeleteAuthTokenResponse
(*authtokens.AuthToken)(nil), // 6: controller.api.resources.authtokens.v1.AuthToken
}
var (
file_controller_api_services_v1_authtokens_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
file_controller_api_services_v1_authtokens_service_proto_goTypes = []interface{}{
(*GetAuthTokenRequest)(nil), // 0: controller.api.services.v1.GetAuthTokenRequest
(*GetAuthTokenResponse)(nil), // 1: controller.api.services.v1.GetAuthTokenResponse
(*ListAuthTokensRequest)(nil), // 2: controller.api.services.v1.ListAuthTokensRequest
(*ListAuthTokensResponse)(nil), // 3: controller.api.services.v1.ListAuthTokensResponse
(*DeleteAuthTokenRequest)(nil), // 4: controller.api.services.v1.DeleteAuthTokenRequest
(*DeleteAuthTokenResponse)(nil), // 5: controller.api.services.v1.DeleteAuthTokenResponse
(*authtokens.AuthToken)(nil), // 6: controller.api.resources.authtokens.v1.AuthToken
}
)
var file_controller_api_services_v1_authtokens_service_proto_depIdxs = []int32{
6, // 0: controller.api.services.v1.GetAuthTokenResponse.item:type_name -> controller.api.resources.authtokens.v1.AuthToken
6, // 1: controller.api.services.v1.ListAuthTokensResponse.items:type_name -> controller.api.resources.authtokens.v1.AuthToken
@@ -24,12 +24,14 @@ import (
)
// Suppress "imported and not used" errors
var _ codes.Code
var _ io.Reader
var _ status.Status
var _ = runtime.String
var _ = utilities.NewDoubleArray
var _ = metadata.Join
var (
_ codes.Code
_ io.Reader
_ status.Status
_ = runtime.String
_ = utilities.NewDoubleArray
_ = metadata.Join
)
func request_AuthTokenService_GetAuthToken_0(ctx context.Context, marshaler runtime.Marshaler, client AuthTokenServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq GetAuthTokenRequest
@@ -54,7 +56,6 @@ func request_AuthTokenService_GetAuthToken_0(ctx context.Context, marshaler runt
msg, err := client.GetAuthToken(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_AuthTokenService_GetAuthToken_0(ctx context.Context, marshaler runtime.Marshaler, server AuthTokenServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -80,12 +81,9 @@ func local_request_AuthTokenService_GetAuthToken_0(ctx context.Context, marshale
msg, err := server.GetAuthToken(ctx, &protoReq)
return msg, metadata, err
}
var (
filter_AuthTokenService_ListAuthTokens_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
)
var filter_AuthTokenService_ListAuthTokens_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
func request_AuthTokenService_ListAuthTokens_0(ctx context.Context, marshaler runtime.Marshaler, client AuthTokenServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq ListAuthTokensRequest
@@ -100,7 +98,6 @@ func request_AuthTokenService_ListAuthTokens_0(ctx context.Context, marshaler ru
msg, err := client.ListAuthTokens(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_AuthTokenService_ListAuthTokens_0(ctx context.Context, marshaler runtime.Marshaler, server AuthTokenServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -116,7 +113,6 @@ func local_request_AuthTokenService_ListAuthTokens_0(ctx context.Context, marsha
msg, err := server.ListAuthTokens(ctx, &protoReq)
return msg, metadata, err
}
func request_AuthTokenService_DeleteAuthToken_0(ctx context.Context, marshaler runtime.Marshaler, client AuthTokenServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -142,7 +138,6 @@ func request_AuthTokenService_DeleteAuthToken_0(ctx context.Context, marshaler r
msg, err := client.DeleteAuthToken(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_AuthTokenService_DeleteAuthToken_0(ctx context.Context, marshaler runtime.Marshaler, server AuthTokenServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -168,7 +163,6 @@ func local_request_AuthTokenService_DeleteAuthToken_0(ctx context.Context, marsh
msg, err := server.DeleteAuthToken(ctx, &protoReq)
return msg, metadata, err
}
// RegisterAuthTokenServiceHandlerServer registers the http handlers for service AuthTokenService to "mux".
@@ -176,7 +170,6 @@ func local_request_AuthTokenService_DeleteAuthToken_0(ctx context.Context, marsh
// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAuthTokenServiceHandlerFromEndpoint instead.
func RegisterAuthTokenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthTokenServiceServer) error {
mux.Handle("GET", pattern_AuthTokenService_GetAuthToken_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
@@ -197,7 +190,6 @@ func RegisterAuthTokenServiceHandlerServer(ctx context.Context, mux *runtime.Ser
}
forward_AuthTokenService_GetAuthToken_0(ctx, mux, outboundMarshaler, w, req, response_AuthTokenService_GetAuthToken_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_AuthTokenService_ListAuthTokens_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -220,7 +212,6 @@ func RegisterAuthTokenServiceHandlerServer(ctx context.Context, mux *runtime.Ser
}
forward_AuthTokenService_ListAuthTokens_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("DELETE", pattern_AuthTokenService_DeleteAuthToken_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -243,7 +234,6 @@ func RegisterAuthTokenServiceHandlerServer(ctx context.Context, mux *runtime.Ser
}
forward_AuthTokenService_DeleteAuthToken_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
return nil
@@ -286,7 +276,6 @@ func RegisterAuthTokenServiceHandler(ctx context.Context, mux *runtime.ServeMux,
// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
// "AuthTokenServiceClient" to call the correct interceptors.
func RegisterAuthTokenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthTokenServiceClient) error {
mux.Handle("GET", pattern_AuthTokenService_GetAuthToken_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
@@ -304,7 +293,6 @@ func RegisterAuthTokenServiceHandlerClient(ctx context.Context, mux *runtime.Ser
}
forward_AuthTokenService_GetAuthToken_0(ctx, mux, outboundMarshaler, w, req, response_AuthTokenService_GetAuthToken_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_AuthTokenService_ListAuthTokens_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -324,7 +312,6 @@ func RegisterAuthTokenServiceHandlerClient(ctx context.Context, mux *runtime.Ser
}
forward_AuthTokenService_ListAuthTokens_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("DELETE", pattern_AuthTokenService_DeleteAuthToken_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -344,7 +331,6 @@ func RegisterAuthTokenServiceHandlerClient(ctx context.Context, mux *runtime.Ser
}
forward_AuthTokenService_DeleteAuthToken_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
return nil
@@ -4,6 +4,7 @@ package services
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
@@ -86,15 +87,16 @@ type AuthTokenServiceServer interface {
}
// UnimplementedAuthTokenServiceServer must be embedded to have forward compatible implementations.
type UnimplementedAuthTokenServiceServer struct {
}
type UnimplementedAuthTokenServiceServer struct{}
func (UnimplementedAuthTokenServiceServer) GetAuthToken(context.Context, *GetAuthTokenRequest) (*GetAuthTokenResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetAuthToken not implemented")
}
func (UnimplementedAuthTokenServiceServer) ListAuthTokens(context.Context, *ListAuthTokensRequest) (*ListAuthTokensResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListAuthTokens not implemented")
}
func (UnimplementedAuthTokenServiceServer) DeleteAuthToken(context.Context, *DeleteAuthTokenRequest) (*DeleteAuthTokenResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteAuthToken not implemented")
}
@@ -7,6 +7,9 @@
package services
import (
reflect "reflect"
sync "sync"
_ "github.com/golang/protobuf/ptypes/wrappers"
_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
groups "github.com/hashicorp/boundary/internal/gen/controller/api/resources/groups"
@@ -15,8 +18,6 @@ import (
field_mask "google.golang.org/genproto/protobuf/field_mask"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
@@ -1070,27 +1071,30 @@ func file_controller_api_services_v1_group_service_proto_rawDescGZIP() []byte {
return file_controller_api_services_v1_group_service_proto_rawDescData
}
var file_controller_api_services_v1_group_service_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
var file_controller_api_services_v1_group_service_proto_goTypes = []interface{}{
(*GetGroupRequest)(nil), // 0: controller.api.services.v1.GetGroupRequest
(*GetGroupResponse)(nil), // 1: controller.api.services.v1.GetGroupResponse
(*ListGroupsRequest)(nil), // 2: controller.api.services.v1.ListGroupsRequest
(*ListGroupsResponse)(nil), // 3: controller.api.services.v1.ListGroupsResponse
(*CreateGroupRequest)(nil), // 4: controller.api.services.v1.CreateGroupRequest
(*CreateGroupResponse)(nil), // 5: controller.api.services.v1.CreateGroupResponse
(*UpdateGroupRequest)(nil), // 6: controller.api.services.v1.UpdateGroupRequest
(*UpdateGroupResponse)(nil), // 7: controller.api.services.v1.UpdateGroupResponse
(*DeleteGroupRequest)(nil), // 8: controller.api.services.v1.DeleteGroupRequest
(*DeleteGroupResponse)(nil), // 9: controller.api.services.v1.DeleteGroupResponse
(*AddGroupMembersRequest)(nil), // 10: controller.api.services.v1.AddGroupMembersRequest
(*AddGroupMembersResponse)(nil), // 11: controller.api.services.v1.AddGroupMembersResponse
(*SetGroupMembersRequest)(nil), // 12: controller.api.services.v1.SetGroupMembersRequest
(*SetGroupMembersResponse)(nil), // 13: controller.api.services.v1.SetGroupMembersResponse
(*RemoveGroupMembersRequest)(nil), // 14: controller.api.services.v1.RemoveGroupMembersRequest
(*RemoveGroupMembersResponse)(nil), // 15: controller.api.services.v1.RemoveGroupMembersResponse
(*groups.Group)(nil), // 16: controller.api.resources.groups.v1.Group
(*field_mask.FieldMask)(nil), // 17: google.protobuf.FieldMask
}
var (
file_controller_api_services_v1_group_service_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
file_controller_api_services_v1_group_service_proto_goTypes = []interface{}{
(*GetGroupRequest)(nil), // 0: controller.api.services.v1.GetGroupRequest
(*GetGroupResponse)(nil), // 1: controller.api.services.v1.GetGroupResponse
(*ListGroupsRequest)(nil), // 2: controller.api.services.v1.ListGroupsRequest
(*ListGroupsResponse)(nil), // 3: controller.api.services.v1.ListGroupsResponse
(*CreateGroupRequest)(nil), // 4: controller.api.services.v1.CreateGroupRequest
(*CreateGroupResponse)(nil), // 5: controller.api.services.v1.CreateGroupResponse
(*UpdateGroupRequest)(nil), // 6: controller.api.services.v1.UpdateGroupRequest
(*UpdateGroupResponse)(nil), // 7: controller.api.services.v1.UpdateGroupResponse
(*DeleteGroupRequest)(nil), // 8: controller.api.services.v1.DeleteGroupRequest
(*DeleteGroupResponse)(nil), // 9: controller.api.services.v1.DeleteGroupResponse
(*AddGroupMembersRequest)(nil), // 10: controller.api.services.v1.AddGroupMembersRequest
(*AddGroupMembersResponse)(nil), // 11: controller.api.services.v1.AddGroupMembersResponse
(*SetGroupMembersRequest)(nil), // 12: controller.api.services.v1.SetGroupMembersRequest
(*SetGroupMembersResponse)(nil), // 13: controller.api.services.v1.SetGroupMembersResponse
(*RemoveGroupMembersRequest)(nil), // 14: controller.api.services.v1.RemoveGroupMembersRequest
(*RemoveGroupMembersResponse)(nil), // 15: controller.api.services.v1.RemoveGroupMembersResponse
(*groups.Group)(nil), // 16: controller.api.resources.groups.v1.Group
(*field_mask.FieldMask)(nil), // 17: google.protobuf.FieldMask
}
)
var file_controller_api_services_v1_group_service_proto_depIdxs = []int32{
16, // 0: controller.api.services.v1.GetGroupResponse.item:type_name -> controller.api.resources.groups.v1.Group
16, // 1: controller.api.services.v1.ListGroupsResponse.items:type_name -> controller.api.resources.groups.v1.Group
@@ -24,12 +24,14 @@ import (
)
// Suppress "imported and not used" errors
var _ codes.Code
var _ io.Reader
var _ status.Status
var _ = runtime.String
var _ = utilities.NewDoubleArray
var _ = metadata.Join
var (
_ codes.Code
_ io.Reader
_ status.Status
_ = runtime.String
_ = utilities.NewDoubleArray
_ = metadata.Join
)
func request_GroupService_GetGroup_0(ctx context.Context, marshaler runtime.Marshaler, client GroupServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq GetGroupRequest
@@ -54,7 +56,6 @@ func request_GroupService_GetGroup_0(ctx context.Context, marshaler runtime.Mars
msg, err := client.GetGroup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_GroupService_GetGroup_0(ctx context.Context, marshaler runtime.Marshaler, server GroupServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -80,12 +81,9 @@ func local_request_GroupService_GetGroup_0(ctx context.Context, marshaler runtim
msg, err := server.GetGroup(ctx, &protoReq)
return msg, metadata, err
}
var (
filter_GroupService_ListGroups_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
)
var filter_GroupService_ListGroups_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
func request_GroupService_ListGroups_0(ctx context.Context, marshaler runtime.Marshaler, client GroupServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq ListGroupsRequest
@@ -100,7 +98,6 @@ func request_GroupService_ListGroups_0(ctx context.Context, marshaler runtime.Ma
msg, err := client.ListGroups(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_GroupService_ListGroups_0(ctx context.Context, marshaler runtime.Marshaler, server GroupServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -116,7 +113,6 @@ func local_request_GroupService_ListGroups_0(ctx context.Context, marshaler runt
msg, err := server.ListGroups(ctx, &protoReq)
return msg, metadata, err
}
func request_GroupService_CreateGroup_0(ctx context.Context, marshaler runtime.Marshaler, client GroupServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -133,7 +129,6 @@ func request_GroupService_CreateGroup_0(ctx context.Context, marshaler runtime.M
msg, err := client.CreateGroup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_GroupService_CreateGroup_0(ctx context.Context, marshaler runtime.Marshaler, server GroupServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -150,12 +145,9 @@ func local_request_GroupService_CreateGroup_0(ctx context.Context, marshaler run
msg, err := server.CreateGroup(ctx, &protoReq)
return msg, metadata, err
}
var (
filter_GroupService_UpdateGroup_0 = &utilities.DoubleArray{Encoding: map[string]int{"item": 0, "id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}}
)
var filter_GroupService_UpdateGroup_0 = &utilities.DoubleArray{Encoding: map[string]int{"item": 0, "id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}}
func request_GroupService_UpdateGroup_0(ctx context.Context, marshaler runtime.Marshaler, client GroupServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq UpdateGroupRequest
@@ -202,7 +194,6 @@ func request_GroupService_UpdateGroup_0(ctx context.Context, marshaler runtime.M
msg, err := client.UpdateGroup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_GroupService_UpdateGroup_0(ctx context.Context, marshaler runtime.Marshaler, server GroupServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -250,7 +241,6 @@ func local_request_GroupService_UpdateGroup_0(ctx context.Context, marshaler run
msg, err := server.UpdateGroup(ctx, &protoReq)
return msg, metadata, err
}
func request_GroupService_DeleteGroup_0(ctx context.Context, marshaler runtime.Marshaler, client GroupServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -276,7 +266,6 @@ func request_GroupService_DeleteGroup_0(ctx context.Context, marshaler runtime.M
msg, err := client.DeleteGroup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_GroupService_DeleteGroup_0(ctx context.Context, marshaler runtime.Marshaler, server GroupServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -302,7 +291,6 @@ func local_request_GroupService_DeleteGroup_0(ctx context.Context, marshaler run
msg, err := server.DeleteGroup(ctx, &protoReq)
return msg, metadata, err
}
func request_GroupService_AddGroupMembers_0(ctx context.Context, marshaler runtime.Marshaler, client GroupServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -336,7 +324,6 @@ func request_GroupService_AddGroupMembers_0(ctx context.Context, marshaler runti
msg, err := client.AddGroupMembers(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_GroupService_AddGroupMembers_0(ctx context.Context, marshaler runtime.Marshaler, server GroupServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -370,7 +357,6 @@ func local_request_GroupService_AddGroupMembers_0(ctx context.Context, marshaler
msg, err := server.AddGroupMembers(ctx, &protoReq)
return msg, metadata, err
}
func request_GroupService_SetGroupMembers_0(ctx context.Context, marshaler runtime.Marshaler, client GroupServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -404,7 +390,6 @@ func request_GroupService_SetGroupMembers_0(ctx context.Context, marshaler runti
msg, err := client.SetGroupMembers(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_GroupService_SetGroupMembers_0(ctx context.Context, marshaler runtime.Marshaler, server GroupServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -438,7 +423,6 @@ func local_request_GroupService_SetGroupMembers_0(ctx context.Context, marshaler
msg, err := server.SetGroupMembers(ctx, &protoReq)
return msg, metadata, err
}
func request_GroupService_RemoveGroupMembers_0(ctx context.Context, marshaler runtime.Marshaler, client GroupServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -472,7 +456,6 @@ func request_GroupService_RemoveGroupMembers_0(ctx context.Context, marshaler ru
msg, err := client.RemoveGroupMembers(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_GroupService_RemoveGroupMembers_0(ctx context.Context, marshaler runtime.Marshaler, server GroupServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -506,7 +489,6 @@ func local_request_GroupService_RemoveGroupMembers_0(ctx context.Context, marsha
msg, err := server.RemoveGroupMembers(ctx, &protoReq)
return msg, metadata, err
}
// RegisterGroupServiceHandlerServer registers the http handlers for service GroupService to "mux".
@@ -514,7 +496,6 @@ func local_request_GroupService_RemoveGroupMembers_0(ctx context.Context, marsha
// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterGroupServiceHandlerFromEndpoint instead.
func RegisterGroupServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server GroupServiceServer) error {
mux.Handle("GET", pattern_GroupService_GetGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
@@ -535,7 +516,6 @@ func RegisterGroupServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu
}
forward_GroupService_GetGroup_0(ctx, mux, outboundMarshaler, w, req, response_GroupService_GetGroup_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_GroupService_ListGroups_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -558,7 +538,6 @@ func RegisterGroupServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu
}
forward_GroupService_ListGroups_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_GroupService_CreateGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -581,7 +560,6 @@ func RegisterGroupServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu
}
forward_GroupService_CreateGroup_0(ctx, mux, outboundMarshaler, w, req, response_GroupService_CreateGroup_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("PATCH", pattern_GroupService_UpdateGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -604,7 +582,6 @@ func RegisterGroupServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu
}
forward_GroupService_UpdateGroup_0(ctx, mux, outboundMarshaler, w, req, response_GroupService_UpdateGroup_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("DELETE", pattern_GroupService_DeleteGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -627,7 +604,6 @@ func RegisterGroupServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu
}
forward_GroupService_DeleteGroup_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_GroupService_AddGroupMembers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -650,7 +626,6 @@ func RegisterGroupServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu
}
forward_GroupService_AddGroupMembers_0(ctx, mux, outboundMarshaler, w, req, response_GroupService_AddGroupMembers_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_GroupService_SetGroupMembers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -673,7 +648,6 @@ func RegisterGroupServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu
}
forward_GroupService_SetGroupMembers_0(ctx, mux, outboundMarshaler, w, req, response_GroupService_SetGroupMembers_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_GroupService_RemoveGroupMembers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -696,7 +670,6 @@ func RegisterGroupServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu
}
forward_GroupService_RemoveGroupMembers_0(ctx, mux, outboundMarshaler, w, req, response_GroupService_RemoveGroupMembers_0{resp}, mux.GetForwardResponseOptions()...)
})
return nil
@@ -739,7 +712,6 @@ func RegisterGroupServiceHandler(ctx context.Context, mux *runtime.ServeMux, con
// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
// "GroupServiceClient" to call the correct interceptors.
func RegisterGroupServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client GroupServiceClient) error {
mux.Handle("GET", pattern_GroupService_GetGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
@@ -757,7 +729,6 @@ func RegisterGroupServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu
}
forward_GroupService_GetGroup_0(ctx, mux, outboundMarshaler, w, req, response_GroupService_GetGroup_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_GroupService_ListGroups_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -777,7 +748,6 @@ func RegisterGroupServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu
}
forward_GroupService_ListGroups_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_GroupService_CreateGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -797,7 +767,6 @@ func RegisterGroupServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu
}
forward_GroupService_CreateGroup_0(ctx, mux, outboundMarshaler, w, req, response_GroupService_CreateGroup_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("PATCH", pattern_GroupService_UpdateGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -817,7 +786,6 @@ func RegisterGroupServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu
}
forward_GroupService_UpdateGroup_0(ctx, mux, outboundMarshaler, w, req, response_GroupService_UpdateGroup_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("DELETE", pattern_GroupService_DeleteGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -837,7 +805,6 @@ func RegisterGroupServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu
}
forward_GroupService_DeleteGroup_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_GroupService_AddGroupMembers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -857,7 +824,6 @@ func RegisterGroupServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu
}
forward_GroupService_AddGroupMembers_0(ctx, mux, outboundMarshaler, w, req, response_GroupService_AddGroupMembers_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_GroupService_SetGroupMembers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -877,7 +843,6 @@ func RegisterGroupServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu
}
forward_GroupService_SetGroupMembers_0(ctx, mux, outboundMarshaler, w, req, response_GroupService_SetGroupMembers_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_GroupService_RemoveGroupMembers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -897,7 +862,6 @@ func RegisterGroupServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu
}
forward_GroupService_RemoveGroupMembers_0(ctx, mux, outboundMarshaler, w, req, response_GroupService_RemoveGroupMembers_0{resp}, mux.GetForwardResponseOptions()...)
})
return nil
@@ -4,6 +4,7 @@ package services
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
@@ -193,30 +194,36 @@ type GroupServiceServer interface {
}
// UnimplementedGroupServiceServer must be embedded to have forward compatible implementations.
type UnimplementedGroupServiceServer struct {
}
type UnimplementedGroupServiceServer struct{}
func (UnimplementedGroupServiceServer) GetGroup(context.Context, *GetGroupRequest) (*GetGroupResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetGroup not implemented")
}
func (UnimplementedGroupServiceServer) ListGroups(context.Context, *ListGroupsRequest) (*ListGroupsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListGroups not implemented")
}
func (UnimplementedGroupServiceServer) CreateGroup(context.Context, *CreateGroupRequest) (*CreateGroupResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateGroup not implemented")
}
func (UnimplementedGroupServiceServer) UpdateGroup(context.Context, *UpdateGroupRequest) (*UpdateGroupResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateGroup not implemented")
}
func (UnimplementedGroupServiceServer) DeleteGroup(context.Context, *DeleteGroupRequest) (*DeleteGroupResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteGroup not implemented")
}
func (UnimplementedGroupServiceServer) AddGroupMembers(context.Context, *AddGroupMembersRequest) (*AddGroupMembersResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method AddGroupMembers not implemented")
}
func (UnimplementedGroupServiceServer) SetGroupMembers(context.Context, *SetGroupMembersRequest) (*SetGroupMembersResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetGroupMembers not implemented")
}
func (UnimplementedGroupServiceServer) RemoveGroupMembers(context.Context, *RemoveGroupMembersRequest) (*RemoveGroupMembersResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RemoveGroupMembers not implemented")
}
@@ -7,14 +7,15 @@
package services
import (
reflect "reflect"
sync "sync"
_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
hostcatalogs "github.com/hashicorp/boundary/internal/gen/controller/api/resources/hostcatalogs"
_ "google.golang.org/genproto/googleapis/api/annotations"
field_mask "google.golang.org/genproto/protobuf/field_mask"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
@@ -665,21 +666,24 @@ func file_controller_api_services_v1_host_catalog_service_proto_rawDescGZIP() []
return file_controller_api_services_v1_host_catalog_service_proto_rawDescData
}
var file_controller_api_services_v1_host_catalog_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_controller_api_services_v1_host_catalog_service_proto_goTypes = []interface{}{
(*GetHostCatalogRequest)(nil), // 0: controller.api.services.v1.GetHostCatalogRequest
(*GetHostCatalogResponse)(nil), // 1: controller.api.services.v1.GetHostCatalogResponse
(*ListHostCatalogsRequest)(nil), // 2: controller.api.services.v1.ListHostCatalogsRequest
(*ListHostCatalogsResponse)(nil), // 3: controller.api.services.v1.ListHostCatalogsResponse
(*CreateHostCatalogRequest)(nil), // 4: controller.api.services.v1.CreateHostCatalogRequest
(*CreateHostCatalogResponse)(nil), // 5: controller.api.services.v1.CreateHostCatalogResponse
(*UpdateHostCatalogRequest)(nil), // 6: controller.api.services.v1.UpdateHostCatalogRequest
(*UpdateHostCatalogResponse)(nil), // 7: controller.api.services.v1.UpdateHostCatalogResponse
(*DeleteHostCatalogRequest)(nil), // 8: controller.api.services.v1.DeleteHostCatalogRequest
(*DeleteHostCatalogResponse)(nil), // 9: controller.api.services.v1.DeleteHostCatalogResponse
(*hostcatalogs.HostCatalog)(nil), // 10: controller.api.resources.hostcatalogs.v1.HostCatalog
(*field_mask.FieldMask)(nil), // 11: google.protobuf.FieldMask
}
var (
file_controller_api_services_v1_host_catalog_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
file_controller_api_services_v1_host_catalog_service_proto_goTypes = []interface{}{
(*GetHostCatalogRequest)(nil), // 0: controller.api.services.v1.GetHostCatalogRequest
(*GetHostCatalogResponse)(nil), // 1: controller.api.services.v1.GetHostCatalogResponse
(*ListHostCatalogsRequest)(nil), // 2: controller.api.services.v1.ListHostCatalogsRequest
(*ListHostCatalogsResponse)(nil), // 3: controller.api.services.v1.ListHostCatalogsResponse
(*CreateHostCatalogRequest)(nil), // 4: controller.api.services.v1.CreateHostCatalogRequest
(*CreateHostCatalogResponse)(nil), // 5: controller.api.services.v1.CreateHostCatalogResponse
(*UpdateHostCatalogRequest)(nil), // 6: controller.api.services.v1.UpdateHostCatalogRequest
(*UpdateHostCatalogResponse)(nil), // 7: controller.api.services.v1.UpdateHostCatalogResponse
(*DeleteHostCatalogRequest)(nil), // 8: controller.api.services.v1.DeleteHostCatalogRequest
(*DeleteHostCatalogResponse)(nil), // 9: controller.api.services.v1.DeleteHostCatalogResponse
(*hostcatalogs.HostCatalog)(nil), // 10: controller.api.resources.hostcatalogs.v1.HostCatalog
(*field_mask.FieldMask)(nil), // 11: google.protobuf.FieldMask
}
)
var file_controller_api_services_v1_host_catalog_service_proto_depIdxs = []int32{
10, // 0: controller.api.services.v1.GetHostCatalogResponse.item:type_name -> controller.api.resources.hostcatalogs.v1.HostCatalog
10, // 1: controller.api.services.v1.ListHostCatalogsResponse.items:type_name -> controller.api.resources.hostcatalogs.v1.HostCatalog
@@ -24,12 +24,14 @@ import (
)
// Suppress "imported and not used" errors
var _ codes.Code
var _ io.Reader
var _ status.Status
var _ = runtime.String
var _ = utilities.NewDoubleArray
var _ = metadata.Join
var (
_ codes.Code
_ io.Reader
_ status.Status
_ = runtime.String
_ = utilities.NewDoubleArray
_ = metadata.Join
)
func request_HostCatalogService_GetHostCatalog_0(ctx context.Context, marshaler runtime.Marshaler, client HostCatalogServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq GetHostCatalogRequest
@@ -54,7 +56,6 @@ func request_HostCatalogService_GetHostCatalog_0(ctx context.Context, marshaler
msg, err := client.GetHostCatalog(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_HostCatalogService_GetHostCatalog_0(ctx context.Context, marshaler runtime.Marshaler, server HostCatalogServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -80,12 +81,9 @@ func local_request_HostCatalogService_GetHostCatalog_0(ctx context.Context, mars
msg, err := server.GetHostCatalog(ctx, &protoReq)
return msg, metadata, err
}
var (
filter_HostCatalogService_ListHostCatalogs_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
)
var filter_HostCatalogService_ListHostCatalogs_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
func request_HostCatalogService_ListHostCatalogs_0(ctx context.Context, marshaler runtime.Marshaler, client HostCatalogServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq ListHostCatalogsRequest
@@ -100,7 +98,6 @@ func request_HostCatalogService_ListHostCatalogs_0(ctx context.Context, marshale
msg, err := client.ListHostCatalogs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_HostCatalogService_ListHostCatalogs_0(ctx context.Context, marshaler runtime.Marshaler, server HostCatalogServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -116,7 +113,6 @@ func local_request_HostCatalogService_ListHostCatalogs_0(ctx context.Context, ma
msg, err := server.ListHostCatalogs(ctx, &protoReq)
return msg, metadata, err
}
func request_HostCatalogService_CreateHostCatalog_0(ctx context.Context, marshaler runtime.Marshaler, client HostCatalogServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -133,7 +129,6 @@ func request_HostCatalogService_CreateHostCatalog_0(ctx context.Context, marshal
msg, err := client.CreateHostCatalog(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_HostCatalogService_CreateHostCatalog_0(ctx context.Context, marshaler runtime.Marshaler, server HostCatalogServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -150,12 +145,9 @@ func local_request_HostCatalogService_CreateHostCatalog_0(ctx context.Context, m
msg, err := server.CreateHostCatalog(ctx, &protoReq)
return msg, metadata, err
}
var (
filter_HostCatalogService_UpdateHostCatalog_0 = &utilities.DoubleArray{Encoding: map[string]int{"item": 0, "id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}}
)
var filter_HostCatalogService_UpdateHostCatalog_0 = &utilities.DoubleArray{Encoding: map[string]int{"item": 0, "id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}}
func request_HostCatalogService_UpdateHostCatalog_0(ctx context.Context, marshaler runtime.Marshaler, client HostCatalogServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq UpdateHostCatalogRequest
@@ -202,7 +194,6 @@ func request_HostCatalogService_UpdateHostCatalog_0(ctx context.Context, marshal
msg, err := client.UpdateHostCatalog(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_HostCatalogService_UpdateHostCatalog_0(ctx context.Context, marshaler runtime.Marshaler, server HostCatalogServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -250,7 +241,6 @@ func local_request_HostCatalogService_UpdateHostCatalog_0(ctx context.Context, m
msg, err := server.UpdateHostCatalog(ctx, &protoReq)
return msg, metadata, err
}
func request_HostCatalogService_DeleteHostCatalog_0(ctx context.Context, marshaler runtime.Marshaler, client HostCatalogServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -276,7 +266,6 @@ func request_HostCatalogService_DeleteHostCatalog_0(ctx context.Context, marshal
msg, err := client.DeleteHostCatalog(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_HostCatalogService_DeleteHostCatalog_0(ctx context.Context, marshaler runtime.Marshaler, server HostCatalogServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -302,7 +291,6 @@ func local_request_HostCatalogService_DeleteHostCatalog_0(ctx context.Context, m
msg, err := server.DeleteHostCatalog(ctx, &protoReq)
return msg, metadata, err
}
// RegisterHostCatalogServiceHandlerServer registers the http handlers for service HostCatalogService to "mux".
@@ -310,7 +298,6 @@ func local_request_HostCatalogService_DeleteHostCatalog_0(ctx context.Context, m
// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterHostCatalogServiceHandlerFromEndpoint instead.
func RegisterHostCatalogServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server HostCatalogServiceServer) error {
mux.Handle("GET", pattern_HostCatalogService_GetHostCatalog_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
@@ -331,7 +318,6 @@ func RegisterHostCatalogServiceHandlerServer(ctx context.Context, mux *runtime.S
}
forward_HostCatalogService_GetHostCatalog_0(ctx, mux, outboundMarshaler, w, req, response_HostCatalogService_GetHostCatalog_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_HostCatalogService_ListHostCatalogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -354,7 +340,6 @@ func RegisterHostCatalogServiceHandlerServer(ctx context.Context, mux *runtime.S
}
forward_HostCatalogService_ListHostCatalogs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_HostCatalogService_CreateHostCatalog_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -377,7 +362,6 @@ func RegisterHostCatalogServiceHandlerServer(ctx context.Context, mux *runtime.S
}
forward_HostCatalogService_CreateHostCatalog_0(ctx, mux, outboundMarshaler, w, req, response_HostCatalogService_CreateHostCatalog_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("PATCH", pattern_HostCatalogService_UpdateHostCatalog_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -400,7 +384,6 @@ func RegisterHostCatalogServiceHandlerServer(ctx context.Context, mux *runtime.S
}
forward_HostCatalogService_UpdateHostCatalog_0(ctx, mux, outboundMarshaler, w, req, response_HostCatalogService_UpdateHostCatalog_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("DELETE", pattern_HostCatalogService_DeleteHostCatalog_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -423,7 +406,6 @@ func RegisterHostCatalogServiceHandlerServer(ctx context.Context, mux *runtime.S
}
forward_HostCatalogService_DeleteHostCatalog_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
return nil
@@ -466,7 +448,6 @@ func RegisterHostCatalogServiceHandler(ctx context.Context, mux *runtime.ServeMu
// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
// "HostCatalogServiceClient" to call the correct interceptors.
func RegisterHostCatalogServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client HostCatalogServiceClient) error {
mux.Handle("GET", pattern_HostCatalogService_GetHostCatalog_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
@@ -484,7 +465,6 @@ func RegisterHostCatalogServiceHandlerClient(ctx context.Context, mux *runtime.S
}
forward_HostCatalogService_GetHostCatalog_0(ctx, mux, outboundMarshaler, w, req, response_HostCatalogService_GetHostCatalog_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_HostCatalogService_ListHostCatalogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -504,7 +484,6 @@ func RegisterHostCatalogServiceHandlerClient(ctx context.Context, mux *runtime.S
}
forward_HostCatalogService_ListHostCatalogs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_HostCatalogService_CreateHostCatalog_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -524,7 +503,6 @@ func RegisterHostCatalogServiceHandlerClient(ctx context.Context, mux *runtime.S
}
forward_HostCatalogService_CreateHostCatalog_0(ctx, mux, outboundMarshaler, w, req, response_HostCatalogService_CreateHostCatalog_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("PATCH", pattern_HostCatalogService_UpdateHostCatalog_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -544,7 +522,6 @@ func RegisterHostCatalogServiceHandlerClient(ctx context.Context, mux *runtime.S
}
forward_HostCatalogService_UpdateHostCatalog_0(ctx, mux, outboundMarshaler, w, req, response_HostCatalogService_UpdateHostCatalog_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("DELETE", pattern_HostCatalogService_DeleteHostCatalog_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -564,7 +541,6 @@ func RegisterHostCatalogServiceHandlerClient(ctx context.Context, mux *runtime.S
}
forward_HostCatalogService_DeleteHostCatalog_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
return nil
@@ -4,6 +4,7 @@ package services
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
@@ -132,21 +133,24 @@ type HostCatalogServiceServer interface {
}
// UnimplementedHostCatalogServiceServer must be embedded to have forward compatible implementations.
type UnimplementedHostCatalogServiceServer struct {
}
type UnimplementedHostCatalogServiceServer struct{}
func (UnimplementedHostCatalogServiceServer) GetHostCatalog(context.Context, *GetHostCatalogRequest) (*GetHostCatalogResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetHostCatalog not implemented")
}
func (UnimplementedHostCatalogServiceServer) ListHostCatalogs(context.Context, *ListHostCatalogsRequest) (*ListHostCatalogsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListHostCatalogs not implemented")
}
func (UnimplementedHostCatalogServiceServer) CreateHostCatalog(context.Context, *CreateHostCatalogRequest) (*CreateHostCatalogResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateHostCatalog not implemented")
}
func (UnimplementedHostCatalogServiceServer) UpdateHostCatalog(context.Context, *UpdateHostCatalogRequest) (*UpdateHostCatalogResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateHostCatalog not implemented")
}
func (UnimplementedHostCatalogServiceServer) DeleteHostCatalog(context.Context, *DeleteHostCatalogRequest) (*DeleteHostCatalogResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteHostCatalog not implemented")
}
@@ -7,14 +7,15 @@
package services
import (
reflect "reflect"
sync "sync"
_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
hosts "github.com/hashicorp/boundary/internal/gen/controller/api/resources/hosts"
_ "google.golang.org/genproto/googleapis/api/annotations"
field_mask "google.golang.org/genproto/protobuf/field_mask"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
@@ -645,21 +646,24 @@ func file_controller_api_services_v1_host_service_proto_rawDescGZIP() []byte {
return file_controller_api_services_v1_host_service_proto_rawDescData
}
var file_controller_api_services_v1_host_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_controller_api_services_v1_host_service_proto_goTypes = []interface{}{
(*GetHostRequest)(nil), // 0: controller.api.services.v1.GetHostRequest
(*GetHostResponse)(nil), // 1: controller.api.services.v1.GetHostResponse
(*ListHostsRequest)(nil), // 2: controller.api.services.v1.ListHostsRequest
(*ListHostsResponse)(nil), // 3: controller.api.services.v1.ListHostsResponse
(*CreateHostRequest)(nil), // 4: controller.api.services.v1.CreateHostRequest
(*CreateHostResponse)(nil), // 5: controller.api.services.v1.CreateHostResponse
(*UpdateHostRequest)(nil), // 6: controller.api.services.v1.UpdateHostRequest
(*UpdateHostResponse)(nil), // 7: controller.api.services.v1.UpdateHostResponse
(*DeleteHostRequest)(nil), // 8: controller.api.services.v1.DeleteHostRequest
(*DeleteHostResponse)(nil), // 9: controller.api.services.v1.DeleteHostResponse
(*hosts.Host)(nil), // 10: controller.api.resources.hosts.v1.Host
(*field_mask.FieldMask)(nil), // 11: google.protobuf.FieldMask
}
var (
file_controller_api_services_v1_host_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
file_controller_api_services_v1_host_service_proto_goTypes = []interface{}{
(*GetHostRequest)(nil), // 0: controller.api.services.v1.GetHostRequest
(*GetHostResponse)(nil), // 1: controller.api.services.v1.GetHostResponse
(*ListHostsRequest)(nil), // 2: controller.api.services.v1.ListHostsRequest
(*ListHostsResponse)(nil), // 3: controller.api.services.v1.ListHostsResponse
(*CreateHostRequest)(nil), // 4: controller.api.services.v1.CreateHostRequest
(*CreateHostResponse)(nil), // 5: controller.api.services.v1.CreateHostResponse
(*UpdateHostRequest)(nil), // 6: controller.api.services.v1.UpdateHostRequest
(*UpdateHostResponse)(nil), // 7: controller.api.services.v1.UpdateHostResponse
(*DeleteHostRequest)(nil), // 8: controller.api.services.v1.DeleteHostRequest
(*DeleteHostResponse)(nil), // 9: controller.api.services.v1.DeleteHostResponse
(*hosts.Host)(nil), // 10: controller.api.resources.hosts.v1.Host
(*field_mask.FieldMask)(nil), // 11: google.protobuf.FieldMask
}
)
var file_controller_api_services_v1_host_service_proto_depIdxs = []int32{
10, // 0: controller.api.services.v1.GetHostResponse.item:type_name -> controller.api.resources.hosts.v1.Host
10, // 1: controller.api.services.v1.ListHostsResponse.items:type_name -> controller.api.resources.hosts.v1.Host
@@ -24,12 +24,14 @@ import (
)
// Suppress "imported and not used" errors
var _ codes.Code
var _ io.Reader
var _ status.Status
var _ = runtime.String
var _ = utilities.NewDoubleArray
var _ = metadata.Join
var (
_ codes.Code
_ io.Reader
_ status.Status
_ = runtime.String
_ = utilities.NewDoubleArray
_ = metadata.Join
)
func request_HostService_GetHost_0(ctx context.Context, marshaler runtime.Marshaler, client HostServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq GetHostRequest
@@ -54,7 +56,6 @@ func request_HostService_GetHost_0(ctx context.Context, marshaler runtime.Marsha
msg, err := client.GetHost(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_HostService_GetHost_0(ctx context.Context, marshaler runtime.Marshaler, server HostServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -80,12 +81,9 @@ func local_request_HostService_GetHost_0(ctx context.Context, marshaler runtime.
msg, err := server.GetHost(ctx, &protoReq)
return msg, metadata, err
}
var (
filter_HostService_ListHosts_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
)
var filter_HostService_ListHosts_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
func request_HostService_ListHosts_0(ctx context.Context, marshaler runtime.Marshaler, client HostServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq ListHostsRequest
@@ -100,7 +98,6 @@ func request_HostService_ListHosts_0(ctx context.Context, marshaler runtime.Mars
msg, err := client.ListHosts(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_HostService_ListHosts_0(ctx context.Context, marshaler runtime.Marshaler, server HostServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -116,7 +113,6 @@ func local_request_HostService_ListHosts_0(ctx context.Context, marshaler runtim
msg, err := server.ListHosts(ctx, &protoReq)
return msg, metadata, err
}
func request_HostService_CreateHost_0(ctx context.Context, marshaler runtime.Marshaler, client HostServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -133,7 +129,6 @@ func request_HostService_CreateHost_0(ctx context.Context, marshaler runtime.Mar
msg, err := client.CreateHost(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_HostService_CreateHost_0(ctx context.Context, marshaler runtime.Marshaler, server HostServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -150,12 +145,9 @@ func local_request_HostService_CreateHost_0(ctx context.Context, marshaler runti
msg, err := server.CreateHost(ctx, &protoReq)
return msg, metadata, err
}
var (
filter_HostService_UpdateHost_0 = &utilities.DoubleArray{Encoding: map[string]int{"item": 0, "id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}}
)
var filter_HostService_UpdateHost_0 = &utilities.DoubleArray{Encoding: map[string]int{"item": 0, "id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}}
func request_HostService_UpdateHost_0(ctx context.Context, marshaler runtime.Marshaler, client HostServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq UpdateHostRequest
@@ -202,7 +194,6 @@ func request_HostService_UpdateHost_0(ctx context.Context, marshaler runtime.Mar
msg, err := client.UpdateHost(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_HostService_UpdateHost_0(ctx context.Context, marshaler runtime.Marshaler, server HostServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -250,7 +241,6 @@ func local_request_HostService_UpdateHost_0(ctx context.Context, marshaler runti
msg, err := server.UpdateHost(ctx, &protoReq)
return msg, metadata, err
}
func request_HostService_DeleteHost_0(ctx context.Context, marshaler runtime.Marshaler, client HostServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -276,7 +266,6 @@ func request_HostService_DeleteHost_0(ctx context.Context, marshaler runtime.Mar
msg, err := client.DeleteHost(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_HostService_DeleteHost_0(ctx context.Context, marshaler runtime.Marshaler, server HostServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -302,7 +291,6 @@ func local_request_HostService_DeleteHost_0(ctx context.Context, marshaler runti
msg, err := server.DeleteHost(ctx, &protoReq)
return msg, metadata, err
}
// RegisterHostServiceHandlerServer registers the http handlers for service HostService to "mux".
@@ -310,7 +298,6 @@ func local_request_HostService_DeleteHost_0(ctx context.Context, marshaler runti
// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterHostServiceHandlerFromEndpoint instead.
func RegisterHostServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server HostServiceServer) error {
mux.Handle("GET", pattern_HostService_GetHost_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
@@ -331,7 +318,6 @@ func RegisterHostServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux
}
forward_HostService_GetHost_0(ctx, mux, outboundMarshaler, w, req, response_HostService_GetHost_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_HostService_ListHosts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -354,7 +340,6 @@ func RegisterHostServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux
}
forward_HostService_ListHosts_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_HostService_CreateHost_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -377,7 +362,6 @@ func RegisterHostServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux
}
forward_HostService_CreateHost_0(ctx, mux, outboundMarshaler, w, req, response_HostService_CreateHost_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("PATCH", pattern_HostService_UpdateHost_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -400,7 +384,6 @@ func RegisterHostServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux
}
forward_HostService_UpdateHost_0(ctx, mux, outboundMarshaler, w, req, response_HostService_UpdateHost_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("DELETE", pattern_HostService_DeleteHost_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -423,7 +406,6 @@ func RegisterHostServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux
}
forward_HostService_DeleteHost_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
return nil
@@ -466,7 +448,6 @@ func RegisterHostServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn
// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
// "HostServiceClient" to call the correct interceptors.
func RegisterHostServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client HostServiceClient) error {
mux.Handle("GET", pattern_HostService_GetHost_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
@@ -484,7 +465,6 @@ func RegisterHostServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux
}
forward_HostService_GetHost_0(ctx, mux, outboundMarshaler, w, req, response_HostService_GetHost_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_HostService_ListHosts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -504,7 +484,6 @@ func RegisterHostServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux
}
forward_HostService_ListHosts_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_HostService_CreateHost_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -524,7 +503,6 @@ func RegisterHostServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux
}
forward_HostService_CreateHost_0(ctx, mux, outboundMarshaler, w, req, response_HostService_CreateHost_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("PATCH", pattern_HostService_UpdateHost_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -544,7 +522,6 @@ func RegisterHostServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux
}
forward_HostService_UpdateHost_0(ctx, mux, outboundMarshaler, w, req, response_HostService_UpdateHost_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("DELETE", pattern_HostService_DeleteHost_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -564,7 +541,6 @@ func RegisterHostServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux
}
forward_HostService_DeleteHost_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
return nil
@@ -4,6 +4,7 @@ package services
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
@@ -136,21 +137,24 @@ type HostServiceServer interface {
}
// UnimplementedHostServiceServer must be embedded to have forward compatible implementations.
type UnimplementedHostServiceServer struct {
}
type UnimplementedHostServiceServer struct{}
func (UnimplementedHostServiceServer) GetHost(context.Context, *GetHostRequest) (*GetHostResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetHost not implemented")
}
func (UnimplementedHostServiceServer) ListHosts(context.Context, *ListHostsRequest) (*ListHostsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListHosts not implemented")
}
func (UnimplementedHostServiceServer) CreateHost(context.Context, *CreateHostRequest) (*CreateHostResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateHost not implemented")
}
func (UnimplementedHostServiceServer) UpdateHost(context.Context, *UpdateHostRequest) (*UpdateHostResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateHost not implemented")
}
func (UnimplementedHostServiceServer) DeleteHost(context.Context, *DeleteHostRequest) (*DeleteHostResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteHost not implemented")
}
@@ -7,14 +7,15 @@
package services
import (
reflect "reflect"
sync "sync"
_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
hostsets "github.com/hashicorp/boundary/internal/gen/controller/api/resources/hostsets"
_ "google.golang.org/genproto/googleapis/api/annotations"
field_mask "google.golang.org/genproto/protobuf/field_mask"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
@@ -1070,27 +1071,30 @@ func file_controller_api_services_v1_host_set_service_proto_rawDescGZIP() []byte
return file_controller_api_services_v1_host_set_service_proto_rawDescData
}
var file_controller_api_services_v1_host_set_service_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
var file_controller_api_services_v1_host_set_service_proto_goTypes = []interface{}{
(*GetHostSetRequest)(nil), // 0: controller.api.services.v1.GetHostSetRequest
(*GetHostSetResponse)(nil), // 1: controller.api.services.v1.GetHostSetResponse
(*ListHostSetsRequest)(nil), // 2: controller.api.services.v1.ListHostSetsRequest
(*ListHostSetsResponse)(nil), // 3: controller.api.services.v1.ListHostSetsResponse
(*CreateHostSetRequest)(nil), // 4: controller.api.services.v1.CreateHostSetRequest
(*CreateHostSetResponse)(nil), // 5: controller.api.services.v1.CreateHostSetResponse
(*UpdateHostSetRequest)(nil), // 6: controller.api.services.v1.UpdateHostSetRequest
(*UpdateHostSetResponse)(nil), // 7: controller.api.services.v1.UpdateHostSetResponse
(*DeleteHostSetRequest)(nil), // 8: controller.api.services.v1.DeleteHostSetRequest
(*DeleteHostSetResponse)(nil), // 9: controller.api.services.v1.DeleteHostSetResponse
(*AddHostSetHostsRequest)(nil), // 10: controller.api.services.v1.AddHostSetHostsRequest
(*AddHostSetHostsResponse)(nil), // 11: controller.api.services.v1.AddHostSetHostsResponse
(*SetHostSetHostsRequest)(nil), // 12: controller.api.services.v1.SetHostSetHostsRequest
(*SetHostSetHostsResponse)(nil), // 13: controller.api.services.v1.SetHostSetHostsResponse
(*RemoveHostSetHostsRequest)(nil), // 14: controller.api.services.v1.RemoveHostSetHostsRequest
(*RemoveHostSetHostsResponse)(nil), // 15: controller.api.services.v1.RemoveHostSetHostsResponse
(*hostsets.HostSet)(nil), // 16: controller.api.resources.hostsets.v1.HostSet
(*field_mask.FieldMask)(nil), // 17: google.protobuf.FieldMask
}
var (
file_controller_api_services_v1_host_set_service_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
file_controller_api_services_v1_host_set_service_proto_goTypes = []interface{}{
(*GetHostSetRequest)(nil), // 0: controller.api.services.v1.GetHostSetRequest
(*GetHostSetResponse)(nil), // 1: controller.api.services.v1.GetHostSetResponse
(*ListHostSetsRequest)(nil), // 2: controller.api.services.v1.ListHostSetsRequest
(*ListHostSetsResponse)(nil), // 3: controller.api.services.v1.ListHostSetsResponse
(*CreateHostSetRequest)(nil), // 4: controller.api.services.v1.CreateHostSetRequest
(*CreateHostSetResponse)(nil), // 5: controller.api.services.v1.CreateHostSetResponse
(*UpdateHostSetRequest)(nil), // 6: controller.api.services.v1.UpdateHostSetRequest
(*UpdateHostSetResponse)(nil), // 7: controller.api.services.v1.UpdateHostSetResponse
(*DeleteHostSetRequest)(nil), // 8: controller.api.services.v1.DeleteHostSetRequest
(*DeleteHostSetResponse)(nil), // 9: controller.api.services.v1.DeleteHostSetResponse
(*AddHostSetHostsRequest)(nil), // 10: controller.api.services.v1.AddHostSetHostsRequest
(*AddHostSetHostsResponse)(nil), // 11: controller.api.services.v1.AddHostSetHostsResponse
(*SetHostSetHostsRequest)(nil), // 12: controller.api.services.v1.SetHostSetHostsRequest
(*SetHostSetHostsResponse)(nil), // 13: controller.api.services.v1.SetHostSetHostsResponse
(*RemoveHostSetHostsRequest)(nil), // 14: controller.api.services.v1.RemoveHostSetHostsRequest
(*RemoveHostSetHostsResponse)(nil), // 15: controller.api.services.v1.RemoveHostSetHostsResponse
(*hostsets.HostSet)(nil), // 16: controller.api.resources.hostsets.v1.HostSet
(*field_mask.FieldMask)(nil), // 17: google.protobuf.FieldMask
}
)
var file_controller_api_services_v1_host_set_service_proto_depIdxs = []int32{
16, // 0: controller.api.services.v1.GetHostSetResponse.item:type_name -> controller.api.resources.hostsets.v1.HostSet
16, // 1: controller.api.services.v1.ListHostSetsResponse.items:type_name -> controller.api.resources.hostsets.v1.HostSet
@@ -24,12 +24,14 @@ import (
)
// Suppress "imported and not used" errors
var _ codes.Code
var _ io.Reader
var _ status.Status
var _ = runtime.String
var _ = utilities.NewDoubleArray
var _ = metadata.Join
var (
_ codes.Code
_ io.Reader
_ status.Status
_ = runtime.String
_ = utilities.NewDoubleArray
_ = metadata.Join
)
func request_HostSetService_GetHostSet_0(ctx context.Context, marshaler runtime.Marshaler, client HostSetServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq GetHostSetRequest
@@ -54,7 +56,6 @@ func request_HostSetService_GetHostSet_0(ctx context.Context, marshaler runtime.
msg, err := client.GetHostSet(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_HostSetService_GetHostSet_0(ctx context.Context, marshaler runtime.Marshaler, server HostSetServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -80,12 +81,9 @@ func local_request_HostSetService_GetHostSet_0(ctx context.Context, marshaler ru
msg, err := server.GetHostSet(ctx, &protoReq)
return msg, metadata, err
}
var (
filter_HostSetService_ListHostSets_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
)
var filter_HostSetService_ListHostSets_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
func request_HostSetService_ListHostSets_0(ctx context.Context, marshaler runtime.Marshaler, client HostSetServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq ListHostSetsRequest
@@ -100,7 +98,6 @@ func request_HostSetService_ListHostSets_0(ctx context.Context, marshaler runtim
msg, err := client.ListHostSets(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_HostSetService_ListHostSets_0(ctx context.Context, marshaler runtime.Marshaler, server HostSetServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -116,7 +113,6 @@ func local_request_HostSetService_ListHostSets_0(ctx context.Context, marshaler
msg, err := server.ListHostSets(ctx, &protoReq)
return msg, metadata, err
}
func request_HostSetService_CreateHostSet_0(ctx context.Context, marshaler runtime.Marshaler, client HostSetServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -133,7 +129,6 @@ func request_HostSetService_CreateHostSet_0(ctx context.Context, marshaler runti
msg, err := client.CreateHostSet(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_HostSetService_CreateHostSet_0(ctx context.Context, marshaler runtime.Marshaler, server HostSetServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -150,12 +145,9 @@ func local_request_HostSetService_CreateHostSet_0(ctx context.Context, marshaler
msg, err := server.CreateHostSet(ctx, &protoReq)
return msg, metadata, err
}
var (
filter_HostSetService_UpdateHostSet_0 = &utilities.DoubleArray{Encoding: map[string]int{"item": 0, "id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}}
)
var filter_HostSetService_UpdateHostSet_0 = &utilities.DoubleArray{Encoding: map[string]int{"item": 0, "id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}}
func request_HostSetService_UpdateHostSet_0(ctx context.Context, marshaler runtime.Marshaler, client HostSetServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq UpdateHostSetRequest
@@ -202,7 +194,6 @@ func request_HostSetService_UpdateHostSet_0(ctx context.Context, marshaler runti
msg, err := client.UpdateHostSet(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_HostSetService_UpdateHostSet_0(ctx context.Context, marshaler runtime.Marshaler, server HostSetServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -250,7 +241,6 @@ func local_request_HostSetService_UpdateHostSet_0(ctx context.Context, marshaler
msg, err := server.UpdateHostSet(ctx, &protoReq)
return msg, metadata, err
}
func request_HostSetService_DeleteHostSet_0(ctx context.Context, marshaler runtime.Marshaler, client HostSetServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -276,7 +266,6 @@ func request_HostSetService_DeleteHostSet_0(ctx context.Context, marshaler runti
msg, err := client.DeleteHostSet(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_HostSetService_DeleteHostSet_0(ctx context.Context, marshaler runtime.Marshaler, server HostSetServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -302,7 +291,6 @@ func local_request_HostSetService_DeleteHostSet_0(ctx context.Context, marshaler
msg, err := server.DeleteHostSet(ctx, &protoReq)
return msg, metadata, err
}
func request_HostSetService_AddHostSetHosts_0(ctx context.Context, marshaler runtime.Marshaler, client HostSetServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -336,7 +324,6 @@ func request_HostSetService_AddHostSetHosts_0(ctx context.Context, marshaler run
msg, err := client.AddHostSetHosts(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_HostSetService_AddHostSetHosts_0(ctx context.Context, marshaler runtime.Marshaler, server HostSetServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -370,7 +357,6 @@ func local_request_HostSetService_AddHostSetHosts_0(ctx context.Context, marshal
msg, err := server.AddHostSetHosts(ctx, &protoReq)
return msg, metadata, err
}
func request_HostSetService_SetHostSetHosts_0(ctx context.Context, marshaler runtime.Marshaler, client HostSetServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -404,7 +390,6 @@ func request_HostSetService_SetHostSetHosts_0(ctx context.Context, marshaler run
msg, err := client.SetHostSetHosts(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_HostSetService_SetHostSetHosts_0(ctx context.Context, marshaler runtime.Marshaler, server HostSetServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -438,7 +423,6 @@ func local_request_HostSetService_SetHostSetHosts_0(ctx context.Context, marshal
msg, err := server.SetHostSetHosts(ctx, &protoReq)
return msg, metadata, err
}
func request_HostSetService_RemoveHostSetHosts_0(ctx context.Context, marshaler runtime.Marshaler, client HostSetServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -472,7 +456,6 @@ func request_HostSetService_RemoveHostSetHosts_0(ctx context.Context, marshaler
msg, err := client.RemoveHostSetHosts(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_HostSetService_RemoveHostSetHosts_0(ctx context.Context, marshaler runtime.Marshaler, server HostSetServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -506,7 +489,6 @@ func local_request_HostSetService_RemoveHostSetHosts_0(ctx context.Context, mars
msg, err := server.RemoveHostSetHosts(ctx, &protoReq)
return msg, metadata, err
}
// RegisterHostSetServiceHandlerServer registers the http handlers for service HostSetService to "mux".
@@ -514,7 +496,6 @@ func local_request_HostSetService_RemoveHostSetHosts_0(ctx context.Context, mars
// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterHostSetServiceHandlerFromEndpoint instead.
func RegisterHostSetServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server HostSetServiceServer) error {
mux.Handle("GET", pattern_HostSetService_GetHostSet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
@@ -535,7 +516,6 @@ func RegisterHostSetServiceHandlerServer(ctx context.Context, mux *runtime.Serve
}
forward_HostSetService_GetHostSet_0(ctx, mux, outboundMarshaler, w, req, response_HostSetService_GetHostSet_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_HostSetService_ListHostSets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -558,7 +538,6 @@ func RegisterHostSetServiceHandlerServer(ctx context.Context, mux *runtime.Serve
}
forward_HostSetService_ListHostSets_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_HostSetService_CreateHostSet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -581,7 +560,6 @@ func RegisterHostSetServiceHandlerServer(ctx context.Context, mux *runtime.Serve
}
forward_HostSetService_CreateHostSet_0(ctx, mux, outboundMarshaler, w, req, response_HostSetService_CreateHostSet_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("PATCH", pattern_HostSetService_UpdateHostSet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -604,7 +582,6 @@ func RegisterHostSetServiceHandlerServer(ctx context.Context, mux *runtime.Serve
}
forward_HostSetService_UpdateHostSet_0(ctx, mux, outboundMarshaler, w, req, response_HostSetService_UpdateHostSet_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("DELETE", pattern_HostSetService_DeleteHostSet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -627,7 +604,6 @@ func RegisterHostSetServiceHandlerServer(ctx context.Context, mux *runtime.Serve
}
forward_HostSetService_DeleteHostSet_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_HostSetService_AddHostSetHosts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -650,7 +626,6 @@ func RegisterHostSetServiceHandlerServer(ctx context.Context, mux *runtime.Serve
}
forward_HostSetService_AddHostSetHosts_0(ctx, mux, outboundMarshaler, w, req, response_HostSetService_AddHostSetHosts_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_HostSetService_SetHostSetHosts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -673,7 +648,6 @@ func RegisterHostSetServiceHandlerServer(ctx context.Context, mux *runtime.Serve
}
forward_HostSetService_SetHostSetHosts_0(ctx, mux, outboundMarshaler, w, req, response_HostSetService_SetHostSetHosts_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_HostSetService_RemoveHostSetHosts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -696,7 +670,6 @@ func RegisterHostSetServiceHandlerServer(ctx context.Context, mux *runtime.Serve
}
forward_HostSetService_RemoveHostSetHosts_0(ctx, mux, outboundMarshaler, w, req, response_HostSetService_RemoveHostSetHosts_0{resp}, mux.GetForwardResponseOptions()...)
})
return nil
@@ -739,7 +712,6 @@ func RegisterHostSetServiceHandler(ctx context.Context, mux *runtime.ServeMux, c
// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
// "HostSetServiceClient" to call the correct interceptors.
func RegisterHostSetServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client HostSetServiceClient) error {
mux.Handle("GET", pattern_HostSetService_GetHostSet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
@@ -757,7 +729,6 @@ func RegisterHostSetServiceHandlerClient(ctx context.Context, mux *runtime.Serve
}
forward_HostSetService_GetHostSet_0(ctx, mux, outboundMarshaler, w, req, response_HostSetService_GetHostSet_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_HostSetService_ListHostSets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -777,7 +748,6 @@ func RegisterHostSetServiceHandlerClient(ctx context.Context, mux *runtime.Serve
}
forward_HostSetService_ListHostSets_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_HostSetService_CreateHostSet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -797,7 +767,6 @@ func RegisterHostSetServiceHandlerClient(ctx context.Context, mux *runtime.Serve
}
forward_HostSetService_CreateHostSet_0(ctx, mux, outboundMarshaler, w, req, response_HostSetService_CreateHostSet_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("PATCH", pattern_HostSetService_UpdateHostSet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -817,7 +786,6 @@ func RegisterHostSetServiceHandlerClient(ctx context.Context, mux *runtime.Serve
}
forward_HostSetService_UpdateHostSet_0(ctx, mux, outboundMarshaler, w, req, response_HostSetService_UpdateHostSet_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("DELETE", pattern_HostSetService_DeleteHostSet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -837,7 +805,6 @@ func RegisterHostSetServiceHandlerClient(ctx context.Context, mux *runtime.Serve
}
forward_HostSetService_DeleteHostSet_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_HostSetService_AddHostSetHosts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -857,7 +824,6 @@ func RegisterHostSetServiceHandlerClient(ctx context.Context, mux *runtime.Serve
}
forward_HostSetService_AddHostSetHosts_0(ctx, mux, outboundMarshaler, w, req, response_HostSetService_AddHostSetHosts_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_HostSetService_SetHostSetHosts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -877,7 +843,6 @@ func RegisterHostSetServiceHandlerClient(ctx context.Context, mux *runtime.Serve
}
forward_HostSetService_SetHostSetHosts_0(ctx, mux, outboundMarshaler, w, req, response_HostSetService_SetHostSetHosts_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_HostSetService_RemoveHostSetHosts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -897,7 +862,6 @@ func RegisterHostSetServiceHandlerClient(ctx context.Context, mux *runtime.Serve
}
forward_HostSetService_RemoveHostSetHosts_0(ctx, mux, outboundMarshaler, w, req, response_HostSetService_RemoveHostSetHosts_0{resp}, mux.GetForwardResponseOptions()...)
})
return nil
@@ -4,6 +4,7 @@ package services
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
@@ -203,30 +204,36 @@ type HostSetServiceServer interface {
}
// UnimplementedHostSetServiceServer must be embedded to have forward compatible implementations.
type UnimplementedHostSetServiceServer struct {
}
type UnimplementedHostSetServiceServer struct{}
func (UnimplementedHostSetServiceServer) GetHostSet(context.Context, *GetHostSetRequest) (*GetHostSetResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetHostSet not implemented")
}
func (UnimplementedHostSetServiceServer) ListHostSets(context.Context, *ListHostSetsRequest) (*ListHostSetsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListHostSets not implemented")
}
func (UnimplementedHostSetServiceServer) CreateHostSet(context.Context, *CreateHostSetRequest) (*CreateHostSetResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateHostSet not implemented")
}
func (UnimplementedHostSetServiceServer) UpdateHostSet(context.Context, *UpdateHostSetRequest) (*UpdateHostSetResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateHostSet not implemented")
}
func (UnimplementedHostSetServiceServer) DeleteHostSet(context.Context, *DeleteHostSetRequest) (*DeleteHostSetResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteHostSet not implemented")
}
func (UnimplementedHostSetServiceServer) AddHostSetHosts(context.Context, *AddHostSetHostsRequest) (*AddHostSetHostsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method AddHostSetHosts not implemented")
}
func (UnimplementedHostSetServiceServer) SetHostSetHosts(context.Context, *SetHostSetHostsRequest) (*SetHostSetHostsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetHostSetHosts not implemented")
}
func (UnimplementedHostSetServiceServer) RemoveHostSetHosts(context.Context, *RemoveHostSetHostsRequest) (*RemoveHostSetHostsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RemoveHostSetHosts not implemented")
}
@@ -7,6 +7,9 @@
package services
import (
reflect "reflect"
sync "sync"
_ "github.com/golang/protobuf/ptypes/wrappers"
_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
roles "github.com/hashicorp/boundary/internal/gen/controller/api/resources/roles"
@@ -14,8 +17,6 @@ import (
field_mask "google.golang.org/genproto/protobuf/field_mask"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
@@ -1478,33 +1479,36 @@ func file_controller_api_services_v1_role_service_proto_rawDescGZIP() []byte {
return file_controller_api_services_v1_role_service_proto_rawDescData
}
var file_controller_api_services_v1_role_service_proto_msgTypes = make([]protoimpl.MessageInfo, 22)
var file_controller_api_services_v1_role_service_proto_goTypes = []interface{}{
(*GetRoleRequest)(nil), // 0: controller.api.services.v1.GetRoleRequest
(*GetRoleResponse)(nil), // 1: controller.api.services.v1.GetRoleResponse
(*ListRolesRequest)(nil), // 2: controller.api.services.v1.ListRolesRequest
(*ListRolesResponse)(nil), // 3: controller.api.services.v1.ListRolesResponse
(*CreateRoleRequest)(nil), // 4: controller.api.services.v1.CreateRoleRequest
(*CreateRoleResponse)(nil), // 5: controller.api.services.v1.CreateRoleResponse
(*UpdateRoleRequest)(nil), // 6: controller.api.services.v1.UpdateRoleRequest
(*UpdateRoleResponse)(nil), // 7: controller.api.services.v1.UpdateRoleResponse
(*DeleteRoleRequest)(nil), // 8: controller.api.services.v1.DeleteRoleRequest
(*DeleteRoleResponse)(nil), // 9: controller.api.services.v1.DeleteRoleResponse
(*AddRolePrincipalsRequest)(nil), // 10: controller.api.services.v1.AddRolePrincipalsRequest
(*AddRolePrincipalsResponse)(nil), // 11: controller.api.services.v1.AddRolePrincipalsResponse
(*SetRolePrincipalsRequest)(nil), // 12: controller.api.services.v1.SetRolePrincipalsRequest
(*SetRolePrincipalsResponse)(nil), // 13: controller.api.services.v1.SetRolePrincipalsResponse
(*RemoveRolePrincipalsRequest)(nil), // 14: controller.api.services.v1.RemoveRolePrincipalsRequest
(*RemoveRolePrincipalsResponse)(nil), // 15: controller.api.services.v1.RemoveRolePrincipalsResponse
(*AddRoleGrantsRequest)(nil), // 16: controller.api.services.v1.AddRoleGrantsRequest
(*AddRoleGrantsResponse)(nil), // 17: controller.api.services.v1.AddRoleGrantsResponse
(*SetRoleGrantsRequest)(nil), // 18: controller.api.services.v1.SetRoleGrantsRequest
(*SetRoleGrantsResponse)(nil), // 19: controller.api.services.v1.SetRoleGrantsResponse
(*RemoveRoleGrantsRequest)(nil), // 20: controller.api.services.v1.RemoveRoleGrantsRequest
(*RemoveRoleGrantsResponse)(nil), // 21: controller.api.services.v1.RemoveRoleGrantsResponse
(*roles.Role)(nil), // 22: controller.api.resources.roles.v1.Role
(*field_mask.FieldMask)(nil), // 23: google.protobuf.FieldMask
}
var (
file_controller_api_services_v1_role_service_proto_msgTypes = make([]protoimpl.MessageInfo, 22)
file_controller_api_services_v1_role_service_proto_goTypes = []interface{}{
(*GetRoleRequest)(nil), // 0: controller.api.services.v1.GetRoleRequest
(*GetRoleResponse)(nil), // 1: controller.api.services.v1.GetRoleResponse
(*ListRolesRequest)(nil), // 2: controller.api.services.v1.ListRolesRequest
(*ListRolesResponse)(nil), // 3: controller.api.services.v1.ListRolesResponse
(*CreateRoleRequest)(nil), // 4: controller.api.services.v1.CreateRoleRequest
(*CreateRoleResponse)(nil), // 5: controller.api.services.v1.CreateRoleResponse
(*UpdateRoleRequest)(nil), // 6: controller.api.services.v1.UpdateRoleRequest
(*UpdateRoleResponse)(nil), // 7: controller.api.services.v1.UpdateRoleResponse
(*DeleteRoleRequest)(nil), // 8: controller.api.services.v1.DeleteRoleRequest
(*DeleteRoleResponse)(nil), // 9: controller.api.services.v1.DeleteRoleResponse
(*AddRolePrincipalsRequest)(nil), // 10: controller.api.services.v1.AddRolePrincipalsRequest
(*AddRolePrincipalsResponse)(nil), // 11: controller.api.services.v1.AddRolePrincipalsResponse
(*SetRolePrincipalsRequest)(nil), // 12: controller.api.services.v1.SetRolePrincipalsRequest
(*SetRolePrincipalsResponse)(nil), // 13: controller.api.services.v1.SetRolePrincipalsResponse
(*RemoveRolePrincipalsRequest)(nil), // 14: controller.api.services.v1.RemoveRolePrincipalsRequest
(*RemoveRolePrincipalsResponse)(nil), // 15: controller.api.services.v1.RemoveRolePrincipalsResponse
(*AddRoleGrantsRequest)(nil), // 16: controller.api.services.v1.AddRoleGrantsRequest
(*AddRoleGrantsResponse)(nil), // 17: controller.api.services.v1.AddRoleGrantsResponse
(*SetRoleGrantsRequest)(nil), // 18: controller.api.services.v1.SetRoleGrantsRequest
(*SetRoleGrantsResponse)(nil), // 19: controller.api.services.v1.SetRoleGrantsResponse
(*RemoveRoleGrantsRequest)(nil), // 20: controller.api.services.v1.RemoveRoleGrantsRequest
(*RemoveRoleGrantsResponse)(nil), // 21: controller.api.services.v1.RemoveRoleGrantsResponse
(*roles.Role)(nil), // 22: controller.api.resources.roles.v1.Role
(*field_mask.FieldMask)(nil), // 23: google.protobuf.FieldMask
}
)
var file_controller_api_services_v1_role_service_proto_depIdxs = []int32{
22, // 0: controller.api.services.v1.GetRoleResponse.item:type_name -> controller.api.resources.roles.v1.Role
22, // 1: controller.api.services.v1.ListRolesResponse.items:type_name -> controller.api.resources.roles.v1.Role
@@ -24,12 +24,14 @@ import (
)
// Suppress "imported and not used" errors
var _ codes.Code
var _ io.Reader
var _ status.Status
var _ = runtime.String
var _ = utilities.NewDoubleArray
var _ = metadata.Join
var (
_ codes.Code
_ io.Reader
_ status.Status
_ = runtime.String
_ = utilities.NewDoubleArray
_ = metadata.Join
)
func request_RoleService_GetRole_0(ctx context.Context, marshaler runtime.Marshaler, client RoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq GetRoleRequest
@@ -54,7 +56,6 @@ func request_RoleService_GetRole_0(ctx context.Context, marshaler runtime.Marsha
msg, err := client.GetRole(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_RoleService_GetRole_0(ctx context.Context, marshaler runtime.Marshaler, server RoleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -80,12 +81,9 @@ func local_request_RoleService_GetRole_0(ctx context.Context, marshaler runtime.
msg, err := server.GetRole(ctx, &protoReq)
return msg, metadata, err
}
var (
filter_RoleService_ListRoles_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
)
var filter_RoleService_ListRoles_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
func request_RoleService_ListRoles_0(ctx context.Context, marshaler runtime.Marshaler, client RoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq ListRolesRequest
@@ -100,7 +98,6 @@ func request_RoleService_ListRoles_0(ctx context.Context, marshaler runtime.Mars
msg, err := client.ListRoles(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_RoleService_ListRoles_0(ctx context.Context, marshaler runtime.Marshaler, server RoleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -116,7 +113,6 @@ func local_request_RoleService_ListRoles_0(ctx context.Context, marshaler runtim
msg, err := server.ListRoles(ctx, &protoReq)
return msg, metadata, err
}
func request_RoleService_CreateRole_0(ctx context.Context, marshaler runtime.Marshaler, client RoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -133,7 +129,6 @@ func request_RoleService_CreateRole_0(ctx context.Context, marshaler runtime.Mar
msg, err := client.CreateRole(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_RoleService_CreateRole_0(ctx context.Context, marshaler runtime.Marshaler, server RoleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -150,12 +145,9 @@ func local_request_RoleService_CreateRole_0(ctx context.Context, marshaler runti
msg, err := server.CreateRole(ctx, &protoReq)
return msg, metadata, err
}
var (
filter_RoleService_UpdateRole_0 = &utilities.DoubleArray{Encoding: map[string]int{"item": 0, "id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}}
)
var filter_RoleService_UpdateRole_0 = &utilities.DoubleArray{Encoding: map[string]int{"item": 0, "id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}}
func request_RoleService_UpdateRole_0(ctx context.Context, marshaler runtime.Marshaler, client RoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq UpdateRoleRequest
@@ -202,7 +194,6 @@ func request_RoleService_UpdateRole_0(ctx context.Context, marshaler runtime.Mar
msg, err := client.UpdateRole(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_RoleService_UpdateRole_0(ctx context.Context, marshaler runtime.Marshaler, server RoleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -250,7 +241,6 @@ func local_request_RoleService_UpdateRole_0(ctx context.Context, marshaler runti
msg, err := server.UpdateRole(ctx, &protoReq)
return msg, metadata, err
}
func request_RoleService_DeleteRole_0(ctx context.Context, marshaler runtime.Marshaler, client RoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -276,7 +266,6 @@ func request_RoleService_DeleteRole_0(ctx context.Context, marshaler runtime.Mar
msg, err := client.DeleteRole(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_RoleService_DeleteRole_0(ctx context.Context, marshaler runtime.Marshaler, server RoleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -302,7 +291,6 @@ func local_request_RoleService_DeleteRole_0(ctx context.Context, marshaler runti
msg, err := server.DeleteRole(ctx, &protoReq)
return msg, metadata, err
}
func request_RoleService_AddRolePrincipals_0(ctx context.Context, marshaler runtime.Marshaler, client RoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -336,7 +324,6 @@ func request_RoleService_AddRolePrincipals_0(ctx context.Context, marshaler runt
msg, err := client.AddRolePrincipals(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_RoleService_AddRolePrincipals_0(ctx context.Context, marshaler runtime.Marshaler, server RoleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -370,7 +357,6 @@ func local_request_RoleService_AddRolePrincipals_0(ctx context.Context, marshale
msg, err := server.AddRolePrincipals(ctx, &protoReq)
return msg, metadata, err
}
func request_RoleService_SetRolePrincipals_0(ctx context.Context, marshaler runtime.Marshaler, client RoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -404,7 +390,6 @@ func request_RoleService_SetRolePrincipals_0(ctx context.Context, marshaler runt
msg, err := client.SetRolePrincipals(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_RoleService_SetRolePrincipals_0(ctx context.Context, marshaler runtime.Marshaler, server RoleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -438,7 +423,6 @@ func local_request_RoleService_SetRolePrincipals_0(ctx context.Context, marshale
msg, err := server.SetRolePrincipals(ctx, &protoReq)
return msg, metadata, err
}
func request_RoleService_RemoveRolePrincipals_0(ctx context.Context, marshaler runtime.Marshaler, client RoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -472,7 +456,6 @@ func request_RoleService_RemoveRolePrincipals_0(ctx context.Context, marshaler r
msg, err := client.RemoveRolePrincipals(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_RoleService_RemoveRolePrincipals_0(ctx context.Context, marshaler runtime.Marshaler, server RoleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -506,7 +489,6 @@ func local_request_RoleService_RemoveRolePrincipals_0(ctx context.Context, marsh
msg, err := server.RemoveRolePrincipals(ctx, &protoReq)
return msg, metadata, err
}
func request_RoleService_AddRoleGrants_0(ctx context.Context, marshaler runtime.Marshaler, client RoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -540,7 +522,6 @@ func request_RoleService_AddRoleGrants_0(ctx context.Context, marshaler runtime.
msg, err := client.AddRoleGrants(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_RoleService_AddRoleGrants_0(ctx context.Context, marshaler runtime.Marshaler, server RoleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -574,7 +555,6 @@ func local_request_RoleService_AddRoleGrants_0(ctx context.Context, marshaler ru
msg, err := server.AddRoleGrants(ctx, &protoReq)
return msg, metadata, err
}
func request_RoleService_SetRoleGrants_0(ctx context.Context, marshaler runtime.Marshaler, client RoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -608,7 +588,6 @@ func request_RoleService_SetRoleGrants_0(ctx context.Context, marshaler runtime.
msg, err := client.SetRoleGrants(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_RoleService_SetRoleGrants_0(ctx context.Context, marshaler runtime.Marshaler, server RoleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -642,7 +621,6 @@ func local_request_RoleService_SetRoleGrants_0(ctx context.Context, marshaler ru
msg, err := server.SetRoleGrants(ctx, &protoReq)
return msg, metadata, err
}
func request_RoleService_RemoveRoleGrants_0(ctx context.Context, marshaler runtime.Marshaler, client RoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -676,7 +654,6 @@ func request_RoleService_RemoveRoleGrants_0(ctx context.Context, marshaler runti
msg, err := client.RemoveRoleGrants(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_RoleService_RemoveRoleGrants_0(ctx context.Context, marshaler runtime.Marshaler, server RoleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -710,7 +687,6 @@ func local_request_RoleService_RemoveRoleGrants_0(ctx context.Context, marshaler
msg, err := server.RemoveRoleGrants(ctx, &protoReq)
return msg, metadata, err
}
// RegisterRoleServiceHandlerServer registers the http handlers for service RoleService to "mux".
@@ -718,7 +694,6 @@ func local_request_RoleService_RemoveRoleGrants_0(ctx context.Context, marshaler
// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterRoleServiceHandlerFromEndpoint instead.
func RegisterRoleServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RoleServiceServer) error {
mux.Handle("GET", pattern_RoleService_GetRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
@@ -739,7 +714,6 @@ func RegisterRoleServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux
}
forward_RoleService_GetRole_0(ctx, mux, outboundMarshaler, w, req, response_RoleService_GetRole_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_RoleService_ListRoles_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -762,7 +736,6 @@ func RegisterRoleServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux
}
forward_RoleService_ListRoles_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_RoleService_CreateRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -785,7 +758,6 @@ func RegisterRoleServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux
}
forward_RoleService_CreateRole_0(ctx, mux, outboundMarshaler, w, req, response_RoleService_CreateRole_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("PATCH", pattern_RoleService_UpdateRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -808,7 +780,6 @@ func RegisterRoleServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux
}
forward_RoleService_UpdateRole_0(ctx, mux, outboundMarshaler, w, req, response_RoleService_UpdateRole_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("DELETE", pattern_RoleService_DeleteRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -831,7 +802,6 @@ func RegisterRoleServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux
}
forward_RoleService_DeleteRole_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_RoleService_AddRolePrincipals_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -854,7 +824,6 @@ func RegisterRoleServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux
}
forward_RoleService_AddRolePrincipals_0(ctx, mux, outboundMarshaler, w, req, response_RoleService_AddRolePrincipals_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_RoleService_SetRolePrincipals_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -877,7 +846,6 @@ func RegisterRoleServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux
}
forward_RoleService_SetRolePrincipals_0(ctx, mux, outboundMarshaler, w, req, response_RoleService_SetRolePrincipals_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_RoleService_RemoveRolePrincipals_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -900,7 +868,6 @@ func RegisterRoleServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux
}
forward_RoleService_RemoveRolePrincipals_0(ctx, mux, outboundMarshaler, w, req, response_RoleService_RemoveRolePrincipals_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_RoleService_AddRoleGrants_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -923,7 +890,6 @@ func RegisterRoleServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux
}
forward_RoleService_AddRoleGrants_0(ctx, mux, outboundMarshaler, w, req, response_RoleService_AddRoleGrants_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_RoleService_SetRoleGrants_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -946,7 +912,6 @@ func RegisterRoleServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux
}
forward_RoleService_SetRoleGrants_0(ctx, mux, outboundMarshaler, w, req, response_RoleService_SetRoleGrants_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_RoleService_RemoveRoleGrants_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -969,7 +934,6 @@ func RegisterRoleServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux
}
forward_RoleService_RemoveRoleGrants_0(ctx, mux, outboundMarshaler, w, req, response_RoleService_RemoveRoleGrants_0{resp}, mux.GetForwardResponseOptions()...)
})
return nil
@@ -1012,7 +976,6 @@ func RegisterRoleServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn
// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
// "RoleServiceClient" to call the correct interceptors.
func RegisterRoleServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RoleServiceClient) error {
mux.Handle("GET", pattern_RoleService_GetRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
@@ -1030,7 +993,6 @@ func RegisterRoleServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux
}
forward_RoleService_GetRole_0(ctx, mux, outboundMarshaler, w, req, response_RoleService_GetRole_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_RoleService_ListRoles_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -1050,7 +1012,6 @@ func RegisterRoleServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux
}
forward_RoleService_ListRoles_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_RoleService_CreateRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -1070,7 +1031,6 @@ func RegisterRoleServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux
}
forward_RoleService_CreateRole_0(ctx, mux, outboundMarshaler, w, req, response_RoleService_CreateRole_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("PATCH", pattern_RoleService_UpdateRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -1090,7 +1050,6 @@ func RegisterRoleServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux
}
forward_RoleService_UpdateRole_0(ctx, mux, outboundMarshaler, w, req, response_RoleService_UpdateRole_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("DELETE", pattern_RoleService_DeleteRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -1110,7 +1069,6 @@ func RegisterRoleServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux
}
forward_RoleService_DeleteRole_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_RoleService_AddRolePrincipals_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -1130,7 +1088,6 @@ func RegisterRoleServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux
}
forward_RoleService_AddRolePrincipals_0(ctx, mux, outboundMarshaler, w, req, response_RoleService_AddRolePrincipals_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_RoleService_SetRolePrincipals_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -1150,7 +1107,6 @@ func RegisterRoleServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux
}
forward_RoleService_SetRolePrincipals_0(ctx, mux, outboundMarshaler, w, req, response_RoleService_SetRolePrincipals_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_RoleService_RemoveRolePrincipals_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -1170,7 +1126,6 @@ func RegisterRoleServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux
}
forward_RoleService_RemoveRolePrincipals_0(ctx, mux, outboundMarshaler, w, req, response_RoleService_RemoveRolePrincipals_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_RoleService_AddRoleGrants_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -1190,7 +1145,6 @@ func RegisterRoleServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux
}
forward_RoleService_AddRoleGrants_0(ctx, mux, outboundMarshaler, w, req, response_RoleService_AddRoleGrants_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_RoleService_SetRoleGrants_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -1210,7 +1164,6 @@ func RegisterRoleServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux
}
forward_RoleService_SetRoleGrants_0(ctx, mux, outboundMarshaler, w, req, response_RoleService_SetRoleGrants_0{resp}, mux.GetForwardResponseOptions()...)
})
mux.Handle("POST", pattern_RoleService_RemoveRoleGrants_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
@@ -1230,7 +1183,6 @@ func RegisterRoleServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux
}
forward_RoleService_RemoveRoleGrants_0(ctx, mux, outboundMarshaler, w, req, response_RoleService_RemoveRoleGrants_0{resp}, mux.GetForwardResponseOptions()...)
})
return nil
@@ -4,6 +4,7 @@ package services
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
@@ -256,39 +257,48 @@ type RoleServiceServer interface {
}
// UnimplementedRoleServiceServer must be embedded to have forward compatible implementations.
type UnimplementedRoleServiceServer struct {
}
type UnimplementedRoleServiceServer struct{}
func (UnimplementedRoleServiceServer) GetRole(context.Context, *GetRoleRequest) (*GetRoleResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetRole not implemented")
}
func (UnimplementedRoleServiceServer) ListRoles(context.Context, *ListRolesRequest) (*ListRolesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListRoles not implemented")
}
func (UnimplementedRoleServiceServer) CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateRole not implemented")
}
func (UnimplementedRoleServiceServer) UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateRole not implemented")
}
func (UnimplementedRoleServiceServer) DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteRole not implemented")
}
func (UnimplementedRoleServiceServer) AddRolePrincipals(context.Context, *AddRolePrincipalsRequest) (*AddRolePrincipalsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method AddRolePrincipals not implemented")
}
func (UnimplementedRoleServiceServer) SetRolePrincipals(context.Context, *SetRolePrincipalsRequest) (*SetRolePrincipalsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetRolePrincipals not implemented")
}
func (UnimplementedRoleServiceServer) RemoveRolePrincipals(context.Context, *RemoveRolePrincipalsRequest) (*RemoveRolePrincipalsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RemoveRolePrincipals not implemented")
}
func (UnimplementedRoleServiceServer) AddRoleGrants(context.Context, *AddRoleGrantsRequest) (*AddRoleGrantsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method AddRoleGrants not implemented")
}
func (UnimplementedRoleServiceServer) SetRoleGrants(context.Context, *SetRoleGrantsRequest) (*SetRoleGrantsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetRoleGrants not implemented")
}
func (UnimplementedRoleServiceServer) RemoveRoleGrants(context.Context, *RemoveRoleGrantsRequest) (*RemoveRoleGrantsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RemoveRoleGrants not implemented")
}
Loaded 100 of 237 files, more files were not shown because too many files have changed in this diff. Show more