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:
1 parent
cca0fbea2b
commit
94cb79bbdd
237 files changed
+1567
-1529
No files matched your search
@@ -26,7 +26,7 @@ func TestTarget_ImmutableFields(t *testing.T) {
|
||||
_, proj := iam.TestScopes(t, iam.TestRepo(t, conn, wrapper))
|
||||
new := TestTcpTarget(t, conn, proj.PublicId, testId(t))
|
||||
|
||||
var tests = []struct {
|
||||
tests := []struct {
|
||||
name string
|
||||
update *TcpTarget
|
||||
fieldMask []string
|
||||
@@ -80,7 +80,6 @@ func TestTarget_ImmutableFields(t *testing.T) {
|
||||
require.NoError(err)
|
||||
|
||||
assert.True(proto.Equal(orig.(*TcpTarget), after.(*TcpTarget)))
|
||||
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -96,7 +95,7 @@ func TestTcpTarget_ImmutableFields(t *testing.T) {
|
||||
_, proj := iam.TestScopes(t, iam.TestRepo(t, conn, wrapper))
|
||||
new := TestTcpTarget(t, conn, proj.PublicId, testId(t))
|
||||
|
||||
var tests = []struct {
|
||||
tests := []struct {
|
||||
name string
|
||||
update *TcpTarget
|
||||
fieldMask []string
|
||||
@@ -146,7 +145,6 @@ func TestTcpTarget_ImmutableFields(t *testing.T) {
|
||||
require.NoError(err)
|
||||
|
||||
assert.True(proto.Equal(orig.(*TcpTarget), after.(*TcpTarget)))
|
||||
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -177,7 +175,7 @@ func TestTargetHostSet_ImmutableFields(t *testing.T) {
|
||||
new, err := NewTargetHostSet(projTarget.PublicId, gotHostSets[0].PublicId)
|
||||
require.NoError(t, err)
|
||||
|
||||
var tests = []struct {
|
||||
tests := []struct {
|
||||
name string
|
||||
update *TargetHostSet
|
||||
fieldMask []string
|
||||
|
||||
@@ -12,9 +12,7 @@ import (
|
||||
"github.com/hashicorp/boundary/internal/oplog"
|
||||
)
|
||||
|
||||
var (
|
||||
ErrMetadataScopeNotFound = stderrors.New("scope not found for metadata")
|
||||
)
|
||||
var ErrMetadataScopeNotFound = stderrors.New("scope not found for metadata")
|
||||
|
||||
// Clonable provides a cloning interface
|
||||
type Cloneable interface {
|
||||
|
||||
@@ -7,12 +7,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 (
|
||||
@@ -496,13 +497,16 @@ func file_controller_storage_target_store_v1_target_proto_rawDescGZIP() []byte {
|
||||
return file_controller_storage_target_store_v1_target_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_controller_storage_target_store_v1_target_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
||||
var file_controller_storage_target_store_v1_target_proto_goTypes = []interface{}{
|
||||
(*TargetView)(nil), // 0: controller.storage.target.store.v1.TargetView
|
||||
(*TargetHostSet)(nil), // 1: controller.storage.target.store.v1.TargetHostSet
|
||||
(*TcpTarget)(nil), // 2: controller.storage.target.store.v1.TcpTarget
|
||||
(*timestamp.Timestamp)(nil), // 3: controller.storage.timestamp.v1.Timestamp
|
||||
}
|
||||
var (
|
||||
file_controller_storage_target_store_v1_target_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
||||
file_controller_storage_target_store_v1_target_proto_goTypes = []interface{}{
|
||||
(*TargetView)(nil), // 0: controller.storage.target.store.v1.TargetView
|
||||
(*TargetHostSet)(nil), // 1: controller.storage.target.store.v1.TargetHostSet
|
||||
(*TcpTarget)(nil), // 2: controller.storage.target.store.v1.TcpTarget
|
||||
(*timestamp.Timestamp)(nil), // 3: controller.storage.timestamp.v1.Timestamp
|
||||
}
|
||||
)
|
||||
|
||||
var file_controller_storage_target_store_v1_target_proto_depIdxs = []int32{
|
||||
3, // 0: controller.storage.target.store.v1.TargetView.create_time:type_name -> controller.storage.timestamp.v1.Timestamp
|
||||
3, // 1: controller.storage.target.store.v1.TargetView.update_time:type_name -> controller.storage.timestamp.v1.Timestamp
|
||||
|
||||
@@ -20,9 +20,11 @@ type TcpTarget struct {
|
||||
tableName string `gorm:"-"`
|
||||
}
|
||||
|
||||
var _ Target = (*TcpTarget)(nil)
|
||||
var _ db.VetForWriter = (*TcpTarget)(nil)
|
||||
var _ oplog.ReplayableMessage = (*TcpTarget)(nil)
|
||||
var (
|
||||
_ Target = (*TcpTarget)(nil)
|
||||
_ db.VetForWriter = (*TcpTarget)(nil)
|
||||
_ oplog.ReplayableMessage = (*TcpTarget)(nil)
|
||||
)
|
||||
|
||||
// NewTcpTarget creates a new in memory tcp target. WithName, WithDescription and
|
||||
// WithDefaultPort options are supported
|
||||
|
||||
Reference in new issue
Block a user