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
@@ -33,7 +33,7 @@ bin: build-ui
|
||||
@CGO_ENABLED=$(CGO_ENABLED) BUILD_TAGS='$(BUILD_TAGS)' sh -c "'$(CURDIR)/scripts/build.sh'"
|
||||
|
||||
fmt:
|
||||
goimports -w $$(find . -name '*.go' | grep -v pb.go | grep -v pb.gw.go)
|
||||
gofumpt -w $$(find . -name '*.go' | grep -v pb.go | grep -v pb.gw.go)
|
||||
|
||||
# Set env for all UI targets.
|
||||
UI_TARGETS := update-ui-version build-ui build-ui-ifne
|
||||
|
||||
@@ -57,8 +57,10 @@ func (n AccountReadResult) GetResponseMap() map[string]interface{} {
|
||||
return n.response.Map
|
||||
}
|
||||
|
||||
type AccountCreateResult = AccountReadResult
|
||||
type AccountUpdateResult = AccountReadResult
|
||||
type (
|
||||
AccountCreateResult = AccountReadResult
|
||||
AccountUpdateResult = AccountReadResult
|
||||
)
|
||||
|
||||
type AccountDeleteResult struct {
|
||||
response *api.Response
|
||||
|
||||
@@ -57,8 +57,10 @@ func (n AuthMethodReadResult) GetResponseMap() map[string]interface{} {
|
||||
return n.response.Map
|
||||
}
|
||||
|
||||
type AuthMethodCreateResult = AuthMethodReadResult
|
||||
type AuthMethodUpdateResult = AuthMethodReadResult
|
||||
type (
|
||||
AuthMethodCreateResult = AuthMethodReadResult
|
||||
AuthMethodUpdateResult = AuthMethodReadResult
|
||||
)
|
||||
|
||||
type AuthMethodDeleteResult struct {
|
||||
response *api.Response
|
||||
|
||||
@@ -57,8 +57,10 @@ func (n AuthTokenReadResult) GetResponseMap() map[string]interface{} {
|
||||
return n.response.Map
|
||||
}
|
||||
|
||||
type AuthTokenCreateResult = AuthTokenReadResult
|
||||
type AuthTokenUpdateResult = AuthTokenReadResult
|
||||
type (
|
||||
AuthTokenCreateResult = AuthTokenReadResult
|
||||
AuthTokenUpdateResult = AuthTokenReadResult
|
||||
)
|
||||
|
||||
type AuthTokenDeleteResult struct {
|
||||
response *api.Response
|
||||
|
||||
+15
-13
@@ -28,18 +28,20 @@ import (
|
||||
"golang.org/x/time/rate"
|
||||
)
|
||||
|
||||
const EnvBoundaryAddr = "BOUNDARY_ADDR"
|
||||
const EnvBoundaryCACert = "BOUNDARY_CACERT"
|
||||
const EnvBoundaryCAPath = "BOUNDARY_CAPATH"
|
||||
const EnvBoundaryClientCert = "BOUNDARY_CLIENT_CERT"
|
||||
const EnvBoundaryClientKey = "BOUNDARY_CLIENT_KEY"
|
||||
const EnvBoundaryClientTimeout = "BOUNDARY_CLIENT_TIMEOUT"
|
||||
const EnvBoundaryTLSInsecure = "BOUNDARY_TLS_INSECURE"
|
||||
const EnvBoundaryTLSServerName = "BOUNDARY_TLS_SERVER_NAME"
|
||||
const EnvBoundaryMaxRetries = "BOUNDARY_MAX_RETRIES"
|
||||
const EnvBoundaryToken = "BOUNDARY_TOKEN"
|
||||
const EnvBoundaryRateLimit = "BOUNDARY_RATE_LIMIT"
|
||||
const EnvBoundarySRVLookup = "BOUNDARY_SRV_LOOKUP"
|
||||
const (
|
||||
EnvBoundaryAddr = "BOUNDARY_ADDR"
|
||||
EnvBoundaryCACert = "BOUNDARY_CACERT"
|
||||
EnvBoundaryCAPath = "BOUNDARY_CAPATH"
|
||||
EnvBoundaryClientCert = "BOUNDARY_CLIENT_CERT"
|
||||
EnvBoundaryClientKey = "BOUNDARY_CLIENT_KEY"
|
||||
EnvBoundaryClientTimeout = "BOUNDARY_CLIENT_TIMEOUT"
|
||||
EnvBoundaryTLSInsecure = "BOUNDARY_TLS_INSECURE"
|
||||
EnvBoundaryTLSServerName = "BOUNDARY_TLS_SERVER_NAME"
|
||||
EnvBoundaryMaxRetries = "BOUNDARY_MAX_RETRIES"
|
||||
EnvBoundaryToken = "BOUNDARY_TOKEN"
|
||||
EnvBoundaryRateLimit = "BOUNDARY_RATE_LIMIT"
|
||||
EnvBoundarySRVLookup = "BOUNDARY_SRV_LOOKUP"
|
||||
)
|
||||
|
||||
// Config is used to configure the creation of the client
|
||||
type Config struct {
|
||||
@@ -642,7 +644,7 @@ func (c *Client) NewRequest(ctx context.Context, method, requestPath string, bod
|
||||
u.Path = ""
|
||||
}
|
||||
|
||||
var host = u.Host
|
||||
host := u.Host
|
||||
// if SRV records exist (see
|
||||
// https://tools.ietf.org/html/draft-andrews-http-srv-02), lookup the SRV
|
||||
// record and take the highest match; this is not designed for
|
||||
|
||||
@@ -57,8 +57,10 @@ func (n GroupReadResult) GetResponseMap() map[string]interface{} {
|
||||
return n.response.Map
|
||||
}
|
||||
|
||||
type GroupCreateResult = GroupReadResult
|
||||
type GroupUpdateResult = GroupReadResult
|
||||
type (
|
||||
GroupCreateResult = GroupReadResult
|
||||
GroupUpdateResult = GroupReadResult
|
||||
)
|
||||
|
||||
type GroupDeleteResult struct {
|
||||
response *api.Response
|
||||
|
||||
@@ -57,8 +57,10 @@ func (n HostCatalogReadResult) GetResponseMap() map[string]interface{} {
|
||||
return n.response.Map
|
||||
}
|
||||
|
||||
type HostCatalogCreateResult = HostCatalogReadResult
|
||||
type HostCatalogUpdateResult = HostCatalogReadResult
|
||||
type (
|
||||
HostCatalogCreateResult = HostCatalogReadResult
|
||||
HostCatalogUpdateResult = HostCatalogReadResult
|
||||
)
|
||||
|
||||
type HostCatalogDeleteResult struct {
|
||||
response *api.Response
|
||||
|
||||
@@ -58,8 +58,10 @@ func (n HostReadResult) GetResponseMap() map[string]interface{} {
|
||||
return n.response.Map
|
||||
}
|
||||
|
||||
type HostCreateResult = HostReadResult
|
||||
type HostUpdateResult = HostReadResult
|
||||
type (
|
||||
HostCreateResult = HostReadResult
|
||||
HostUpdateResult = HostReadResult
|
||||
)
|
||||
|
||||
type HostDeleteResult struct {
|
||||
response *api.Response
|
||||
|
||||
@@ -58,8 +58,10 @@ func (n HostSetReadResult) GetResponseMap() map[string]interface{} {
|
||||
return n.response.Map
|
||||
}
|
||||
|
||||
type HostSetCreateResult = HostSetReadResult
|
||||
type HostSetUpdateResult = HostSetReadResult
|
||||
type (
|
||||
HostSetCreateResult = HostSetReadResult
|
||||
HostSetUpdateResult = HostSetReadResult
|
||||
)
|
||||
|
||||
type HostSetDeleteResult struct {
|
||||
response *api.Response
|
||||
|
||||
+1
-2
@@ -12,8 +12,7 @@ func getOpts(opt ...Option) options {
|
||||
type Option func(*options)
|
||||
|
||||
// options = how options are represented
|
||||
type options struct {
|
||||
}
|
||||
type options struct{}
|
||||
|
||||
func getDefaultOptions() options {
|
||||
return options{}
|
||||
|
||||
@@ -12,9 +12,7 @@ const (
|
||||
ErrOutputStringRequest = "output a string, please"
|
||||
)
|
||||
|
||||
var (
|
||||
LastOutputStringError *OutputStringError
|
||||
)
|
||||
var LastOutputStringError *OutputStringError
|
||||
|
||||
type OutputStringError struct {
|
||||
*retryablehttp.Request
|
||||
|
||||
@@ -60,8 +60,10 @@ func (n RoleReadResult) GetResponseMap() map[string]interface{} {
|
||||
return n.response.Map
|
||||
}
|
||||
|
||||
type RoleCreateResult = RoleReadResult
|
||||
type RoleUpdateResult = RoleReadResult
|
||||
type (
|
||||
RoleCreateResult = RoleReadResult
|
||||
RoleUpdateResult = RoleReadResult
|
||||
)
|
||||
|
||||
type RoleDeleteResult struct {
|
||||
response *api.Response
|
||||
|
||||
@@ -55,8 +55,10 @@ func (n ScopeReadResult) GetResponseMap() map[string]interface{} {
|
||||
return n.response.Map
|
||||
}
|
||||
|
||||
type ScopeCreateResult = ScopeReadResult
|
||||
type ScopeUpdateResult = ScopeReadResult
|
||||
type (
|
||||
ScopeCreateResult = ScopeReadResult
|
||||
ScopeUpdateResult = ScopeReadResult
|
||||
)
|
||||
|
||||
type ScopeDeleteResult struct {
|
||||
response *api.Response
|
||||
|
||||
@@ -65,8 +65,10 @@ func (n SessionReadResult) GetResponseMap() map[string]interface{} {
|
||||
return n.response.Map
|
||||
}
|
||||
|
||||
type SessionCreateResult = SessionReadResult
|
||||
type SessionUpdateResult = SessionReadResult
|
||||
type (
|
||||
SessionCreateResult = SessionReadResult
|
||||
SessionUpdateResult = SessionReadResult
|
||||
)
|
||||
|
||||
type SessionDeleteResult struct {
|
||||
response *api.Response
|
||||
|
||||
@@ -61,8 +61,10 @@ func (n TargetReadResult) GetResponseMap() map[string]interface{} {
|
||||
return n.response.Map
|
||||
}
|
||||
|
||||
type TargetCreateResult = TargetReadResult
|
||||
type TargetUpdateResult = TargetReadResult
|
||||
type (
|
||||
TargetCreateResult = TargetReadResult
|
||||
TargetUpdateResult = TargetReadResult
|
||||
)
|
||||
|
||||
type TargetDeleteResult struct {
|
||||
response *api.Response
|
||||
|
||||
@@ -57,8 +57,10 @@ func (n UserReadResult) GetResponseMap() map[string]interface{} {
|
||||
return n.response.Map
|
||||
}
|
||||
|
||||
type UserCreateResult = UserReadResult
|
||||
type UserUpdateResult = UserReadResult
|
||||
type (
|
||||
UserCreateResult = UserReadResult
|
||||
UserUpdateResult = UserReadResult
|
||||
)
|
||||
|
||||
type UserDeleteResult struct {
|
||||
response *api.Response
|
||||
|
||||
+4
-2
@@ -14,8 +14,10 @@ const (
|
||||
ServiceTokenV1 = "s1"
|
||||
)
|
||||
|
||||
type ContextMaxRequestSizeType int
|
||||
type ContextOriginalRequestPathType int
|
||||
type (
|
||||
ContextMaxRequestSizeType int
|
||||
ContextOriginalRequestPathType int
|
||||
)
|
||||
|
||||
var (
|
||||
// DefaultMaxRequestDuration is the amount of time we'll wait for a request
|
||||
|
||||
@@ -53,10 +53,11 @@ require (
|
||||
github.com/zalando/go-keyring v0.1.0
|
||||
go.uber.org/atomic v1.7.0
|
||||
golang.org/x/crypto v0.0.0-20201208171446-5f87f3452ae9
|
||||
golang.org/x/tools v0.0.0-20201211185031-d93e913c1a58
|
||||
golang.org/x/tools v0.0.0-20210101214203-2dba1e4ea05c
|
||||
google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d
|
||||
google.golang.org/grpc v1.34.0
|
||||
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.0.1
|
||||
google.golang.org/protobuf v1.25.1-0.20201020201750-d3470999428b
|
||||
mvdan.cc/gofumpt v0.1.0
|
||||
nhooyr.io/websocket v1.8.6
|
||||
)
|
||||
@@ -992,6 +992,8 @@ github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6L
|
||||
github.com/rogpeppe/go-internal v1.1.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
|
||||
github.com/rogpeppe/go-internal v1.2.2/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
|
||||
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
|
||||
github.com/rogpeppe/go-internal v1.6.2 h1:aIihoIOHCiLZHxyoNQ+ABL4NKhFTgKLBdMLyEAh98m0=
|
||||
github.com/rogpeppe/go-internal v1.6.2/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
|
||||
github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ=
|
||||
github.com/rs/zerolog v1.13.0/go.mod h1:YbFCdg8HfsridGWAh22vktObvhZbQsZXe4/zB0OKkWU=
|
||||
github.com/rs/zerolog v1.15.0/go.mod h1:xYTKnLHcpfU2225ny5qZjxnj9NvkumZYjJHlAThCjNc=
|
||||
@@ -1193,6 +1195,8 @@ golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzB
|
||||
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4=
|
||||
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.4.0 h1:8pl+sMODzuvGJkmj2W4kZihvVb5mKm8pB/X44PIQHv8=
|
||||
golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/net v0.0.0-20180218175443-cbe0f9307d01/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
@@ -1403,8 +1407,8 @@ golang.org/x/tools v0.0.0-20200814230902-9882f1d1823d/go.mod h1:njjCfa9FT2d7l9Bc
|
||||
golang.org/x/tools v0.0.0-20200817023811-d00afeaade8f/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
||||
golang.org/x/tools v0.0.0-20200818005847-188abfa75333/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
||||
golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
||||
golang.org/x/tools v0.0.0-20201211185031-d93e913c1a58 h1:1Bs6RVeBFtLZ8Yi1Hk07DiOqzvwLD/4hln4iahvFlag=
|
||||
golang.org/x/tools v0.0.0-20201211185031-d93e913c1a58/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||
golang.org/x/tools v0.0.0-20210101214203-2dba1e4ea05c h1:dS09fXwOFF9cXBnIzZexIuUBj95U1NyQjkEhkgidDow=
|
||||
golang.org/x/tools v0.0.0-20210101214203-2dba1e4ea05c/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||
golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
@@ -1531,6 +1535,7 @@ gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8
|
||||
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU=
|
||||
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw=
|
||||
gopkg.in/errgo.v2 v2.1.0 h1:0vLT13EuvQ0hNvakwLuFZ/jYrLp5F3kcWHXdRggjCE8=
|
||||
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
|
||||
gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
|
||||
gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o=
|
||||
@@ -1591,6 +1596,8 @@ modernc.org/ql v1.0.0/go.mod h1:xGVyrLIatPcO2C1JvI/Co8c0sr6y91HKFNy4pt9JXEY=
|
||||
modernc.org/sortutil v1.1.0/go.mod h1:ZyL98OQHJgH9IEfN71VsamvJgrtRX9Dj2gX+vH86L1k=
|
||||
modernc.org/strutil v1.1.0/go.mod h1:lstksw84oURvj9y3tn8lGvRxyRC1S2+g5uuIzNfIOBs=
|
||||
modernc.org/zappy v1.0.0/go.mod h1:hHe+oGahLVII/aTTyWK/b53VDHMAGCBYYeZ9sn83HC4=
|
||||
mvdan.cc/gofumpt v0.1.0 h1:hsVv+Y9UsZ/mFZTxJZuHVI6shSQCtzZ11h1JEFPAZLw=
|
||||
mvdan.cc/gofumpt v0.1.0/go.mod h1:yXG1r1WqZVKWbVRtBWKWX9+CxGYfA51nSomhM0woR48=
|
||||
nhooyr.io/websocket v1.8.6 h1:s+C3xAMLwGmlI31Nyn/eAehUlZPwfYZu2JXM621Q5/k=
|
||||
nhooyr.io/websocket v1.8.6/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0=
|
||||
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ func TestAccount_New(t *testing.T) {
|
||||
opts []Option
|
||||
}
|
||||
|
||||
var tests = []struct {
|
||||
tests := []struct {
|
||||
name string
|
||||
args args
|
||||
want *Account
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
@@ -24,7 +24,7 @@ func TestRepository_New(t *testing.T) {
|
||||
opts []Option
|
||||
}
|
||||
|
||||
var tests = []struct {
|
||||
tests := []struct {
|
||||
name string
|
||||
args args
|
||||
want *Repository
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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))
|
||||
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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{
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -138,7 +138,6 @@ func generateRoleTableOutput(in *roles.Role) string {
|
||||
ret = append(ret,
|
||||
fmt.Sprintf(" %s", grant.Canonical),
|
||||
)
|
||||
|
||||
}
|
||||
return base.WrapForHelpText(ret)
|
||||
}
|
||||
@@ -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 = (*Command)(nil)
|
||||
var _ cli.CommandAutocomplete = (*Command)(nil)
|
||||
var (
|
||||
_ cli.Command = (*Command)(nil)
|
||||
_ cli.CommandAutocomplete = (*Command)(nil)
|
||||
)
|
||||
|
||||
type Command struct {
|
||||
*base.Command
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
@@ -14,9 +14,7 @@ import (
|
||||
"github.com/lib/pq"
|
||||
)
|
||||
|
||||
var (
|
||||
StartDbInDocker = docker.StartDbInDocker
|
||||
)
|
||||
var StartDbInDocker = docker.StartDbInDocker
|
||||
|
||||
type DbType int
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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{}
|
||||
|
||||
@@ -17,7 +17,6 @@ func Test_Utils(t *testing.T) {
|
||||
t.Parallel()
|
||||
_, _ = TestSetup(t, "postgres")
|
||||
t.Run("nothing", func(t *testing.T) {
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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())
|
||||
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Loaded 100 of 237 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user