refact: to use go-dbw CreateItems, DeleteItems (#4974)

* refact: to use go-dbw CreateItems, DeleteItems

Latest version of go-dbw updated the signature of
CreateItems(...) and DeleteItems(...) on a happy
note this latest version of go-dbw actually does
batch inserts and updates for this functions.

* all: regenerate protos with new protoc-gen-go version
This commit is contained in:
Jim authored and GitHub committed 2024-08-01 11:18:53 -04:00
1 parent b24f6dcee8
commit 28b465e4b8
167 files changed
+2254 -2248

No files matched your search

+3 -3
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/alias/target/store/v1/alias.proto
@@ -241,7 +241,7 @@ func file_controller_storage_alias_target_store_v1_alias_proto_rawDescGZIP() []b
}
var file_controller_storage_alias_target_store_v1_alias_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_controller_storage_alias_target_store_v1_alias_proto_goTypes = []interface{}{
var file_controller_storage_alias_target_store_v1_alias_proto_goTypes = []any{
(*Alias)(nil), // 0: controller.storage.alias.target.store.v1.Alias
(*timestamp.Timestamp)(nil), // 1: controller.storage.timestamp.v1.Timestamp
}
@@ -261,7 +261,7 @@ func file_controller_storage_alias_target_store_v1_alias_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_alias_target_store_v1_alias_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_alias_target_store_v1_alias_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*Alias); i {
case 0:
return &v.state
+39 -39
View File
@@ -141,14 +141,14 @@ func (am *AuthMethod) oplog(ctx context.Context, opType oplog.OpType) (oplog.Met
}
type convertedValues struct {
Urls []any
Certs []any
UserEntrySearchConf any
GroupEntrySearchConf any
ClientCertificate any
BindCredential any
AccountAttributeMaps []any
DerefAliases any
Urls []*Url
Certs []*Certificate
UserEntrySearchConf *UserEntrySearchConf
GroupEntrySearchConf *GroupEntrySearchConf
ClientCertificate *ClientCertificate
BindCredential *BindCredential
AccountAttributeMaps []*AccountAttributeMap
DerefAliases *DerefAliases
}
// convertValueObjects converts the embedded value objects. It will return an
@@ -199,15 +199,15 @@ func (am *AuthMethod) convertValueObjects(ctx context.Context) (*convertedValues
return converted, nil
}
// convertCertificates converts any embedded URLs from []string
// to []any where each slice element is a *Url. It will return an error if the
// AuthMethod's public id is not set.
func (am *AuthMethod) convertUrls(ctx context.Context) ([]any, error) {
// convertUrls converts any embedded URLs from []string to []*Url where each
// slice element is a *Url. It will return an error if the AuthMethod's public
// id is not set.
func (am *AuthMethod) convertUrls(ctx context.Context) ([]*Url, error) {
const op = "ldap.(AuthMethod).convertUrls"
if am.PublicId == "" {
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing public id")
}
newValObjs := make([]any, 0, len(am.Urls))
newValObjs := make([]*Url, 0, len(am.Urls))
for priority, u := range am.Urls {
parsed, err := url.Parse(u)
if err != nil {
@@ -223,14 +223,14 @@ func (am *AuthMethod) convertUrls(ctx context.Context) ([]any, error) {
}
// convertCertificates converts any embedded certificates from []string
// to []any where each slice element is a *Certificate. It will return an error
// if the AuthMethod's public id is not set.
func (am *AuthMethod) convertCertificates(ctx context.Context) ([]any, error) {
// to []*Certificate. It will return an error if the AuthMethod's public id is
// not set.
func (am *AuthMethod) convertCertificates(ctx context.Context) ([]*Certificate, error) {
const op = "ldap.(AuthMethod).convertCertificates"
if am.PublicId == "" {
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing public id")
}
newValObjs := make([]any, 0, len(am.Certificates))
newValObjs := make([]*Certificate, 0, len(am.Certificates))
for _, cert := range am.Certificates {
obj, err := NewCertificate(ctx, am.PublicId, cert)
if err != nil {
@@ -242,9 +242,9 @@ func (am *AuthMethod) convertCertificates(ctx context.Context) ([]any, error) {
}
// convertUserEntrySearchConf converts an embedded user entry search fields
// into an any type. It will return an error if the AuthMethod's public id is
// not set.
func (am *AuthMethod) convertUserEntrySearchConf(ctx context.Context) (any, error) {
// into an *UserEntrySearchConf type. It will return an error if the
// AuthMethod's public id is not set.
func (am *AuthMethod) convertUserEntrySearchConf(ctx context.Context) (*UserEntrySearchConf, error) {
const op = "ldap.(AuthMethod).convertUserEntrySearchConf"
if am.PublicId == "" {
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing public id")
@@ -257,9 +257,9 @@ func (am *AuthMethod) convertUserEntrySearchConf(ctx context.Context) (any, erro
}
// convertGroupEntrySearchConf converts an embedded group entry search fields
// into an any type. It will return an error if the AuthMethod's public id is
// not set.
func (am *AuthMethod) convertGroupEntrySearchConf(ctx context.Context) (any, error) {
// into an *GroupEntrySearchConf type. It will return an error if the
// AuthMethod's public id is not set.
func (am *AuthMethod) convertGroupEntrySearchConf(ctx context.Context) (*GroupEntrySearchConf, error) {
const op = "ldap.(AuthMethod).convertGroupEntrySearchConf"
if am.PublicId == "" {
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing public id")
@@ -272,9 +272,9 @@ func (am *AuthMethod) convertGroupEntrySearchConf(ctx context.Context) (any, err
}
// convertClientCertificate converts an embedded client certificate entry into
// an any type. It will return an error if the AuthMethod's public id is not
// set.
func (am *AuthMethod) convertClientCertificate(ctx context.Context) (any, error) {
// an *ClientCertificate type. It will return an error if the AuthMethod's
// public id is not set.
func (am *AuthMethod) convertClientCertificate(ctx context.Context) (*ClientCertificate, error) {
const op = "ldap.(AuthMethod).convertClientCertificate"
if am.PublicId == "" {
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing auth method id")
@@ -287,9 +287,9 @@ func (am *AuthMethod) convertClientCertificate(ctx context.Context) (any, error)
}
// convertBindCredential converts an embedded bind credential entry into
// an any type. It will return an error if the AuthMethod's public id is not
// set.
func (am *AuthMethod) convertBindCredential(ctx context.Context) (any, error) {
// an *BindCredential type. It will return an error if the AuthMethod's public
// id is not set.
func (am *AuthMethod) convertBindCredential(ctx context.Context) (*BindCredential, error) {
const op = "ldap.(AuthMethod).convertBindCredentials"
if am.PublicId == "" {
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing auth method id")
@@ -302,9 +302,9 @@ func (am *AuthMethod) convertBindCredential(ctx context.Context) (any, error) {
}
// convertDerefAliases converts an embedded deref aliases entry into
// an any type. It will return an error if the AuthMethod's public id is not
// set.
func (am *AuthMethod) convertDerefAliases(ctx context.Context) (any, error) {
// an *DerefAliases type. It will return an error if the AuthMethod's public id
// is not set.
func (am *AuthMethod) convertDerefAliases(ctx context.Context) (*DerefAliases, error) {
const op = "ldap.(AuthMethod).convertDerefAliases"
if am.PublicId == "" {
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing auth method id")
@@ -317,15 +317,15 @@ func (am *AuthMethod) convertDerefAliases(ctx context.Context) (any, error) {
}
// convertAccountAttributeMaps converts the embedded account attribute maps from
// []string to []interface{} where each slice element is a *AccountAttributeMap. It
// will return an error if the AuthMethod's public id is not set or it can
// convert the account attribute maps.
func (am *AuthMethod) convertAccountAttributeMaps(ctx context.Context) ([]any, error) {
// []string to []*AccountAttributeMap. It will return an error if the
// AuthMethod's public id is not set or it can convert the account attribute
// maps.
func (am *AuthMethod) convertAccountAttributeMaps(ctx context.Context) ([]*AccountAttributeMap, error) {
const op = "ldap.(AuthMethod).convertAccountAttributeMaps"
if am.PublicId == "" {
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing public id")
}
newInterfaces := make([]any, 0, len(am.AccountAttributeMaps))
acctAttribMaps := make([]*AccountAttributeMap, 0, len(am.AccountAttributeMaps))
const (
from = 0
to = 1
@@ -343,7 +343,7 @@ func (am *AuthMethod) convertAccountAttributeMaps(ctx context.Context) ([]any, e
if err != nil {
return nil, errors.Wrap(ctx, err, op)
}
newInterfaces = append(newInterfaces, obj)
acctAttribMaps = append(acctAttribMaps, obj)
}
return newInterfaces, nil
return acctAttribMaps, nil
}
+22 -5
View File
@@ -348,9 +348,9 @@ func Test_convertValueObjects(t *testing.T) {
testCerts := []string{pem}
c, err := NewCertificate(testCtx, testPublicId, pem)
require.NoError(t, err)
testCertificates := []any{c}
testCertificates := []*Certificate{c}
testUrls := make([]any, 0, len(testLdapServers))
testUrls := make([]*Url, 0, len(testLdapServers))
for priority, uu := range TestConvertToUrls(t, testLdapServers...) {
u, err := NewUrl(testCtx, testPublicId, priority+1, uu)
require.NoError(t, err)
@@ -358,7 +358,7 @@ func Test_convertValueObjects(t *testing.T) {
}
testAttrMaps := []string{"email_address=email", "display_name=fullName"}
testAccountAttributeMaps := make([]any, 0, len(testAttrMaps))
testAccountAttributeMaps := make([]*AccountAttributeMap, 0, len(testAttrMaps))
acms, err := ParseAccountAttributeMaps(testCtx, testAttrMaps...)
require.NoError(t, err)
for _, m := range acms {
@@ -618,6 +618,23 @@ func (a converted) Less(i, j int) bool {
}
func testSortConverted(t *testing.T, c *convertedValues) {
sort.Sort(converted(c.Urls))
sort.Sort(converted(c.Certs))
t.Helper()
sort.Sort(sortableUrls(c.Urls))
sort.Sort(sortableCerts(c.Certs))
}
type sortableUrls []*Url
func (u sortableUrls) Len() int { return len(u) }
func (u sortableUrls) Swap(i, j int) { u[i], u[j] = u[j], u[i] }
func (u sortableUrls) Less(i, j int) bool {
return u[i].GetServerUrl() < u[j].GetServerUrl()
}
type sortableCerts []*Certificate
func (c sortableCerts) Len() int { return len(c) }
func (c sortableCerts) Swap(i, j int) { c[i], c[j] = c[j], c[i] }
func (c sortableCerts) Less(i, j int) bool {
return c[i].GetCert() < c[j].GetCert()
}
@@ -68,20 +68,12 @@ func (r *Repository) CreateAuthMethod(ctx context.Context, am *AuthMethod, opt .
}
if cv.BindCredential != nil {
bc, ok := cv.BindCredential.(*BindCredential)
if !ok {
return nil, errors.New(ctx, errors.Internal, op, fmt.Sprintf("invalid type (%T) is not a bind credential", cv.BindCredential))
}
if err := bc.encrypt(ctx, dbWrapper); err != nil {
if err := cv.BindCredential.encrypt(ctx, dbWrapper); err != nil {
return nil, errors.Wrap(ctx, err, op, errors.WithMsg("failed to encrypt bind credential"))
}
}
if cv.ClientCertificate != nil {
cc, ok := cv.ClientCertificate.(*ClientCertificate)
if !ok {
return nil, errors.New(ctx, errors.Internal, op, fmt.Sprintf("invalid type (%T) is not a client certificate", cv.ClientCertificate))
}
if err := cc.encrypt(ctx, dbWrapper); err != nil {
if err := cv.ClientCertificate.encrypt(ctx, dbWrapper); err != nil {
return nil, errors.Wrap(ctx, err, op, errors.WithMsg("failed to encrypt client certificate"))
}
}
@@ -155,18 +155,42 @@ func (r *Repository) UpdateAuthMethod(ctx context.Context, am *AuthMethod, versi
if err != nil {
return nil, db.NoRowsAffected, errors.Wrap(ctx, err, op, errors.WithMsg("unable to get database wrapper"))
}
addUrls, deleteUrls, err := valueObjectChanges(ctx, origAm.PublicId, UrlVO, am.Urls, origAm.Urls, dbMask, nullFields)
au, du, err := valueObjectChanges(ctx, origAm.PublicId, UrlVO, am.Urls, origAm.Urls, dbMask, nullFields)
if err != nil {
return nil, db.NoRowsAffected, errors.Wrap(ctx, err, op, errors.WithMsg("unable to update urls"))
}
addCerts, deleteCerts, err := valueObjectChanges(ctx, origAm.PublicId, CertificateVO, am.Certificates, origAm.Certificates, dbMask, nullFields)
addUrls := []*Url{}
for _, u := range au {
addUrls = append(addUrls, u.(*Url))
}
deleteUrls := []*Url{}
for _, u := range du {
deleteUrls = append(deleteUrls, u.(*Url))
}
ac, dc, err := valueObjectChanges(ctx, origAm.PublicId, CertificateVO, am.Certificates, origAm.Certificates, dbMask, nullFields)
if err != nil {
return nil, db.NoRowsAffected, errors.Wrap(ctx, err, op, errors.WithMsg("unable to update certificates"))
}
addMaps, deleteMaps, err := valueObjectChanges(ctx, origAm.PublicId, AccountAttributeMapsVO, am.AccountAttributeMaps, origAm.AccountAttributeMaps, dbMask, nullFields)
deleteCerts := []*Certificate{}
for _, c := range dc {
deleteCerts = append(deleteCerts, c.(*Certificate))
}
addCerts := []*Certificate{}
for _, c := range ac {
addCerts = append(addCerts, c.(*Certificate))
}
addM, deleteM, err := valueObjectChanges(ctx, origAm.PublicId, AccountAttributeMapsVO, am.AccountAttributeMaps, origAm.AccountAttributeMaps, dbMask, nullFields)
if err != nil {
return nil, db.NoRowsAffected, errors.Wrap(ctx, err, op, errors.WithMsg("unable to update account attribute maps"))
}
addMaps := []*AccountAttributeMap{}
for _, m := range addM {
addMaps = append(addMaps, m.(*AccountAttributeMap))
}
deleteMaps := []*AccountAttributeMap{}
for _, m := range deleteM {
deleteMaps = append(deleteMaps, m.(*AccountAttributeMap))
}
combinedMasks := append(dbMask, nullFields...)
@@ -117,18 +117,13 @@ func (r *Repository) Authenticate(ctx context.Context, authMethodId, loginName,
}
for _, attrMap := range attrMaps {
aam, ok := attrMap.(*AccountAttributeMap)
if !ok {
return nil, errors.New(ctx, errors.Internal, op, "failed to convert attribute map into AccountAttributeMap type")
}
switch aam.ToAttribute {
switch attrMap.ToAttribute {
case DefaultEmailAttribute:
emailAttr = aam.FromAttribute
emailAttr = attrMap.FromAttribute
case DefaultFullNameAttribute:
fullNameAttr = aam.FromAttribute
fullNameAttr = attrMap.FromAttribute
default:
return nil, errors.New(ctx, errors.InvalidParameter, op, fmt.Sprintf("invalid to attribute %q", aam.ToAttribute))
return nil, errors.New(ctx, errors.InvalidParameter, op, fmt.Sprintf("invalid to attribute %q", attrMap.ToAttribute))
}
}
+14 -14
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/auth/ldap/store/v1/ldap.proto
@@ -1942,7 +1942,7 @@ func file_controller_storage_auth_ldap_store_v1_ldap_proto_rawDescGZIP() []byte
}
var file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
var file_controller_storage_auth_ldap_store_v1_ldap_proto_goTypes = []interface{}{
var file_controller_storage_auth_ldap_store_v1_ldap_proto_goTypes = []any{
(*AuthMethod)(nil), // 0: controller.storage.auth.ldap.store.v1.AuthMethod
(*Url)(nil), // 1: controller.storage.auth.ldap.store.v1.Url
(*UserEntrySearchConf)(nil), // 2: controller.storage.auth.ldap.store.v1.UserEntrySearchConf
@@ -1986,7 +1986,7 @@ func file_controller_storage_auth_ldap_store_v1_ldap_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*AuthMethod); i {
case 0:
return &v.state
@@ -1998,7 +1998,7 @@ func file_controller_storage_auth_ldap_store_v1_ldap_proto_init() {
return nil
}
}
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*Url); i {
case 0:
return &v.state
@@ -2010,7 +2010,7 @@ func file_controller_storage_auth_ldap_store_v1_ldap_proto_init() {
return nil
}
}
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*UserEntrySearchConf); i {
case 0:
return &v.state
@@ -2022,7 +2022,7 @@ func file_controller_storage_auth_ldap_store_v1_ldap_proto_init() {
return nil
}
}
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*GroupEntrySearchConf); i {
case 0:
return &v.state
@@ -2034,7 +2034,7 @@ func file_controller_storage_auth_ldap_store_v1_ldap_proto_init() {
return nil
}
}
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*Certificate); i {
case 0:
return &v.state
@@ -2046,7 +2046,7 @@ func file_controller_storage_auth_ldap_store_v1_ldap_proto_init() {
return nil
}
}
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*ClientCertificate); i {
case 0:
return &v.state
@@ -2058,7 +2058,7 @@ func file_controller_storage_auth_ldap_store_v1_ldap_proto_init() {
return nil
}
}
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*BindCredential); i {
case 0:
return &v.state
@@ -2070,7 +2070,7 @@ func file_controller_storage_auth_ldap_store_v1_ldap_proto_init() {
return nil
}
}
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*Account); i {
case 0:
return &v.state
@@ -2082,7 +2082,7 @@ func file_controller_storage_auth_ldap_store_v1_ldap_proto_init() {
return nil
}
}
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*AccountAttributeMap); i {
case 0:
return &v.state
@@ -2094,7 +2094,7 @@ func file_controller_storage_auth_ldap_store_v1_ldap_proto_init() {
return nil
}
}
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DerefAliases); i {
case 0:
return &v.state
@@ -2106,7 +2106,7 @@ func file_controller_storage_auth_ldap_store_v1_ldap_proto_init() {
return nil
}
}
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*ManagedGroup); i {
case 0:
return &v.state
@@ -2118,7 +2118,7 @@ func file_controller_storage_auth_ldap_store_v1_ldap_proto_init() {
return nil
}
}
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*ManagedGroupMemberAccount); i {
case 0:
return &v.state
+50 -58
View File
@@ -289,12 +289,12 @@ func (am *AuthMethod) isComplete(ctx context.Context) error {
}
type convertedValues struct {
Algs []any
Auds []any
Certs []any
ClaimsScopes []any
AccountClaimMaps []any
Prompts []any
Algs []*SigningAlg
Auds []*AudClaim
Certs []*Certificate
ClaimsScopes []*ClaimsScope
AccountClaimMaps []*AccountClaimMap
Prompts []*Prompt
}
// convertValueObjects converts the embedded value objects. It will return an
@@ -305,121 +305,113 @@ func (am *AuthMethod) convertValueObjects(ctx context.Context) (*convertedValues
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing public id")
}
var err error
var addAlgs, addAuds, addCerts, addScopes, addAccountClaimMaps, addPrompts []any
if addAlgs, err = am.convertSigningAlgs(ctx); err != nil {
converted := &convertedValues{}
if converted.Algs, err = am.convertSigningAlgs(ctx); err != nil {
return nil, errors.Wrap(ctx, err, op)
}
if addAuds, err = am.convertAudClaims(ctx); err != nil {
if converted.Auds, err = am.convertAudClaims(ctx); err != nil {
return nil, errors.Wrap(ctx, err, op)
}
if addCerts, err = am.convertCertificates(ctx); err != nil {
if converted.Certs, err = am.convertCertificates(ctx); err != nil {
return nil, errors.Wrap(ctx, err, op)
}
if addScopes, err = am.convertClaimsScopes(ctx); err != nil {
if converted.ClaimsScopes, err = am.convertClaimsScopes(ctx); err != nil {
return nil, errors.Wrap(ctx, err, op)
}
if addAccountClaimMaps, err = am.convertAccountClaimMaps(ctx); err != nil {
if converted.AccountClaimMaps, err = am.convertAccountClaimMaps(ctx); err != nil {
return nil, errors.Wrap(ctx, err, op)
}
if addPrompts, err = am.convertPrompts(ctx); err != nil {
if converted.Prompts, err = am.convertPrompts(ctx); err != nil {
return nil, errors.Wrap(ctx, err, op)
}
return &convertedValues{
Algs: addAlgs,
Auds: addAuds,
Certs: addCerts,
ClaimsScopes: addScopes,
AccountClaimMaps: addAccountClaimMaps,
Prompts: addPrompts,
}, nil
return converted, nil
}
// convertSigningAlgs converts the embedded signing algorithms from []string
// to []interface{} where each slice element is a *SigningAlg. It will return an
// error if the AuthMethod's public id is not set.
func (am *AuthMethod) convertSigningAlgs(ctx context.Context) ([]any, error) {
// to []*SigningAlg. It will return an error if the AuthMethod's public id is
// not set.
func (am *AuthMethod) convertSigningAlgs(ctx context.Context) ([]*SigningAlg, error) {
const op = "oidc.(AuthMethod).convertSigningAlgs"
if am.PublicId == "" {
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing public id")
}
newInterfaces := make([]any, 0, len(am.SigningAlgs))
newAlgs := make([]*SigningAlg, 0, len(am.SigningAlgs))
for _, a := range am.SigningAlgs {
obj, err := NewSigningAlg(ctx, am.PublicId, Alg(a))
if err != nil {
return nil, errors.Wrap(ctx, err, op)
}
newInterfaces = append(newInterfaces, obj)
newAlgs = append(newAlgs, obj)
}
return newInterfaces, nil
return newAlgs, nil
}
// convertAudClaims converts the embedded audience claims from []string
// to []interface{} where each slice element is a *AudClaim. It will return an
// error if the AuthMethod's public id is not set.
func (am *AuthMethod) convertAudClaims(ctx context.Context) ([]any, error) {
// to []*AudClaim. It will return an error if the AuthMethod's public id is not
// set.
func (am *AuthMethod) convertAudClaims(ctx context.Context) ([]*AudClaim, error) {
const op = "oidc.(AuthMethod).convertAudClaims"
if am.PublicId == "" {
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing public id")
}
newInterfaces := make([]any, 0, len(am.AudClaims))
newClaims := make([]*AudClaim, 0, len(am.AudClaims))
for _, a := range am.AudClaims {
obj, err := NewAudClaim(ctx, am.PublicId, a)
if err != nil {
return nil, errors.Wrap(ctx, err, op)
}
newInterfaces = append(newInterfaces, obj)
newClaims = append(newClaims, obj)
}
return newInterfaces, nil
return newClaims, nil
}
// convertCertificates converts the embedded certificates from []string
// to []interface{} where each slice element is a *Certificate. It will return an
// error if the AuthMethod's public id is not set.
func (am *AuthMethod) convertCertificates(ctx context.Context) ([]any, error) {
// to []*Certificate. It will return an error if the AuthMethod's public id is
// not set.
func (am *AuthMethod) convertCertificates(ctx context.Context) ([]*Certificate, error) {
const op = "oidc.(AuthMethod).convertCertificates"
if am.PublicId == "" {
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing public id")
}
newInterfaces := make([]any, 0, len(am.Certificates))
newCerts := make([]*Certificate, 0, len(am.Certificates))
for _, cert := range am.Certificates {
obj, err := NewCertificate(ctx, am.PublicId, cert)
if err != nil {
return nil, errors.Wrap(ctx, err, op)
}
newInterfaces = append(newInterfaces, obj)
newCerts = append(newCerts, obj)
}
return newInterfaces, nil
return newCerts, nil
}
// convertClaimsScopes converts the embedded claims scopes from []string
// to []interface{} where each slice element is a *ClaimsScope. It will return an
// error if the AuthMethod's public id is not set.
func (am *AuthMethod) convertClaimsScopes(ctx context.Context) ([]any, error) {
// to []*ClaimsScope. It will return an error if the AuthMethod's public id is
// not set.
func (am *AuthMethod) convertClaimsScopes(ctx context.Context) ([]*ClaimsScope, error) {
const op = "oidc.(AuthMethod).convertClaimsScopes"
if am.PublicId == "" {
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing public id")
}
newInterfaces := make([]any, 0, len(am.ClaimsScopes))
newClaimsScopes := make([]*ClaimsScope, 0, len(am.ClaimsScopes))
for _, cs := range am.ClaimsScopes {
obj, err := NewClaimsScope(ctx, am.PublicId, cs)
if err != nil {
return nil, errors.Wrap(ctx, err, op)
}
newInterfaces = append(newInterfaces, obj)
newClaimsScopes = append(newClaimsScopes, obj)
}
return newInterfaces, nil
return newClaimsScopes, nil
}
// convertAccountClaimMaps converts the embedded account claim maps from
// []string to []interface{} where each slice element is a *AccountClaimMap. It
// will return an error if the AuthMethod's public id is not set or it can
// convert the account claim maps.
func (am *AuthMethod) convertAccountClaimMaps(ctx context.Context) ([]any, error) {
// []string to []*AccountClaimMap. It will return an error if the AuthMethod's
// public id is not set or it can convert the account claim maps.
func (am *AuthMethod) convertAccountClaimMaps(ctx context.Context) ([]*AccountClaimMap, error) {
const op = "oidc.(AuthMethod).convertAccountClaimMaps"
if am.PublicId == "" {
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing public id")
}
newInterfaces := make([]any, 0, len(am.AccountClaimMaps))
newAccountClaimMaps := make([]*AccountClaimMap, 0, len(am.AccountClaimMaps))
const (
from = 0
to = 1
@@ -437,9 +429,9 @@ func (am *AuthMethod) convertAccountClaimMaps(ctx context.Context) ([]any, error
if err != nil {
return nil, errors.Wrap(ctx, err, op)
}
newInterfaces = append(newInterfaces, obj)
newAccountClaimMaps = append(newAccountClaimMaps, obj)
}
return newInterfaces, nil
return newAccountClaimMaps, nil
}
// ClaimMap defines the To and From of an oidc claim map
@@ -477,20 +469,20 @@ func ParseAccountClaimMaps(ctx context.Context, m ...string) ([]ClaimMap, error)
}
// convertPrompts converts the embedded prompts from []string
// to []interface{} where each slice element is a *Prompt. It will return an
// error if the AuthMethod's public id is not set.
func (am *AuthMethod) convertPrompts(ctx context.Context) ([]any, error) {
// to []*Prompt. It will return an error if the AuthMethod's public id is not
// set.
func (am *AuthMethod) convertPrompts(ctx context.Context) ([]*Prompt, error) {
const op = "oidc.(AuthMethod).convertPrompts"
if am.PublicId == "" {
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing public id")
}
newInterfaces := make([]any, 0, len(am.Prompts))
newPrompts := make([]*Prompt, 0, len(am.Prompts))
for _, a := range am.Prompts {
obj, err := NewPrompt(ctx, am.PublicId, PromptParam(a))
if err != nil {
return nil, errors.Wrap(ctx, err, op)
}
newInterfaces = append(newInterfaces, obj)
newPrompts = append(newPrompts, obj)
}
return newInterfaces, nil
return newPrompts, nil
}
+51 -30
View File
@@ -550,7 +550,7 @@ func Test_convertValueObjects(t *testing.T) {
testPublicId := "test-id"
testAlgs := []string{string(RS256), string(RS384)}
var testSigningAlgs []any
var testSigningAlgs []*SigningAlg
for _, a := range []Alg{RS256, RS384} {
obj, err := NewSigningAlg(ctx, testPublicId, Alg(a))
require.NoError(t, err)
@@ -558,7 +558,7 @@ func Test_convertValueObjects(t *testing.T) {
}
testAuds := []string{"alice", "eve"}
var testAudiences []any
var testAudiences []*AudClaim
for _, a := range testAuds {
obj, err := NewAudClaim(ctx, testPublicId, a)
require.NoError(t, err)
@@ -569,10 +569,10 @@ func Test_convertValueObjects(t *testing.T) {
testCerts := []string{pem}
c, err := NewCertificate(ctx, testPublicId, pem)
require.NoError(t, err)
testCertificates := []any{c}
testCertificates := []*Certificate{c}
testScopes := []string{"profile", "email"}
testClaimsScopes := make([]any, 0, len(testScopes))
testClaimsScopes := make([]*ClaimsScope, 0, len(testScopes))
for _, s := range testScopes {
obj, err := NewClaimsScope(ctx, testPublicId, s)
require.NoError(t, err)
@@ -580,7 +580,7 @@ func Test_convertValueObjects(t *testing.T) {
}
testClaimMaps := []string{"oid=sub", "display_name=name"}
testAccountClaimMaps := make([]any, 0, len(testClaimMaps))
testAccountClaimMaps := make([]*AccountClaimMap, 0, len(testClaimMaps))
acms, err := ParseAccountClaimMaps(ctx, testClaimMaps...)
require.NoError(t, err)
for _, m := range acms {
@@ -592,7 +592,7 @@ func Test_convertValueObjects(t *testing.T) {
}
testPrompts := []string{"consent", "select_account"}
testExpectedPrompts := make([]any, 0, len(testPrompts))
testExpectedPrompts := make([]*Prompt, 0, len(testPrompts))
for _, a := range testPrompts {
obj, err := NewPrompt(ctx, testPublicId, PromptParam(a))
require.NoError(t, err)
@@ -690,11 +690,11 @@ func Test_convertValueObjects(t *testing.T) {
} else {
want := make([]*AccountClaimMap, 0, len(tt.wantValues.AccountClaimMaps))
for _, v := range tt.wantValues.AccountClaimMaps {
want = append(want, v.(*AccountClaimMap))
want = append(want, v)
}
got := make([]*AccountClaimMap, 0, len(convertedMaps))
for _, v := range convertedMaps {
got = append(got, v.(*AccountClaimMap))
got = append(got, v)
}
sort.Slice(want, func(a, b int) bool {
return want[a].ToClaim < want[b].ToClaim
@@ -730,30 +730,51 @@ func Test_convertValueObjects(t *testing.T) {
}
}
type converted []any
type sortableAlgs []*SigningAlg
func (a converted) Len() int { return len(a) }
func (a converted) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
func (a converted) Less(i, j int) bool {
switch a[i].(type) {
case *SigningAlg:
return a[i].(*SigningAlg).GetAlg() < a[j].(*SigningAlg).GetAlg()
case *Certificate:
return a[i].(*Certificate).GetCert() < a[j].(*Certificate).GetCert()
case *AccountClaimMap:
return a[i].(*AccountClaimMap).GetToClaim() < a[j].(*AccountClaimMap).GetToClaim()
case *AudClaim:
return a[i].(*AudClaim).GetAud() < a[j].(*AudClaim).GetAud()
case *ClaimsScope:
return a[i].(*ClaimsScope).GetScope() < a[j].(*ClaimsScope).GetScope()
}
return false
func (s sortableAlgs) Len() int { return len(s) }
func (s sortableAlgs) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
func (s sortableAlgs) Less(i, j int) bool {
return s[i].GetAlg() < s[j].GetAlg()
}
type sortableCerts []*Certificate
func (s sortableCerts) Len() int { return len(s) }
func (s sortableCerts) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
func (s sortableCerts) Less(i, j int) bool {
return s[i].GetCert() < s[j].GetCert()
}
type sortableAccountClaimMaps []*AccountClaimMap
func (s sortableAccountClaimMaps) Len() int { return len(s) }
func (s sortableAccountClaimMaps) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
func (s sortableAccountClaimMaps) Less(i, j int) bool {
return s[i].GetFromClaim()+s[i].GetToClaim() < s[j].GetFromClaim()+s[j].GetToClaim()
}
type sortableAuds []*AudClaim
func (s sortableAuds) Len() int { return len(s) }
func (s sortableAuds) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
func (s sortableAuds) Less(i, j int) bool {
return s[i].GetAud() < s[j].GetAud()
}
type sortableClaimsScopes []*ClaimsScope
func (s sortableClaimsScopes) Len() int { return len(s) }
func (s sortableClaimsScopes) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
func (s sortableClaimsScopes) Less(i, j int) bool {
return s[i].GetScope() < s[j].GetScope()
}
func testSortConverted(t *testing.T, c *convertedValues) {
sort.Sort(converted(c.Algs))
sort.Sort(converted(c.Certs))
sort.Sort(converted(c.AccountClaimMaps))
sort.Sort(converted(c.Auds))
sort.Sort(converted(c.ClaimsScopes))
t.Helper()
sort.Sort(sortableAlgs(c.Algs))
sort.Sort(sortableCerts(c.Certs))
sort.Sort(sortableAccountClaimMaps(c.AccountClaimMaps))
sort.Sort(sortableAuds(c.Auds))
sort.Sort(sortableClaimsScopes(c.ClaimsScopes))
}
@@ -155,47 +155,93 @@ func (r *Repository) UpdateAuthMethod(ctx context.Context, am *AuthMethod, versi
}
}
addAlgs, deleteAlgs, err := valueObjectChanges(ctx, origAm.PublicId, SigningAlgVO, am.SigningAlgs, origAm.SigningAlgs, dbMask, nullFields)
aa, ad, err := valueObjectChanges(ctx, origAm.PublicId, SigningAlgVO, am.SigningAlgs, origAm.SigningAlgs, dbMask, nullFields)
if err != nil {
return nil, db.NoRowsAffected, errors.Wrap(ctx, err, op)
}
addAlgs := []*SigningAlg{}
for _, a := range aa {
addAlgs = append(addAlgs, a.(*SigningAlg))
}
deleteAlgs := []*SigningAlg{}
for _, a := range ad {
deleteAlgs = append(deleteAlgs, a.(*SigningAlg))
}
addCerts, deleteCerts, err := valueObjectChanges(ctx, origAm.PublicId, CertificateVO, am.Certificates, origAm.Certificates, dbMask, nullFields)
ac, dc, err := valueObjectChanges(ctx, origAm.PublicId, CertificateVO, am.Certificates, origAm.Certificates, dbMask, nullFields)
if err != nil {
return nil, db.NoRowsAffected, errors.Wrap(ctx, err, op)
}
addCerts := []*Certificate{}
for _, c := range ac {
addCerts = append(addCerts, c.(*Certificate))
}
deleteCerts := []*Certificate{}
for _, c := range dc {
deleteCerts = append(deleteCerts, c.(*Certificate))
}
addAuds, deleteAuds, err := valueObjectChanges(ctx, origAm.PublicId, AudClaimVO, am.AudClaims, origAm.AudClaims, dbMask, nullFields)
aa, ad, err = valueObjectChanges(ctx, origAm.PublicId, AudClaimVO, am.AudClaims, origAm.AudClaims, dbMask, nullFields)
if err != nil {
return nil, db.NoRowsAffected, errors.Wrap(ctx, err, op)
}
addAuds := []*AudClaim{}
for _, a := range aa {
addAuds = append(addAuds, a.(*AudClaim))
}
deleteAuds := []*AudClaim{}
for _, a := range ad {
deleteAuds = append(deleteAuds, a.(*AudClaim))
}
addScopes, deleteScopes, err := valueObjectChanges(ctx, origAm.PublicId, ClaimsScopesVO, am.ClaimsScopes, origAm.ClaimsScopes, dbMask, nullFields)
as, ds, err := valueObjectChanges(ctx, origAm.PublicId, ClaimsScopesVO, am.ClaimsScopes, origAm.ClaimsScopes, dbMask, nullFields)
if err != nil {
return nil, db.NoRowsAffected, errors.Wrap(ctx, err, op)
}
addScopes := []*ClaimsScope{}
for _, s := range as {
addScopes = append(addScopes, s.(*ClaimsScope))
}
deleteScopes := []*ClaimsScope{}
for _, s := range ds {
deleteScopes = append(deleteScopes, s.(*ClaimsScope))
}
addMaps, deleteMaps, err := valueObjectChanges(ctx, origAm.PublicId, AccountClaimMapsVO, am.AccountClaimMaps, origAm.AccountClaimMaps, dbMask, nullFields)
aacm, dacm, err := valueObjectChanges(ctx, origAm.PublicId, AccountClaimMapsVO, am.AccountClaimMaps, origAm.AccountClaimMaps, dbMask, nullFields)
if err != nil {
return nil, db.NoRowsAffected, errors.Wrap(ctx, err, op)
}
addMaps := []*AccountClaimMap{}
for _, m := range aacm {
addMaps = append(addMaps, m.(*AccountClaimMap))
}
deleteMaps := []*AccountClaimMap{}
for _, m := range dacm {
deleteMaps = append(deleteMaps, m.(*AccountClaimMap))
}
addPrompts, deletePrompts, err := valueObjectChanges(ctx, origAm.PublicId, PromptsVO, am.Prompts, origAm.Prompts, dbMask, nullFields)
ap, dp, err := valueObjectChanges(ctx, origAm.PublicId, PromptsVO, am.Prompts, origAm.Prompts, dbMask, nullFields)
if err != nil {
return nil, db.NoRowsAffected, errors.Wrap(ctx, err, op)
}
addPrompts := []*Prompt{}
for _, p := range ap {
addPrompts = append(addPrompts, p.(*Prompt))
}
deletePrompts := []*Prompt{}
for _, p := range dp {
deletePrompts = append(deletePrompts, p.(*Prompt))
}
// we don't allow updates for "sub" claim maps, because we have no way to
// determine if the updated "from" claim in the map might create collisions
// with any existing account's subject.
for _, rawCm := range addMaps {
cm := rawCm.(*AccountClaimMap)
for _, cm := range addMaps {
if cm.ToClaim == string(ToSubClaim) {
return nil, db.NoRowsAffected, errors.New(ctx, errors.InvalidParameter, op, fmt.Sprintf("you cannot update account claim map %s=%s for the \"sub\" claim", cm.FromClaim, cm.ToClaim))
}
}
for _, rawCm := range deleteMaps {
cm := rawCm.(*AccountClaimMap)
for _, cm := range deleteMaps {
if cm.ToClaim == string(ToSubClaim) {
return nil, db.NoRowsAffected, errors.New(ctx, errors.InvalidParameter, op, fmt.Sprintf("you cannot update account claim map %s=%s for the \"sub\" claim", cm.FromClaim, cm.ToClaim))
}
@@ -117,7 +117,7 @@ func (r *Repository) SetManagedGroupMemberships(ctx context.Context, am *AuthMet
}
// Figure out which ones to delete and which ones we already have
toDelete := make([]any, 0, len(mgs))
toDelete := make([]*ManagedGroupMemberAccount, 0, len(mgs))
for _, currMg := range currentMemberships {
currMgId := currMg.ManagedGroupId
if newMgPublicIds[currMgId] {
@@ -161,7 +161,7 @@ func (r *Repository) SetManagedGroupMemberships(ctx context.Context, am *AuthMet
if len(newMgPublicIds) > 0 {
metadata["op-type"] = append(metadata["op-type"], oplog.OpType_OP_TYPE_CREATE.String())
addOplogMsgs := make([]*oplog.Message, 0, len(newMgPublicIds))
toAdd := make([]any, 0, len(newMgPublicIds))
toAdd := make([]*ManagedGroupMemberAccount, 0, len(newMgPublicIds))
for mgId := range newMgPublicIds {
newMg := AllocManagedGroupMemberAccount()
newMg.ManagedGroupId = mgId
+5 -5
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/auth/oidc/request/v1/request.proto
@@ -341,7 +341,7 @@ func file_controller_storage_auth_oidc_request_v1_request_proto_rawDescGZIP() []
}
var file_controller_storage_auth_oidc_request_v1_request_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_controller_storage_auth_oidc_request_v1_request_proto_goTypes = []interface{}{
var file_controller_storage_auth_oidc_request_v1_request_proto_goTypes = []any{
(*State)(nil), // 0: controller.storage.auth.oidc.request.v1.State
(*Token)(nil), // 1: controller.storage.auth.oidc.request.v1.Token
(*Wrapper)(nil), // 2: controller.storage.auth.oidc.request.v1.Wrapper
@@ -364,7 +364,7 @@ func file_controller_storage_auth_oidc_request_v1_request_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_auth_oidc_request_v1_request_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_oidc_request_v1_request_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*State); i {
case 0:
return &v.state
@@ -376,7 +376,7 @@ func file_controller_storage_auth_oidc_request_v1_request_proto_init() {
return nil
}
}
file_controller_storage_auth_oidc_request_v1_request_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_oidc_request_v1_request_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*Token); i {
case 0:
return &v.state
@@ -388,7 +388,7 @@ func file_controller_storage_auth_oidc_request_v1_request_proto_init() {
return nil
}
}
file_controller_storage_auth_oidc_request_v1_request_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_oidc_request_v1_request_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*Wrapper); i {
case 0:
return &v.state
+12 -12
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/auth/oidc/store/v1/oidc.proto
@@ -1382,7 +1382,7 @@ func file_controller_storage_auth_oidc_store_v1_oidc_proto_rawDescGZIP() []byte
}
var file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_controller_storage_auth_oidc_store_v1_oidc_proto_goTypes = []interface{}{
var file_controller_storage_auth_oidc_store_v1_oidc_proto_goTypes = []any{
(*AuthMethod)(nil), // 0: controller.storage.auth.oidc.store.v1.AuthMethod
(*Account)(nil), // 1: controller.storage.auth.oidc.store.v1.Account
(*SigningAlg)(nil), // 2: controller.storage.auth.oidc.store.v1.SigningAlg
@@ -1422,7 +1422,7 @@ func file_controller_storage_auth_oidc_store_v1_oidc_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*AuthMethod); i {
case 0:
return &v.state
@@ -1434,7 +1434,7 @@ func file_controller_storage_auth_oidc_store_v1_oidc_proto_init() {
return nil
}
}
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*Account); i {
case 0:
return &v.state
@@ -1446,7 +1446,7 @@ func file_controller_storage_auth_oidc_store_v1_oidc_proto_init() {
return nil
}
}
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*SigningAlg); i {
case 0:
return &v.state
@@ -1458,7 +1458,7 @@ func file_controller_storage_auth_oidc_store_v1_oidc_proto_init() {
return nil
}
}
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*AudClaim); i {
case 0:
return &v.state
@@ -1470,7 +1470,7 @@ func file_controller_storage_auth_oidc_store_v1_oidc_proto_init() {
return nil
}
}
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*Certificate); i {
case 0:
return &v.state
@@ -1482,7 +1482,7 @@ func file_controller_storage_auth_oidc_store_v1_oidc_proto_init() {
return nil
}
}
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*ClaimsScope); i {
case 0:
return &v.state
@@ -1494,7 +1494,7 @@ func file_controller_storage_auth_oidc_store_v1_oidc_proto_init() {
return nil
}
}
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*AccountClaimMap); i {
case 0:
return &v.state
@@ -1506,7 +1506,7 @@ func file_controller_storage_auth_oidc_store_v1_oidc_proto_init() {
return nil
}
}
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*ManagedGroup); i {
case 0:
return &v.state
@@ -1518,7 +1518,7 @@ func file_controller_storage_auth_oidc_store_v1_oidc_proto_init() {
return nil
}
}
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*ManagedGroupMemberAccount); i {
case 0:
return &v.state
@@ -1530,7 +1530,7 @@ func file_controller_storage_auth_oidc_store_v1_oidc_proto_init() {
return nil
}
}
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*Prompt); i {
case 0:
return &v.state
+6 -6
View File
@@ -68,7 +68,7 @@ func TestAuthMethod(
require.NoError(err)
if len(opts.withAudClaims) > 0 {
newAudClaims := make([]any, 0, len(opts.withAudClaims))
newAudClaims := make([]*AudClaim, 0, len(opts.withAudClaims))
for _, a := range opts.withAudClaims {
aud, err := NewAudClaim(ctx, authMethod.PublicId, a)
require.NoError(err)
@@ -79,7 +79,7 @@ func TestAuthMethod(
require.Equal(len(opts.withAudClaims), len(authMethod.AudClaims))
}
if len(opts.withCertificates) > 0 {
newCerts := make([]any, 0, len(opts.withCertificates))
newCerts := make([]*Certificate, 0, len(opts.withCertificates))
for _, c := range opts.withCertificates {
pem, err := EncodeCertificates(ctx, c)
require.NoError(err)
@@ -92,7 +92,7 @@ func TestAuthMethod(
require.Equal(len(opts.withCertificates), len(authMethod.Certificates))
}
if len(opts.withSigningAlgs) > 0 {
newAlgs := make([]any, 0, len(opts.withSigningAlgs))
newAlgs := make([]*SigningAlg, 0, len(opts.withSigningAlgs))
for _, a := range opts.withSigningAlgs {
alg, err := NewSigningAlg(ctx, authMethod.PublicId, a)
require.NoError(err)
@@ -103,7 +103,7 @@ func TestAuthMethod(
require.Equal(len(opts.withSigningAlgs), len(authMethod.SigningAlgs))
}
if len(opts.withClaimsScopes) > 0 {
newClaimsScopes := make([]any, 0, len(opts.withClaimsScopes))
newClaimsScopes := make([]*ClaimsScope, 0, len(opts.withClaimsScopes))
for _, cs := range opts.withClaimsScopes {
s, err := NewClaimsScope(ctx, authMethod.PublicId, cs)
require.NoError(err)
@@ -114,7 +114,7 @@ func TestAuthMethod(
require.Equal(len(opts.withClaimsScopes), len(authMethod.ClaimsScopes))
}
if len(opts.withAccountClaimMap) > 0 {
newAccountClaimMaps := make([]any, 0, len(opts.withAccountClaimMap))
newAccountClaimMaps := make([]*AccountClaimMap, 0, len(opts.withAccountClaimMap))
for k, v := range opts.withAccountClaimMap {
acm, err := NewAccountClaimMap(ctx, authMethod.PublicId, k, v)
require.NoError(err)
@@ -124,7 +124,7 @@ func TestAuthMethod(
require.Equal(len(opts.withAccountClaimMap), len(authMethod.AccountClaimMaps))
}
if len(opts.withPrompts) > 0 {
newPrompts := make([]any, 0, len(opts.withPrompts))
newPrompts := make([]*Prompt, 0, len(opts.withPrompts))
for _, p := range opts.withPrompts {
prompt, err := NewPrompt(ctx, authMethod.PublicId, p)
require.NoError(err)
+4 -4
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/auth/password/store/v1/argon2.proto
@@ -374,7 +374,7 @@ func file_controller_storage_auth_password_store_v1_argon2_proto_rawDescGZIP() [
}
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{}{
var file_controller_storage_auth_password_store_v1_argon2_proto_goTypes = []any{
(*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
@@ -396,7 +396,7 @@ func file_controller_storage_auth_password_store_v1_argon2_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_auth_password_store_v1_argon2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_password_store_v1_argon2_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*Argon2Configuration); i {
case 0:
return &v.state
@@ -408,7 +408,7 @@ func file_controller_storage_auth_password_store_v1_argon2_proto_init() {
return nil
}
}
file_controller_storage_auth_password_store_v1_argon2_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_password_store_v1_argon2_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*Argon2Credential); i {
case 0:
return &v.state
+5 -5
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/auth/password/store/v1/password.proto
@@ -477,7 +477,7 @@ func file_controller_storage_auth_password_store_v1_password_proto_rawDescGZIP()
}
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{}{
var file_controller_storage_auth_password_store_v1_password_proto_goTypes = []any{
(*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
@@ -501,7 +501,7 @@ func file_controller_storage_auth_password_store_v1_password_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_auth_password_store_v1_password_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_password_store_v1_password_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*AuthMethod); i {
case 0:
return &v.state
@@ -513,7 +513,7 @@ func file_controller_storage_auth_password_store_v1_password_proto_init() {
return nil
}
}
file_controller_storage_auth_password_store_v1_password_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_password_store_v1_password_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*Account); i {
case 0:
return &v.state
@@ -525,7 +525,7 @@ func file_controller_storage_auth_password_store_v1_password_proto_init() {
return nil
}
}
file_controller_storage_auth_password_store_v1_password_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_password_store_v1_password_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*Credential); i {
case 0:
return &v.state
@@ -34,6 +34,7 @@ import (
type fakeReader struct {
db.Reader
}
type fakeWriter struct {
db.Writer
}
+3 -3
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/auth/store/v1/account.proto
@@ -142,7 +142,7 @@ func file_controller_storage_auth_store_v1_account_proto_rawDescGZIP() []byte {
}
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{}{
var file_controller_storage_auth_store_v1_account_proto_goTypes = []any{
(*Account)(nil), // 0: controller.storage.auth.store.v1.Account
}
var file_controller_storage_auth_store_v1_account_proto_depIdxs = []int32{
@@ -159,7 +159,7 @@ func file_controller_storage_auth_store_v1_account_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_auth_store_v1_account_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_store_v1_account_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*Account); i {
case 0:
return &v.state
+4 -4
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/auth/store/v1/auth_method.proto
@@ -199,7 +199,7 @@ func file_controller_storage_auth_store_v1_auth_method_proto_rawDescGZIP() []byt
}
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{}{
var file_controller_storage_auth_store_v1_auth_method_proto_goTypes = []any{
(*AuthMethod)(nil), // 0: controller.storage.auth.store.v1.AuthMethod
(*AuthAccount)(nil), // 1: controller.storage.auth.store.v1.AuthAccount
}
@@ -217,7 +217,7 @@ func file_controller_storage_auth_store_v1_auth_method_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_auth_store_v1_auth_method_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_store_v1_auth_method_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*AuthMethod); i {
case 0:
return &v.state
@@ -229,7 +229,7 @@ func file_controller_storage_auth_store_v1_auth_method_proto_init() {
return nil
}
}
file_controller_storage_auth_store_v1_auth_method_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_store_v1_auth_method_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*AuthAccount); i {
case 0:
return &v.state
+3 -3
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/authtoken/store/v1/authtoken.proto
@@ -271,7 +271,7 @@ func file_controller_storage_authtoken_store_v1_authtoken_proto_rawDescGZIP() []
}
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{}{
var file_controller_storage_authtoken_store_v1_authtoken_proto_goTypes = []any{
(*AuthToken)(nil), // 0: controller.storage.authtoken.store.v1.AuthToken
(*timestamp.Timestamp)(nil), // 1: controller.storage.timestamp.v1.Timestamp
}
@@ -293,7 +293,7 @@ func file_controller_storage_authtoken_store_v1_authtoken_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_authtoken_store_v1_authtoken_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_authtoken_store_v1_authtoken_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*AuthToken); i {
case 0:
return &v.state
+21 -21
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: ssh/v1/ssh_chunks.proto
@@ -1867,7 +1867,7 @@ func file_ssh_v1_ssh_chunks_proto_rawDescGZIP() []byte {
}
var file_ssh_v1_ssh_chunks_proto_msgTypes = make([]protoimpl.MessageInfo, 19)
var file_ssh_v1_ssh_chunks_proto_goTypes = []interface{}{
var file_ssh_v1_ssh_chunks_proto_goTypes = []any{
(*UnknownRequest)(nil), // 0: ssh.v1.UnknownRequest
(*SessionRequest)(nil), // 1: ssh.v1.SessionRequest
(*X11Request)(nil), // 2: ssh.v1.X11Request
@@ -1902,7 +1902,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_ssh_v1_ssh_chunks_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*UnknownRequest); i {
case 0:
return &v.state
@@ -1914,7 +1914,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*SessionRequest); i {
case 0:
return &v.state
@@ -1926,7 +1926,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*X11Request); i {
case 0:
return &v.state
@@ -1938,7 +1938,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ForwardedTCPIPRequest); i {
case 0:
return &v.state
@@ -1950,7 +1950,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*DirectTCPIPRequest); i {
case 0:
return &v.state
@@ -1962,7 +1962,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*PtyRequest); i {
case 0:
return &v.state
@@ -1974,7 +1974,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*X11ForwardingRequest); i {
case 0:
return &v.state
@@ -1986,7 +1986,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*EnvRequest); i {
case 0:
return &v.state
@@ -1998,7 +1998,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*ShellRequest); i {
case 0:
return &v.state
@@ -2010,7 +2010,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*ExecRequest); i {
case 0:
return &v.state
@@ -2022,7 +2022,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*SubsystemRequest); i {
case 0:
return &v.state
@@ -2034,7 +2034,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*WindowChangeRequest); i {
case 0:
return &v.state
@@ -2046,7 +2046,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*XonXoffRequest); i {
case 0:
return &v.state
@@ -2058,7 +2058,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*SignalRequest); i {
case 0:
return &v.state
@@ -2070,7 +2070,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[14].Exporter = func(v any, i int) any {
switch v := v.(*ExitStatusRequest); i {
case 0:
return &v.state
@@ -2082,7 +2082,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[15].Exporter = func(v any, i int) any {
switch v := v.(*ExitSignalRequest); i {
case 0:
return &v.state
@@ -2094,7 +2094,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[16].Exporter = func(v any, i int) any {
switch v := v.(*BreakRequest); i {
case 0:
return &v.state
@@ -2106,7 +2106,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[17].Exporter = func(v any, i int) any {
switch v := v.(*TCPIPForwardRequest); i {
case 0:
return &v.state
@@ -2118,7 +2118,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[18].Exporter = func(v any, i int) any {
switch v := v.(*CancelTCPIPForwardRequest); i {
case 0:
return &v.state
+9 -9
View File
@@ -204,21 +204,21 @@ func TestSearch(t *testing.T) {
require.NoError(t, rw.Create(ctx, u))
require.NoError(t, rw.Create(ctx, at))
aliases := []any{
&ResolvableAlias{FkUserId: u.Id, Id: "alt_1", Value: "one", Type: "target", Item: `{"id": "alt_1", "value": "one", "type": "target"}`},
&ResolvableAlias{FkUserId: u.Id, Id: "alt_2", Value: "two", Type: "target", Item: `{"id": "alt_2", "value": "two", "type": "target"}`},
aliases := []*ResolvableAlias{
{FkUserId: u.Id, Id: "alt_1", Value: "one", Type: "target", Item: `{"id": "alt_1", "value": "one", "type": "target"}`},
{FkUserId: u.Id, Id: "alt_2", Value: "two", Type: "target", Item: `{"id": "alt_2", "value": "two", "type": "target"}`},
}
require.NoError(t, rw.CreateItems(ctx, aliases))
targets := []any{
&Target{FkUserId: u.Id, Id: "t_1", Name: "one", Type: "tcp", Item: `{"id": "t_1", "name": "one", "type": "tcp"}`},
&Target{FkUserId: u.Id, Id: "t_2", Name: "two", Type: "tcp", Item: `{"id": "t_2", "name": "two", "type": "tcp"}`},
targets := []*Target{
{FkUserId: u.Id, Id: "t_1", Name: "one", Type: "tcp", Item: `{"id": "t_1", "name": "one", "type": "tcp"}`},
{FkUserId: u.Id, Id: "t_2", Name: "two", Type: "tcp", Item: `{"id": "t_2", "name": "two", "type": "tcp"}`},
}
require.NoError(t, rw.CreateItems(ctx, targets))
sessions := []any{
&Session{FkUserId: u.Id, Id: "s_1", Endpoint: "one", Type: "tcp", UserId: "u123", Item: `{"id": "s_1", "endpoint": "one", "type": "tcp", "user_id": "u123"}`},
&Session{FkUserId: u.Id, Id: "s_2", Endpoint: "two", Type: "ssh", UserId: "u321", Item: `{"id": "s_2", "endpoint": "two", "type": "ssh", "user_id": "u321"}`},
sessions := []*Session{
{FkUserId: u.Id, Id: "s_1", Endpoint: "one", Type: "tcp", UserId: "u123", Item: `{"id": "s_1", "endpoint": "one", "type": "tcp", "user_id": "u123"}`},
{FkUserId: u.Id, Id: "s_2", Endpoint: "two", Type: "ssh", UserId: "u321", Item: `{"id": "s_2", "endpoint": "two", "type": "ssh", "user_id": "u321"}`},
}
require.NoError(t, rw.CreateItems(ctx, sessions))
}
@@ -30,6 +30,7 @@ import (
type fakeReader struct {
db.Reader
}
type fakeWriter struct {
db.Writer
}
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/credential/static/store/v1/static.proto
@@ -852,7 +852,7 @@ func file_controller_storage_credential_static_store_v1_static_proto_rawDescGZIP
}
var file_controller_storage_credential_static_store_v1_static_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_controller_storage_credential_static_store_v1_static_proto_goTypes = []interface{}{
var file_controller_storage_credential_static_store_v1_static_proto_goTypes = []any{
(*CredentialStore)(nil), // 0: controller.storage.credential.static.store.v1.CredentialStore
(*UsernamePasswordCredential)(nil), // 1: controller.storage.credential.static.store.v1.UsernamePasswordCredential
(*SshPrivateKeyCredential)(nil), // 2: controller.storage.credential.static.store.v1.SshPrivateKeyCredential
@@ -881,7 +881,7 @@ func file_controller_storage_credential_static_store_v1_static_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_credential_static_store_v1_static_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_static_store_v1_static_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*CredentialStore); i {
case 0:
return &v.state
@@ -893,7 +893,7 @@ func file_controller_storage_credential_static_store_v1_static_proto_init() {
return nil
}
}
file_controller_storage_credential_static_store_v1_static_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_static_store_v1_static_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*UsernamePasswordCredential); i {
case 0:
return &v.state
@@ -905,7 +905,7 @@ func file_controller_storage_credential_static_store_v1_static_proto_init() {
return nil
}
}
file_controller_storage_credential_static_store_v1_static_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_static_store_v1_static_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*SshPrivateKeyCredential); i {
case 0:
return &v.state
@@ -917,7 +917,7 @@ func file_controller_storage_credential_static_store_v1_static_proto_init() {
return nil
}
}
file_controller_storage_credential_static_store_v1_static_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_static_store_v1_static_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*JsonCredential); i {
case 0:
return &v.state
+7 -7
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/credential/store/v1/credential.proto
@@ -372,7 +372,7 @@ func file_controller_storage_credential_store_v1_credential_proto_rawDescGZIP()
}
var file_controller_storage_credential_store_v1_credential_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_controller_storage_credential_store_v1_credential_proto_goTypes = []interface{}{
var file_controller_storage_credential_store_v1_credential_proto_goTypes = []any{
(*Store)(nil), // 0: controller.storage.credential.store.v1.Store
(*Library)(nil), // 1: controller.storage.credential.store.v1.Library
(*Credential)(nil), // 2: controller.storage.credential.store.v1.Credential
@@ -393,7 +393,7 @@ func file_controller_storage_credential_store_v1_credential_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_credential_store_v1_credential_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_store_v1_credential_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*Store); i {
case 0:
return &v.state
@@ -405,7 +405,7 @@ func file_controller_storage_credential_store_v1_credential_proto_init() {
return nil
}
}
file_controller_storage_credential_store_v1_credential_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_store_v1_credential_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*Library); i {
case 0:
return &v.state
@@ -417,7 +417,7 @@ func file_controller_storage_credential_store_v1_credential_proto_init() {
return nil
}
}
file_controller_storage_credential_store_v1_credential_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_store_v1_credential_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*Credential); i {
case 0:
return &v.state
@@ -429,7 +429,7 @@ func file_controller_storage_credential_store_v1_credential_proto_init() {
return nil
}
}
file_controller_storage_credential_store_v1_credential_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_store_v1_credential_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*Static); i {
case 0:
return &v.state
@@ -441,7 +441,7 @@ func file_controller_storage_credential_store_v1_credential_proto_init() {
return nil
}
}
file_controller_storage_credential_store_v1_credential_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_store_v1_credential_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*Dynamic); i {
case 0:
return &v.state
+10 -10
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/credential/vault/store/v1/vault.proto
@@ -1513,7 +1513,7 @@ func file_controller_storage_credential_vault_store_v1_vault_proto_rawDescGZIP()
}
var file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_controller_storage_credential_vault_store_v1_vault_proto_goTypes = []interface{}{
var file_controller_storage_credential_vault_store_v1_vault_proto_goTypes = []any{
(*CredentialStore)(nil), // 0: controller.storage.credential.vault.store.v1.CredentialStore
(*Token)(nil), // 1: controller.storage.credential.vault.store.v1.Token
(*ClientCertificate)(nil), // 2: controller.storage.credential.vault.store.v1.ClientCertificate
@@ -1553,7 +1553,7 @@ func file_controller_storage_credential_vault_store_v1_vault_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*CredentialStore); i {
case 0:
return &v.state
@@ -1565,7 +1565,7 @@ func file_controller_storage_credential_vault_store_v1_vault_proto_init() {
return nil
}
}
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*Token); i {
case 0:
return &v.state
@@ -1577,7 +1577,7 @@ func file_controller_storage_credential_vault_store_v1_vault_proto_init() {
return nil
}
}
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ClientCertificate); i {
case 0:
return &v.state
@@ -1589,7 +1589,7 @@ func file_controller_storage_credential_vault_store_v1_vault_proto_init() {
return nil
}
}
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*CredentialLibrary); i {
case 0:
return &v.state
@@ -1601,7 +1601,7 @@ func file_controller_storage_credential_vault_store_v1_vault_proto_init() {
return nil
}
}
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*SSHCertificateCredentialLibrary); i {
case 0:
return &v.state
@@ -1613,7 +1613,7 @@ func file_controller_storage_credential_vault_store_v1_vault_proto_init() {
return nil
}
}
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*Credential); i {
case 0:
return &v.state
@@ -1625,7 +1625,7 @@ func file_controller_storage_credential_vault_store_v1_vault_proto_init() {
return nil
}
}
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UsernamePasswordOverride); i {
case 0:
return &v.state
@@ -1637,7 +1637,7 @@ func file_controller_storage_credential_vault_store_v1_vault_proto_init() {
return nil
}
}
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*SshPrivateKeyOverride); i {
case 0:
return &v.state
@@ -30,7 +30,6 @@ type UpstreamMessageHandler interface {
// Handler for the request. All errors returned must be a error created
// using google.golang.org/grpc/status
Handler(ctx context.Context, request proto.Message) (response proto.Message, statusErr error)
UpstreamMessageTypeSpecifier
}
@@ -63,11 +63,9 @@ type Session interface {
// in the SessionJobInfo are not present, however, it still applies the
// status change to the session and the connections which are present.
ApplyLocalStatus(st pbs.SESSIONSTATUS)
GetStatus() pbs.SESSIONSTATUS
// GetLocalConnections returns the connections this session is handling.
GetLocalConnections() map[string]ConnInfo
GetTofuToken() string
GetConnectionLimit() int32
GetEndpoint() string
+2 -2
View File
@@ -75,7 +75,7 @@ func (w *changeSafeDbwWriter) Create(ctx context.Context, i any, opt ...dbw.Opti
return dbw.New(w.db.underlying.wrapped.Load()).Create(ctx, i, opt...)
}
func (w *changeSafeDbwWriter) CreateItems(ctx context.Context, createItems []any, opt ...dbw.Option) error {
func (w *changeSafeDbwWriter) CreateItems(ctx context.Context, createItems any, opt ...dbw.Option) error {
return dbw.New(w.db.underlying.wrapped.Load()).CreateItems(ctx, createItems, opt...)
}
@@ -83,7 +83,7 @@ func (w *changeSafeDbwWriter) Delete(ctx context.Context, i any, opt ...dbw.Opti
return dbw.New(w.db.underlying.wrapped.Load()).Delete(ctx, i, opt...)
}
func (w *changeSafeDbwWriter) DeleteItems(ctx context.Context, deleteItems []any, opt ...dbw.Option) (int, error) {
func (w *changeSafeDbwWriter) DeleteItems(ctx context.Context, deleteItems any, opt ...dbw.Option) (int, error) {
return dbw.New(w.db.underlying.wrapped.Load()).DeleteItems(ctx, deleteItems, opt...)
}
+8 -8
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/db/db_test/v1/db_test.proto
@@ -699,7 +699,7 @@ func file_controller_storage_db_db_test_v1_db_test_proto_rawDescGZIP() []byte {
}
var file_controller_storage_db_db_test_v1_db_test_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_controller_storage_db_db_test_v1_db_test_proto_goTypes = []interface{}{
var file_controller_storage_db_db_test_v1_db_test_proto_goTypes = []any{
(*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
@@ -730,7 +730,7 @@ func file_controller_storage_db_db_test_v1_db_test_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_db_db_test_v1_db_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_db_db_test_v1_db_test_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*StoreTestUser); i {
case 0:
return &v.state
@@ -742,7 +742,7 @@ func file_controller_storage_db_db_test_v1_db_test_proto_init() {
return nil
}
}
file_controller_storage_db_db_test_v1_db_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_db_db_test_v1_db_test_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*StoreTestCar); i {
case 0:
return &v.state
@@ -754,7 +754,7 @@ func file_controller_storage_db_db_test_v1_db_test_proto_init() {
return nil
}
}
file_controller_storage_db_db_test_v1_db_test_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_db_db_test_v1_db_test_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*StoreTestRental); i {
case 0:
return &v.state
@@ -766,7 +766,7 @@ func file_controller_storage_db_db_test_v1_db_test_proto_init() {
return nil
}
}
file_controller_storage_db_db_test_v1_db_test_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_db_db_test_v1_db_test_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*StoreTestScooter); i {
case 0:
return &v.state
@@ -778,7 +778,7 @@ func file_controller_storage_db_db_test_v1_db_test_proto_init() {
return nil
}
}
file_controller_storage_db_db_test_v1_db_test_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_db_db_test_v1_db_test_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*StoreTestAccessory); i {
case 0:
return &v.state
@@ -790,7 +790,7 @@ func file_controller_storage_db_db_test_v1_db_test_proto_init() {
return nil
}
}
file_controller_storage_db_db_test_v1_db_test_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_db_db_test_v1_db_test_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*StoreTestScooterAccessory); i {
case 0:
return &v.state
+4 -4
View File
@@ -112,7 +112,7 @@ type Writer interface {
// cycle of the writer and if an error is returned the caller must decide
// what to do with the transaction, which almost always should be to
// rollback.
CreateItems(ctx context.Context, createItems []any, opt ...Option) error
CreateItems(ctx context.Context, createItems any, opt ...Option) error
// Delete an object in the db with options: WithOplog, WithDebug.
// The caller is responsible for the transaction life cycle of the writer
@@ -127,7 +127,7 @@ type Writer interface {
// transaction life cycle of the writer and if an error is returned the
// caller must decide what to do with the transaction, which almost always
// should be to rollback. Delete returns the number of rows deleted or an error.
DeleteItems(ctx context.Context, deleteItems []any, opt ...Option) (int, error)
DeleteItems(ctx context.Context, deleteItems any, opt ...Option) (int, error)
// Exec will execute the sql with the values as parameters. The int returned
// is the number of rows affected by the sql. No options are currently
@@ -311,7 +311,7 @@ func (rw *Db) Create(ctx context.Context, i any, opt ...Option) error {
// WithDebug, WithOplog, WithOplogMsgs, WithReturnRowsAffected, OnConflict,
// WithVersion, and WithWhere WithOplog and WithOplogMsgs may not be used
// together. WithLookup is not a supported option.
func (rw *Db) CreateItems(ctx context.Context, createItems []any, opt ...Option) error {
func (rw *Db) CreateItems(ctx context.Context, createItems any, opt ...Option) error {
const op = "db.CreateItems"
if rw.underlying == nil {
return errors.New(ctx, errors.InvalidParameter, op, "missing underlying db")
@@ -389,7 +389,7 @@ func (rw *Db) Delete(ctx context.Context, i any, opt ...Option) (int, error) {
// DeleteItems will delete multiple items of the same type. Supported options:
// WithOplog and WithOplogMsgs. WithOplog and WithOplogMsgs may not be used
// together.
func (rw *Db) DeleteItems(ctx context.Context, deleteItems []any, opt ...Option) (int, error) {
func (rw *Db) DeleteItems(ctx context.Context, deleteItems any, opt ...Option) (int, error) {
const op = "db.DeleteItems"
if rw.underlying == nil {
return NoRowsAffected, errors.New(ctx, errors.InvalidParameter, op, "missing underlying db")
+1 -1
View File
@@ -219,7 +219,7 @@ func TestDb_Create_OnConflict(t *testing.T) {
Target: db.Constraint("db_test_user_public_id_key"),
Action: db.SetColumns([]string{"name"}),
}
users := []any{}
users := []*db_test.TestUser{}
users = append(users, conflictUser)
var rowsAffected int64
err = rw.CreateItems(ctx, users, db.WithOnConflict(&onConflict), db.WithOplog(oplogWrapper, md), db.WithReturnRowsAffected(&rowsAffected))
+1 -1
View File
@@ -108,7 +108,7 @@ func (rw *Db) generateOplogBeforeAfterOpts(ctx context.Context, i any, opType Op
case withOplog && (opType == CreateItemsOp || opType == DeleteItemsOp):
afterFn = func(i any, rowsAffected int) error {
const op = "db.afterFnMultiItem"
err := rw.addOplogForItems(ctx, opType, opts, ticket, i.([]any))
err := rw.addOplogForItems(ctx, opType, opts, ticket, items)
if err != nil {
return errors.Wrap(ctx, err, op, errors.WithMsg("returning oplog msgs failed"))
}
+12 -14
View File
@@ -1682,8 +1682,8 @@ func TestDb_CreateItems(t *testing.T) {
oplogWrapper := TestOplogWrapper(t, db)
testOplogResourceId := testId(t)
createFn := func() []any {
results := []any{}
createFn := func() []*db_test.TestUser {
results := []*db_test.TestUser{}
for i := 0; i < 10; i++ {
u, err := db_test.NewTestUser()
require.NoError(t, err)
@@ -1705,7 +1705,7 @@ func TestDb_CreateItems(t *testing.T) {
returnedMsgs := []*oplog.Message{}
type args struct {
createItems []any
createItems any
opt []Option
}
tests := []struct {
@@ -1865,21 +1865,19 @@ func TestDb_CreateItems(t *testing.T) {
return
}
require.NoError(err)
for _, item := range tt.args.createItems {
for _, item := range tt.args.createItems.([]*db_test.TestUser) {
u := db_test.AllocTestUser()
u.PublicId = item.(*db_test.TestUser).PublicId
u.PublicId = item.PublicId
err := rw.LookupByPublicId(context.Background(), &u)
assert.NoError(err)
if _, ok := item.(*db_test.TestUser); ok {
assert.Truef(proto.Equal(item.(*db_test.TestUser).StoreTestUser, u.StoreTestUser), "%s and %s should be equal", item, u)
}
assert.Truef(proto.Equal(item.StoreTestUser, u.StoreTestUser), "%s and %s should be equal", item, u)
}
if tt.wantOplogId != "" {
err = TestVerifyOplog(t, rw, tt.wantOplogId, WithOperation(oplog.OpType_OP_TYPE_CREATE), WithCreateNotBefore(10*time.Second))
assert.NoError(err)
}
if tt.wantOplogMsgs {
assert.Equal(len(tt.args.createItems), len(returnedMsgs))
assert.Equal(len(tt.args.createItems.([]*db_test.TestUser)), len(returnedMsgs))
for _, m := range returnedMsgs {
assert.Equal(m.OpType, oplog.OpType_OP_TYPE_CREATE)
}
@@ -1894,8 +1892,8 @@ func TestDb_DeleteItems(t *testing.T) {
oplogWrapper := TestOplogWrapper(t, db)
testOplogResourceId := testId(t)
createFn := func() []any {
results := []any{}
createFn := func() []*db_test.TestUser {
results := []*db_test.TestUser{}
for i := 0; i < 10; i++ {
u := testUser(t, db, "", "", "")
results = append(results, u)
@@ -1906,7 +1904,7 @@ func TestDb_DeleteItems(t *testing.T) {
returnedMsgs := []*oplog.Message{}
type args struct {
deleteItems []any
deleteItems []*db_test.TestUser
opt []Option
}
tests := []struct {
@@ -2034,7 +2032,7 @@ func TestDb_DeleteItems(t *testing.T) {
name: "empty items",
underlying: db,
args: args{
deleteItems: []any{},
deleteItems: []*db_test.TestUser{},
},
wantErr: true,
wantErrIs: errors.InvalidParameter,
@@ -2063,7 +2061,7 @@ func TestDb_DeleteItems(t *testing.T) {
assert.Equal(tt.wantRowsDeleted, rowsDeleted)
for _, item := range tt.args.deleteItems {
u := db_test.AllocTestUser()
u.PublicId = item.(*db_test.TestUser).PublicId
u.PublicId = item.PublicId
err := rw.LookupByPublicId(context.Background(), &u)
require.Error(err)
require.Truef(errors.Match(errors.T(errors.RecordNotFound), err), "found item %s that should be deleted", u.PublicId)
@@ -222,7 +222,7 @@ values
require.NoError(err)
// Add items to insert
var items []any
var items []*host.PreferredEndpoint
for _, cond := range tt.conditions {
ep := host.AllocPreferredEndpoint()
ep.HostSetId = tt.hostSetId
@@ -474,6 +474,7 @@ type dek struct {
CreateTime time.Time
Purpose string
}
type dekVersion struct {
PrivateId string
DataKeyId string
+3 -3
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/timestamp/v1/timestamp.proto
@@ -111,7 +111,7 @@ func file_controller_storage_timestamp_v1_timestamp_proto_rawDescGZIP() []byte {
}
var file_controller_storage_timestamp_v1_timestamp_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_controller_storage_timestamp_v1_timestamp_proto_goTypes = []interface{}{
var file_controller_storage_timestamp_v1_timestamp_proto_goTypes = []any{
(*Timestamp)(nil), // 0: controller.storage.timestamp.v1.Timestamp
(*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp
}
@@ -130,7 +130,7 @@ func file_controller_storage_timestamp_v1_timestamp_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_timestamp_v1_timestamp_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_timestamp_v1_timestamp_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*Timestamp); i {
case 0:
return &v.state
+3 -3
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/v1/empty_msg.proto
@@ -89,7 +89,7 @@ func file_controller_api_v1_empty_msg_proto_rawDescGZIP() []byte {
}
var file_controller_api_v1_empty_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_controller_api_v1_empty_msg_proto_goTypes = []interface{}{
var file_controller_api_v1_empty_msg_proto_goTypes = []any{
(*EmptyResponse)(nil), // 0: controller.api.v1.EmptyResponse
}
var file_controller_api_v1_empty_msg_proto_depIdxs = []int32{
@@ -106,7 +106,7 @@ func file_controller_api_v1_empty_msg_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_v1_empty_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_v1_empty_msg_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*EmptyResponse); i {
case 0:
return &v.state
+6 -6
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/v1/error.proto
@@ -325,7 +325,7 @@ func file_controller_api_v1_error_proto_rawDescGZIP() []byte {
}
var file_controller_api_v1_error_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_controller_api_v1_error_proto_goTypes = []interface{}{
var file_controller_api_v1_error_proto_goTypes = []any{
(*WrappedError)(nil), // 0: controller.api.v1.WrappedError
(*ErrorDetails)(nil), // 1: controller.api.v1.ErrorDetails
(*FieldError)(nil), // 2: controller.api.v1.FieldError
@@ -348,7 +348,7 @@ func file_controller_api_v1_error_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_v1_error_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_v1_error_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*WrappedError); i {
case 0:
return &v.state
@@ -360,7 +360,7 @@ func file_controller_api_v1_error_proto_init() {
return nil
}
}
file_controller_api_v1_error_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_v1_error_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*ErrorDetails); i {
case 0:
return &v.state
@@ -372,7 +372,7 @@ func file_controller_api_v1_error_proto_init() {
return nil
}
}
file_controller_api_v1_error_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_v1_error_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*FieldError); i {
case 0:
return &v.state
@@ -384,7 +384,7 @@ func file_controller_api_v1_error_proto_init() {
return nil
}
}
file_controller_api_v1_error_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_v1_error_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*Error); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/account_service.proto
@@ -1095,7 +1095,7 @@ func file_controller_api_services_v1_account_service_proto_rawDescGZIP() []byte
}
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{}{
var file_controller_api_services_v1_account_service_proto_goTypes = []any{
(*GetAccountRequest)(nil), // 0: controller.api.services.v1.GetAccountRequest
(*GetAccountResponse)(nil), // 1: controller.api.services.v1.GetAccountResponse
(*ListAccountsRequest)(nil), // 2: controller.api.services.v1.ListAccountsRequest
@@ -1150,7 +1150,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_account_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetAccountRequest); i {
case 0:
return &v.state
@@ -1162,7 +1162,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetAccountResponse); i {
case 0:
return &v.state
@@ -1174,7 +1174,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListAccountsRequest); i {
case 0:
return &v.state
@@ -1186,7 +1186,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListAccountsResponse); i {
case 0:
return &v.state
@@ -1198,7 +1198,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateAccountRequest); i {
case 0:
return &v.state
@@ -1210,7 +1210,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateAccountResponse); i {
case 0:
return &v.state
@@ -1222,7 +1222,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateAccountRequest); i {
case 0:
return &v.state
@@ -1234,7 +1234,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateAccountResponse); i {
case 0:
return &v.state
@@ -1246,7 +1246,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteAccountRequest); i {
case 0:
return &v.state
@@ -1258,7 +1258,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteAccountResponse); i {
case 0:
return &v.state
@@ -1270,7 +1270,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*SetPasswordRequest); i {
case 0:
return &v.state
@@ -1282,7 +1282,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*SetPasswordResponse); i {
case 0:
return &v.state
@@ -1294,7 +1294,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*ChangePasswordRequest); i {
case 0:
return &v.state
@@ -1306,7 +1306,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*ChangePasswordResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/alias_service.proto
@@ -810,7 +810,7 @@ func file_controller_api_services_v1_alias_service_proto_rawDescGZIP() []byte {
}
var file_controller_api_services_v1_alias_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_controller_api_services_v1_alias_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_alias_service_proto_goTypes = []any{
(*GetAliasRequest)(nil), // 0: controller.api.services.v1.GetAliasRequest
(*GetAliasResponse)(nil), // 1: controller.api.services.v1.GetAliasResponse
(*ListAliasesRequest)(nil), // 2: controller.api.services.v1.ListAliasesRequest
@@ -855,7 +855,7 @@ func file_controller_api_services_v1_alias_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_alias_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_alias_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetAliasRequest); i {
case 0:
return &v.state
@@ -867,7 +867,7 @@ func file_controller_api_services_v1_alias_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_alias_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_alias_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetAliasResponse); i {
case 0:
return &v.state
@@ -879,7 +879,7 @@ func file_controller_api_services_v1_alias_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_alias_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_alias_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListAliasesRequest); i {
case 0:
return &v.state
@@ -891,7 +891,7 @@ func file_controller_api_services_v1_alias_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_alias_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_alias_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListAliasesResponse); i {
case 0:
return &v.state
@@ -903,7 +903,7 @@ func file_controller_api_services_v1_alias_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_alias_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_alias_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateAliasRequest); i {
case 0:
return &v.state
@@ -915,7 +915,7 @@ func file_controller_api_services_v1_alias_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_alias_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_alias_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateAliasResponse); i {
case 0:
return &v.state
@@ -927,7 +927,7 @@ func file_controller_api_services_v1_alias_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_alias_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_alias_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateAliasRequest); i {
case 0:
return &v.state
@@ -939,7 +939,7 @@ func file_controller_api_services_v1_alias_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_alias_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_alias_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateAliasResponse); i {
case 0:
return &v.state
@@ -951,7 +951,7 @@ func file_controller_api_services_v1_alias_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_alias_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_alias_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteAliasRequest); i {
case 0:
return &v.state
@@ -963,7 +963,7 @@ func file_controller_api_services_v1_alias_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_alias_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_alias_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteAliasResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/auth_method_service.proto
@@ -1897,7 +1897,7 @@ func file_controller_api_services_v1_auth_method_service_proto_rawDescGZIP() []b
}
var file_controller_api_services_v1_auth_method_service_proto_msgTypes = make([]protoimpl.MessageInfo, 18)
var file_controller_api_services_v1_auth_method_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_auth_method_service_proto_goTypes = []any{
(*GetAuthMethodRequest)(nil), // 0: controller.api.services.v1.GetAuthMethodRequest
(*GetAuthMethodResponse)(nil), // 1: controller.api.services.v1.GetAuthMethodResponse
(*ListAuthMethodsRequest)(nil), // 2: controller.api.services.v1.ListAuthMethodsRequest
@@ -1976,7 +1976,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetAuthMethodRequest); i {
case 0:
return &v.state
@@ -1988,7 +1988,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetAuthMethodResponse); i {
case 0:
return &v.state
@@ -2000,7 +2000,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListAuthMethodsRequest); i {
case 0:
return &v.state
@@ -2012,7 +2012,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListAuthMethodsResponse); i {
case 0:
return &v.state
@@ -2024,7 +2024,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateAuthMethodRequest); i {
case 0:
return &v.state
@@ -2036,7 +2036,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateAuthMethodResponse); i {
case 0:
return &v.state
@@ -2048,7 +2048,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateAuthMethodRequest); i {
case 0:
return &v.state
@@ -2060,7 +2060,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateAuthMethodResponse); i {
case 0:
return &v.state
@@ -2072,7 +2072,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteAuthMethodRequest); i {
case 0:
return &v.state
@@ -2084,7 +2084,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteAuthMethodResponse); i {
case 0:
return &v.state
@@ -2096,7 +2096,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*OidcChangeStateAttributes); i {
case 0:
return &v.state
@@ -2108,7 +2108,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*ChangeStateRequest); i {
case 0:
return &v.state
@@ -2120,7 +2120,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*ChangeStateResponse); i {
case 0:
return &v.state
@@ -2132,7 +2132,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*PasswordLoginAttributes); i {
case 0:
return &v.state
@@ -2144,7 +2144,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[14].Exporter = func(v any, i int) any {
switch v := v.(*OidcStartAttributes); i {
case 0:
return &v.state
@@ -2156,7 +2156,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[15].Exporter = func(v any, i int) any {
switch v := v.(*LdapLoginAttributes); i {
case 0:
return &v.state
@@ -2168,7 +2168,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[16].Exporter = func(v any, i int) any {
switch v := v.(*AuthenticateRequest); i {
case 0:
return &v.state
@@ -2180,7 +2180,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[17].Exporter = func(v any, i int) any {
switch v := v.(*AuthenticateResponse); i {
case 0:
return &v.state
@@ -2193,11 +2193,11 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
}
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[11].OneofWrappers = []interface{}{
file_controller_api_services_v1_auth_method_service_proto_msgTypes[11].OneofWrappers = []any{
(*ChangeStateRequest_Attributes)(nil),
(*ChangeStateRequest_OidcChangeStateAttributes)(nil),
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[16].OneofWrappers = []interface{}{
file_controller_api_services_v1_auth_method_service_proto_msgTypes[16].OneofWrappers = []any{
(*AuthenticateRequest_Attributes)(nil),
(*AuthenticateRequest_PasswordLoginAttributes)(nil),
(*AuthenticateRequest_OidcStartAttributes)(nil),
@@ -2205,7 +2205,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
(*AuthenticateRequest_OidcAuthMethodAuthenticateTokenRequest)(nil),
(*AuthenticateRequest_LdapLoginAttributes)(nil),
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[17].OneofWrappers = []interface{}{
file_controller_api_services_v1_auth_method_service_proto_msgTypes[17].OneofWrappers = []any{
(*AuthenticateResponse_Attributes)(nil),
(*AuthenticateResponse_OidcAuthMethodAuthenticateStartResponse)(nil),
(*AuthenticateResponse_OidcAuthMethodAuthenticateCallbackResponse)(nil),
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/authtokens_service.proto
@@ -536,7 +536,7 @@ func file_controller_api_services_v1_authtokens_service_proto_rawDescGZIP() []by
}
var file_controller_api_services_v1_authtokens_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_controller_api_services_v1_authtokens_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_authtokens_service_proto_goTypes = []any{
(*GetAuthTokenRequest)(nil), // 0: controller.api.services.v1.GetAuthTokenRequest
(*GetAuthTokenResponse)(nil), // 1: controller.api.services.v1.GetAuthTokenResponse
(*ListAuthTokensRequest)(nil), // 2: controller.api.services.v1.ListAuthTokensRequest
@@ -567,7 +567,7 @@ func file_controller_api_services_v1_authtokens_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_authtokens_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_authtokens_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetAuthTokenRequest); i {
case 0:
return &v.state
@@ -579,7 +579,7 @@ func file_controller_api_services_v1_authtokens_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_authtokens_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_authtokens_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetAuthTokenResponse); i {
case 0:
return &v.state
@@ -591,7 +591,7 @@ func file_controller_api_services_v1_authtokens_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_authtokens_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_authtokens_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListAuthTokensRequest); i {
case 0:
return &v.state
@@ -603,7 +603,7 @@ func file_controller_api_services_v1_authtokens_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_authtokens_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_authtokens_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListAuthTokensResponse); i {
case 0:
return &v.state
@@ -615,7 +615,7 @@ func file_controller_api_services_v1_authtokens_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_authtokens_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_authtokens_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*DeleteAuthTokenRequest); i {
case 0:
return &v.state
@@ -627,7 +627,7 @@ func file_controller_api_services_v1_authtokens_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_authtokens_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_authtokens_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*DeleteAuthTokenResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/billing_service.proto
@@ -201,7 +201,7 @@ func file_controller_api_services_v1_billing_service_proto_rawDescGZIP() []byte
}
var file_controller_api_services_v1_billing_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_controller_api_services_v1_billing_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_billing_service_proto_goTypes = []any{
(*MonthlyActiveUsersRequest)(nil), // 0: controller.api.services.v1.MonthlyActiveUsersRequest
(*MonthlyActiveUsersResponse)(nil), // 1: controller.api.services.v1.MonthlyActiveUsersResponse
(*billing.ActiveUsers)(nil), // 2: controller.api.resources.billing.v1.ActiveUsers
@@ -223,7 +223,7 @@ func file_controller_api_services_v1_billing_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_billing_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_billing_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*MonthlyActiveUsersRequest); i {
case 0:
return &v.state
@@ -235,7 +235,7 @@ func file_controller_api_services_v1_billing_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_billing_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_billing_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*MonthlyActiveUsersResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/credential_library_service.proto
@@ -844,7 +844,7 @@ func file_controller_api_services_v1_credential_library_service_proto_rawDescGZI
}
var file_controller_api_services_v1_credential_library_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_controller_api_services_v1_credential_library_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_credential_library_service_proto_goTypes = []any{
(*GetCredentialLibraryRequest)(nil), // 0: controller.api.services.v1.GetCredentialLibraryRequest
(*GetCredentialLibraryResponse)(nil), // 1: controller.api.services.v1.GetCredentialLibraryResponse
(*ListCredentialLibrariesRequest)(nil), // 2: controller.api.services.v1.ListCredentialLibrariesRequest
@@ -889,7 +889,7 @@ func file_controller_api_services_v1_credential_library_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_credential_library_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_library_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetCredentialLibraryRequest); i {
case 0:
return &v.state
@@ -901,7 +901,7 @@ func file_controller_api_services_v1_credential_library_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_library_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_library_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetCredentialLibraryResponse); i {
case 0:
return &v.state
@@ -913,7 +913,7 @@ func file_controller_api_services_v1_credential_library_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_library_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_library_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListCredentialLibrariesRequest); i {
case 0:
return &v.state
@@ -925,7 +925,7 @@ func file_controller_api_services_v1_credential_library_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_library_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_library_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListCredentialLibrariesResponse); i {
case 0:
return &v.state
@@ -937,7 +937,7 @@ func file_controller_api_services_v1_credential_library_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_library_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_library_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateCredentialLibraryRequest); i {
case 0:
return &v.state
@@ -949,7 +949,7 @@ func file_controller_api_services_v1_credential_library_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_library_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_library_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateCredentialLibraryResponse); i {
case 0:
return &v.state
@@ -961,7 +961,7 @@ func file_controller_api_services_v1_credential_library_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_library_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_library_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateCredentialLibraryRequest); i {
case 0:
return &v.state
@@ -973,7 +973,7 @@ func file_controller_api_services_v1_credential_library_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_library_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_library_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateCredentialLibraryResponse); i {
case 0:
return &v.state
@@ -985,7 +985,7 @@ func file_controller_api_services_v1_credential_library_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_library_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_library_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteCredentialLibraryRequest); i {
case 0:
return &v.state
@@ -997,7 +997,7 @@ func file_controller_api_services_v1_credential_library_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_library_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_library_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteCredentialLibraryResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/credential_service.proto
@@ -811,7 +811,7 @@ func file_controller_api_services_v1_credential_service_proto_rawDescGZIP() []by
}
var file_controller_api_services_v1_credential_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_controller_api_services_v1_credential_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_credential_service_proto_goTypes = []any{
(*GetCredentialRequest)(nil), // 0: controller.api.services.v1.GetCredentialRequest
(*GetCredentialResponse)(nil), // 1: controller.api.services.v1.GetCredentialResponse
(*ListCredentialsRequest)(nil), // 2: controller.api.services.v1.ListCredentialsRequest
@@ -856,7 +856,7 @@ func file_controller_api_services_v1_credential_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_credential_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetCredentialRequest); i {
case 0:
return &v.state
@@ -868,7 +868,7 @@ func file_controller_api_services_v1_credential_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetCredentialResponse); i {
case 0:
return &v.state
@@ -880,7 +880,7 @@ func file_controller_api_services_v1_credential_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListCredentialsRequest); i {
case 0:
return &v.state
@@ -892,7 +892,7 @@ func file_controller_api_services_v1_credential_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListCredentialsResponse); i {
case 0:
return &v.state
@@ -904,7 +904,7 @@ func file_controller_api_services_v1_credential_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateCredentialRequest); i {
case 0:
return &v.state
@@ -916,7 +916,7 @@ func file_controller_api_services_v1_credential_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateCredentialResponse); i {
case 0:
return &v.state
@@ -928,7 +928,7 @@ func file_controller_api_services_v1_credential_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateCredentialRequest); i {
case 0:
return &v.state
@@ -940,7 +940,7 @@ func file_controller_api_services_v1_credential_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateCredentialResponse); i {
case 0:
return &v.state
@@ -952,7 +952,7 @@ func file_controller_api_services_v1_credential_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteCredentialRequest); i {
case 0:
return &v.state
@@ -964,7 +964,7 @@ func file_controller_api_services_v1_credential_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteCredentialResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/credential_store_service.proto
@@ -838,7 +838,7 @@ func file_controller_api_services_v1_credential_store_service_proto_rawDescGZIP(
}
var file_controller_api_services_v1_credential_store_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_controller_api_services_v1_credential_store_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_credential_store_service_proto_goTypes = []any{
(*GetCredentialStoreRequest)(nil), // 0: controller.api.services.v1.GetCredentialStoreRequest
(*GetCredentialStoreResponse)(nil), // 1: controller.api.services.v1.GetCredentialStoreResponse
(*ListCredentialStoresRequest)(nil), // 2: controller.api.services.v1.ListCredentialStoresRequest
@@ -883,7 +883,7 @@ func file_controller_api_services_v1_credential_store_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_credential_store_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_store_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetCredentialStoreRequest); i {
case 0:
return &v.state
@@ -895,7 +895,7 @@ func file_controller_api_services_v1_credential_store_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_store_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_store_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetCredentialStoreResponse); i {
case 0:
return &v.state
@@ -907,7 +907,7 @@ func file_controller_api_services_v1_credential_store_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_store_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_store_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListCredentialStoresRequest); i {
case 0:
return &v.state
@@ -919,7 +919,7 @@ func file_controller_api_services_v1_credential_store_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_store_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_store_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListCredentialStoresResponse); i {
case 0:
return &v.state
@@ -931,7 +931,7 @@ func file_controller_api_services_v1_credential_store_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_store_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_store_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateCredentialStoreRequest); i {
case 0:
return &v.state
@@ -943,7 +943,7 @@ func file_controller_api_services_v1_credential_store_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_store_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_store_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateCredentialStoreResponse); i {
case 0:
return &v.state
@@ -955,7 +955,7 @@ func file_controller_api_services_v1_credential_store_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_store_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_store_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateCredentialStoreRequest); i {
case 0:
return &v.state
@@ -967,7 +967,7 @@ func file_controller_api_services_v1_credential_store_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_store_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_store_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateCredentialStoreResponse); i {
case 0:
return &v.state
@@ -979,7 +979,7 @@ func file_controller_api_services_v1_credential_store_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_store_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_store_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteCredentialStoreRequest); i {
case 0:
return &v.state
@@ -991,7 +991,7 @@ func file_controller_api_services_v1_credential_store_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_store_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_store_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteCredentialStoreResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/doc.proto
@@ -288,7 +288,7 @@ var file_controller_api_services_v1_doc_proto_rawDesc = []byte{
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var file_controller_api_services_v1_doc_proto_goTypes = []interface{}{}
var file_controller_api_services_v1_doc_proto_goTypes = []any{}
var file_controller_api_services_v1_doc_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/group_service.proto
@@ -1212,7 +1212,7 @@ func file_controller_api_services_v1_group_service_proto_rawDescGZIP() []byte {
}
var file_controller_api_services_v1_group_service_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
var file_controller_api_services_v1_group_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_group_service_proto_goTypes = []any{
(*GetGroupRequest)(nil), // 0: controller.api.services.v1.GetGroupRequest
(*GetGroupResponse)(nil), // 1: controller.api.services.v1.GetGroupResponse
(*ListGroupsRequest)(nil), // 2: controller.api.services.v1.ListGroupsRequest
@@ -1272,7 +1272,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_group_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetGroupRequest); i {
case 0:
return &v.state
@@ -1284,7 +1284,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetGroupResponse); i {
case 0:
return &v.state
@@ -1296,7 +1296,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListGroupsRequest); i {
case 0:
return &v.state
@@ -1308,7 +1308,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListGroupsResponse); i {
case 0:
return &v.state
@@ -1320,7 +1320,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateGroupRequest); i {
case 0:
return &v.state
@@ -1332,7 +1332,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateGroupResponse); i {
case 0:
return &v.state
@@ -1344,7 +1344,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateGroupRequest); i {
case 0:
return &v.state
@@ -1356,7 +1356,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateGroupResponse); i {
case 0:
return &v.state
@@ -1368,7 +1368,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteGroupRequest); i {
case 0:
return &v.state
@@ -1380,7 +1380,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteGroupResponse); i {
case 0:
return &v.state
@@ -1392,7 +1392,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*AddGroupMembersRequest); i {
case 0:
return &v.state
@@ -1404,7 +1404,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*AddGroupMembersResponse); i {
case 0:
return &v.state
@@ -1416,7 +1416,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*SetGroupMembersRequest); i {
case 0:
return &v.state
@@ -1428,7 +1428,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*SetGroupMembersResponse); i {
case 0:
return &v.state
@@ -1440,7 +1440,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[14].Exporter = func(v any, i int) any {
switch v := v.(*RemoveGroupMembersRequest); i {
case 0:
return &v.state
@@ -1452,7 +1452,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[15].Exporter = func(v any, i int) any {
switch v := v.(*RemoveGroupMembersResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/host_catalog_service.proto
@@ -834,7 +834,7 @@ func file_controller_api_services_v1_host_catalog_service_proto_rawDescGZIP() []
}
var file_controller_api_services_v1_host_catalog_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_controller_api_services_v1_host_catalog_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_host_catalog_service_proto_goTypes = []any{
(*GetHostCatalogRequest)(nil), // 0: controller.api.services.v1.GetHostCatalogRequest
(*GetHostCatalogResponse)(nil), // 1: controller.api.services.v1.GetHostCatalogResponse
(*ListHostCatalogsRequest)(nil), // 2: controller.api.services.v1.ListHostCatalogsRequest
@@ -879,7 +879,7 @@ func file_controller_api_services_v1_host_catalog_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetHostCatalogRequest); i {
case 0:
return &v.state
@@ -891,7 +891,7 @@ func file_controller_api_services_v1_host_catalog_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetHostCatalogResponse); i {
case 0:
return &v.state
@@ -903,7 +903,7 @@ func file_controller_api_services_v1_host_catalog_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListHostCatalogsRequest); i {
case 0:
return &v.state
@@ -915,7 +915,7 @@ func file_controller_api_services_v1_host_catalog_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListHostCatalogsResponse); i {
case 0:
return &v.state
@@ -927,7 +927,7 @@ func file_controller_api_services_v1_host_catalog_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateHostCatalogRequest); i {
case 0:
return &v.state
@@ -939,7 +939,7 @@ func file_controller_api_services_v1_host_catalog_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateHostCatalogResponse); i {
case 0:
return &v.state
@@ -951,7 +951,7 @@ func file_controller_api_services_v1_host_catalog_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateHostCatalogRequest); i {
case 0:
return &v.state
@@ -963,7 +963,7 @@ func file_controller_api_services_v1_host_catalog_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateHostCatalogResponse); i {
case 0:
return &v.state
@@ -975,7 +975,7 @@ func file_controller_api_services_v1_host_catalog_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteHostCatalogRequest); i {
case 0:
return &v.state
@@ -987,7 +987,7 @@ func file_controller_api_services_v1_host_catalog_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteHostCatalogResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/host_service.proto
@@ -788,7 +788,7 @@ func file_controller_api_services_v1_host_service_proto_rawDescGZIP() []byte {
}
var file_controller_api_services_v1_host_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_controller_api_services_v1_host_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_host_service_proto_goTypes = []any{
(*GetHostRequest)(nil), // 0: controller.api.services.v1.GetHostRequest
(*GetHostResponse)(nil), // 1: controller.api.services.v1.GetHostResponse
(*ListHostsRequest)(nil), // 2: controller.api.services.v1.ListHostsRequest
@@ -833,7 +833,7 @@ func file_controller_api_services_v1_host_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_host_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetHostRequest); i {
case 0:
return &v.state
@@ -845,7 +845,7 @@ func file_controller_api_services_v1_host_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetHostResponse); i {
case 0:
return &v.state
@@ -857,7 +857,7 @@ func file_controller_api_services_v1_host_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListHostsRequest); i {
case 0:
return &v.state
@@ -869,7 +869,7 @@ func file_controller_api_services_v1_host_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListHostsResponse); i {
case 0:
return &v.state
@@ -881,7 +881,7 @@ func file_controller_api_services_v1_host_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateHostRequest); i {
case 0:
return &v.state
@@ -893,7 +893,7 @@ func file_controller_api_services_v1_host_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateHostResponse); i {
case 0:
return &v.state
@@ -905,7 +905,7 @@ func file_controller_api_services_v1_host_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateHostRequest); i {
case 0:
return &v.state
@@ -917,7 +917,7 @@ func file_controller_api_services_v1_host_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateHostResponse); i {
case 0:
return &v.state
@@ -929,7 +929,7 @@ func file_controller_api_services_v1_host_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteHostRequest); i {
case 0:
return &v.state
@@ -941,7 +941,7 @@ func file_controller_api_services_v1_host_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteHostResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/host_set_service.proto
@@ -1215,7 +1215,7 @@ func file_controller_api_services_v1_host_set_service_proto_rawDescGZIP() []byte
}
var file_controller_api_services_v1_host_set_service_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
var file_controller_api_services_v1_host_set_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_host_set_service_proto_goTypes = []any{
(*GetHostSetRequest)(nil), // 0: controller.api.services.v1.GetHostSetRequest
(*GetHostSetResponse)(nil), // 1: controller.api.services.v1.GetHostSetResponse
(*ListHostSetsRequest)(nil), // 2: controller.api.services.v1.ListHostSetsRequest
@@ -1275,7 +1275,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_host_set_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetHostSetRequest); i {
case 0:
return &v.state
@@ -1287,7 +1287,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetHostSetResponse); i {
case 0:
return &v.state
@@ -1299,7 +1299,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListHostSetsRequest); i {
case 0:
return &v.state
@@ -1311,7 +1311,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListHostSetsResponse); i {
case 0:
return &v.state
@@ -1323,7 +1323,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateHostSetRequest); i {
case 0:
return &v.state
@@ -1335,7 +1335,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateHostSetResponse); i {
case 0:
return &v.state
@@ -1347,7 +1347,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateHostSetRequest); i {
case 0:
return &v.state
@@ -1359,7 +1359,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateHostSetResponse); i {
case 0:
return &v.state
@@ -1371,7 +1371,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteHostSetRequest); i {
case 0:
return &v.state
@@ -1383,7 +1383,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteHostSetResponse); i {
case 0:
return &v.state
@@ -1395,7 +1395,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*AddHostSetHostsRequest); i {
case 0:
return &v.state
@@ -1407,7 +1407,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*AddHostSetHostsResponse); i {
case 0:
return &v.state
@@ -1419,7 +1419,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*SetHostSetHostsRequest); i {
case 0:
return &v.state
@@ -1431,7 +1431,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*SetHostSetHostsResponse); i {
case 0:
return &v.state
@@ -1443,7 +1443,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[14].Exporter = func(v any, i int) any {
switch v := v.(*RemoveHostSetHostsRequest); i {
case 0:
return &v.state
@@ -1455,7 +1455,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[15].Exporter = func(v any, i int) any {
switch v := v.(*RemoveHostSetHostsResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/list.proto
@@ -633,7 +633,7 @@ func file_controller_api_services_v1_list_proto_rawDescGZIP() []byte {
var file_controller_api_services_v1_list_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_controller_api_services_v1_list_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_controller_api_services_v1_list_proto_goTypes = []interface{}{
var file_controller_api_services_v1_list_proto_goTypes = []any{
(ResourceType)(0), // 0: controller.api.services.v1.ResourceType
(*ListToken)(nil), // 1: controller.api.services.v1.ListToken
(*PaginationToken)(nil), // 2: controller.api.services.v1.PaginationToken
@@ -667,7 +667,7 @@ func file_controller_api_services_v1_list_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_list_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_list_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*ListToken); i {
case 0:
return &v.state
@@ -679,7 +679,7 @@ func file_controller_api_services_v1_list_proto_init() {
return nil
}
}
file_controller_api_services_v1_list_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_list_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*PaginationToken); i {
case 0:
return &v.state
@@ -691,7 +691,7 @@ func file_controller_api_services_v1_list_proto_init() {
return nil
}
}
file_controller_api_services_v1_list_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_list_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*StartRefreshToken); i {
case 0:
return &v.state
@@ -703,7 +703,7 @@ func file_controller_api_services_v1_list_proto_init() {
return nil
}
}
file_controller_api_services_v1_list_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_list_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*RefreshToken); i {
case 0:
return &v.state
@@ -716,7 +716,7 @@ func file_controller_api_services_v1_list_proto_init() {
}
}
}
file_controller_api_services_v1_list_proto_msgTypes[0].OneofWrappers = []interface{}{
file_controller_api_services_v1_list_proto_msgTypes[0].OneofWrappers = []any{
(*ListToken_PaginationToken)(nil),
(*ListToken_StartRefreshToken)(nil),
(*ListToken_RefreshToken)(nil),
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/managed_group_service.proto
@@ -818,7 +818,7 @@ func file_controller_api_services_v1_managed_group_service_proto_rawDescGZIP() [
}
var file_controller_api_services_v1_managed_group_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_controller_api_services_v1_managed_group_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_managed_group_service_proto_goTypes = []any{
(*GetManagedGroupRequest)(nil), // 0: controller.api.services.v1.GetManagedGroupRequest
(*GetManagedGroupResponse)(nil), // 1: controller.api.services.v1.GetManagedGroupResponse
(*ListManagedGroupsRequest)(nil), // 2: controller.api.services.v1.ListManagedGroupsRequest
@@ -863,7 +863,7 @@ func file_controller_api_services_v1_managed_group_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_managed_group_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_managed_group_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetManagedGroupRequest); i {
case 0:
return &v.state
@@ -875,7 +875,7 @@ func file_controller_api_services_v1_managed_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_managed_group_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_managed_group_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetManagedGroupResponse); i {
case 0:
return &v.state
@@ -887,7 +887,7 @@ func file_controller_api_services_v1_managed_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_managed_group_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_managed_group_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListManagedGroupsRequest); i {
case 0:
return &v.state
@@ -899,7 +899,7 @@ func file_controller_api_services_v1_managed_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_managed_group_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_managed_group_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListManagedGroupsResponse); i {
case 0:
return &v.state
@@ -911,7 +911,7 @@ func file_controller_api_services_v1_managed_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_managed_group_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_managed_group_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateManagedGroupRequest); i {
case 0:
return &v.state
@@ -923,7 +923,7 @@ func file_controller_api_services_v1_managed_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_managed_group_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_managed_group_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateManagedGroupResponse); i {
case 0:
return &v.state
@@ -935,7 +935,7 @@ func file_controller_api_services_v1_managed_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_managed_group_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_managed_group_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateManagedGroupRequest); i {
case 0:
return &v.state
@@ -947,7 +947,7 @@ func file_controller_api_services_v1_managed_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_managed_group_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_managed_group_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateManagedGroupResponse); i {
case 0:
return &v.state
@@ -959,7 +959,7 @@ func file_controller_api_services_v1_managed_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_managed_group_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_managed_group_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteManagedGroupRequest); i {
case 0:
return &v.state
@@ -971,7 +971,7 @@ func file_controller_api_services_v1_managed_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_managed_group_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_managed_group_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteManagedGroupResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/policy_service.proto
@@ -802,7 +802,7 @@ func file_controller_api_services_v1_policy_service_proto_rawDescGZIP() []byte {
}
var file_controller_api_services_v1_policy_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_controller_api_services_v1_policy_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_policy_service_proto_goTypes = []any{
(*GetPolicyRequest)(nil), // 0: controller.api.services.v1.GetPolicyRequest
(*GetPolicyResponse)(nil), // 1: controller.api.services.v1.GetPolicyResponse
(*ListPoliciesRequest)(nil), // 2: controller.api.services.v1.ListPoliciesRequest
@@ -847,7 +847,7 @@ func file_controller_api_services_v1_policy_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_policy_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_policy_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetPolicyRequest); i {
case 0:
return &v.state
@@ -859,7 +859,7 @@ func file_controller_api_services_v1_policy_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_policy_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_policy_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetPolicyResponse); i {
case 0:
return &v.state
@@ -871,7 +871,7 @@ func file_controller_api_services_v1_policy_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_policy_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_policy_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListPoliciesRequest); i {
case 0:
return &v.state
@@ -883,7 +883,7 @@ func file_controller_api_services_v1_policy_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_policy_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_policy_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListPoliciesResponse); i {
case 0:
return &v.state
@@ -895,7 +895,7 @@ func file_controller_api_services_v1_policy_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_policy_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_policy_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreatePolicyRequest); i {
case 0:
return &v.state
@@ -907,7 +907,7 @@ func file_controller_api_services_v1_policy_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_policy_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_policy_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreatePolicyResponse); i {
case 0:
return &v.state
@@ -919,7 +919,7 @@ func file_controller_api_services_v1_policy_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_policy_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_policy_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdatePolicyRequest); i {
case 0:
return &v.state
@@ -931,7 +931,7 @@ func file_controller_api_services_v1_policy_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_policy_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_policy_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdatePolicyResponse); i {
case 0:
return &v.state
@@ -943,7 +943,7 @@ func file_controller_api_services_v1_policy_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_policy_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_policy_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeletePolicyRequest); i {
case 0:
return &v.state
@@ -955,7 +955,7 @@ func file_controller_api_services_v1_policy_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_policy_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_policy_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeletePolicyResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/role_service.proto
@@ -2045,7 +2045,7 @@ func file_controller_api_services_v1_role_service_proto_rawDescGZIP() []byte {
}
var file_controller_api_services_v1_role_service_proto_msgTypes = make([]protoimpl.MessageInfo, 28)
var file_controller_api_services_v1_role_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_role_service_proto_goTypes = []any{
(*GetRoleRequest)(nil), // 0: controller.api.services.v1.GetRoleRequest
(*GetRoleResponse)(nil), // 1: controller.api.services.v1.GetRoleResponse
(*ListRolesRequest)(nil), // 2: controller.api.services.v1.ListRolesRequest
@@ -2135,7 +2135,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_role_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetRoleRequest); i {
case 0:
return &v.state
@@ -2147,7 +2147,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetRoleResponse); i {
case 0:
return &v.state
@@ -2159,7 +2159,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListRolesRequest); i {
case 0:
return &v.state
@@ -2171,7 +2171,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListRolesResponse); i {
case 0:
return &v.state
@@ -2183,7 +2183,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateRoleRequest); i {
case 0:
return &v.state
@@ -2195,7 +2195,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateRoleResponse); i {
case 0:
return &v.state
@@ -2207,7 +2207,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateRoleRequest); i {
case 0:
return &v.state
@@ -2219,7 +2219,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateRoleResponse); i {
case 0:
return &v.state
@@ -2231,7 +2231,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteRoleRequest); i {
case 0:
return &v.state
@@ -2243,7 +2243,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteRoleResponse); i {
case 0:
return &v.state
@@ -2255,7 +2255,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*AddRolePrincipalsRequest); i {
case 0:
return &v.state
@@ -2267,7 +2267,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*AddRolePrincipalsResponse); i {
case 0:
return &v.state
@@ -2279,7 +2279,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*SetRolePrincipalsRequest); i {
case 0:
return &v.state
@@ -2291,7 +2291,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*SetRolePrincipalsResponse); i {
case 0:
return &v.state
@@ -2303,7 +2303,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[14].Exporter = func(v any, i int) any {
switch v := v.(*RemoveRolePrincipalsRequest); i {
case 0:
return &v.state
@@ -2315,7 +2315,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[15].Exporter = func(v any, i int) any {
switch v := v.(*RemoveRolePrincipalsResponse); i {
case 0:
return &v.state
@@ -2327,7 +2327,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[16].Exporter = func(v any, i int) any {
switch v := v.(*AddRoleGrantsRequest); i {
case 0:
return &v.state
@@ -2339,7 +2339,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[17].Exporter = func(v any, i int) any {
switch v := v.(*AddRoleGrantsResponse); i {
case 0:
return &v.state
@@ -2351,7 +2351,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[18].Exporter = func(v any, i int) any {
switch v := v.(*SetRoleGrantsRequest); i {
case 0:
return &v.state
@@ -2363,7 +2363,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[19].Exporter = func(v any, i int) any {
switch v := v.(*SetRoleGrantsResponse); i {
case 0:
return &v.state
@@ -2375,7 +2375,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[20].Exporter = func(v any, i int) any {
switch v := v.(*RemoveRoleGrantsRequest); i {
case 0:
return &v.state
@@ -2387,7 +2387,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[21].Exporter = func(v any, i int) any {
switch v := v.(*RemoveRoleGrantsResponse); i {
case 0:
return &v.state
@@ -2399,7 +2399,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[22].Exporter = func(v any, i int) any {
switch v := v.(*AddRoleGrantScopesRequest); i {
case 0:
return &v.state
@@ -2411,7 +2411,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[23].Exporter = func(v any, i int) any {
switch v := v.(*AddRoleGrantScopesResponse); i {
case 0:
return &v.state
@@ -2423,7 +2423,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[24].Exporter = func(v any, i int) any {
switch v := v.(*SetRoleGrantScopesRequest); i {
case 0:
return &v.state
@@ -2435,7 +2435,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[25].Exporter = func(v any, i int) any {
switch v := v.(*SetRoleGrantScopesResponse); i {
case 0:
return &v.state
@@ -2447,7 +2447,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[26].Exporter = func(v any, i int) any {
switch v := v.(*RemoveRoleGrantScopesRequest); i {
case 0:
return &v.state
@@ -2459,7 +2459,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[27].Exporter = func(v any, i int) any {
switch v := v.(*RemoveRoleGrantScopesResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/scope_service.proto
@@ -1584,7 +1584,7 @@ func file_controller_api_services_v1_scope_service_proto_rawDescGZIP() []byte {
}
var file_controller_api_services_v1_scope_service_proto_msgTypes = make([]protoimpl.MessageInfo, 22)
var file_controller_api_services_v1_scope_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_scope_service_proto_goTypes = []any{
(*GetScopeRequest)(nil), // 0: controller.api.services.v1.GetScopeRequest
(*GetScopeResponse)(nil), // 1: controller.api.services.v1.GetScopeResponse
(*ListScopesRequest)(nil), // 2: controller.api.services.v1.ListScopesRequest
@@ -1659,7 +1659,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_scope_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetScopeRequest); i {
case 0:
return &v.state
@@ -1671,7 +1671,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetScopeResponse); i {
case 0:
return &v.state
@@ -1683,7 +1683,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListScopesRequest); i {
case 0:
return &v.state
@@ -1695,7 +1695,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListScopesResponse); i {
case 0:
return &v.state
@@ -1707,7 +1707,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateScopeRequest); i {
case 0:
return &v.state
@@ -1719,7 +1719,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateScopeResponse); i {
case 0:
return &v.state
@@ -1731,7 +1731,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateScopeRequest); i {
case 0:
return &v.state
@@ -1743,7 +1743,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateScopeResponse); i {
case 0:
return &v.state
@@ -1755,7 +1755,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteScopeRequest); i {
case 0:
return &v.state
@@ -1767,7 +1767,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteScopeResponse); i {
case 0:
return &v.state
@@ -1779,7 +1779,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*ListKeysRequest); i {
case 0:
return &v.state
@@ -1791,7 +1791,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*ListKeysResponse); i {
case 0:
return &v.state
@@ -1803,7 +1803,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*RotateKeysRequest); i {
case 0:
return &v.state
@@ -1815,7 +1815,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*RotateKeysResponse); i {
case 0:
return &v.state
@@ -1827,7 +1827,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[14].Exporter = func(v any, i int) any {
switch v := v.(*ListKeyVersionDestructionJobsRequest); i {
case 0:
return &v.state
@@ -1839,7 +1839,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[15].Exporter = func(v any, i int) any {
switch v := v.(*ListKeyVersionDestructionJobsResponse); i {
case 0:
return &v.state
@@ -1851,7 +1851,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[16].Exporter = func(v any, i int) any {
switch v := v.(*DestroyKeyVersionRequest); i {
case 0:
return &v.state
@@ -1863,7 +1863,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[17].Exporter = func(v any, i int) any {
switch v := v.(*DestroyKeyVersionResponse); i {
case 0:
return &v.state
@@ -1875,7 +1875,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[18].Exporter = func(v any, i int) any {
switch v := v.(*AttachStoragePolicyRequest); i {
case 0:
return &v.state
@@ -1887,7 +1887,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[19].Exporter = func(v any, i int) any {
switch v := v.(*AttachStoragePolicyResponse); i {
case 0:
return &v.state
@@ -1899,7 +1899,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[20].Exporter = func(v any, i int) any {
switch v := v.(*DetachStoragePolicyRequest); i {
case 0:
return &v.state
@@ -1911,7 +1911,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[21].Exporter = func(v any, i int) any {
switch v := v.(*DetachStoragePolicyResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/session_recording_service.proto
@@ -809,7 +809,7 @@ func file_controller_api_services_v1_session_recording_service_proto_rawDescGZIP
}
var file_controller_api_services_v1_session_recording_service_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_controller_api_services_v1_session_recording_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_session_recording_service_proto_goTypes = []any{
(*GetSessionRecordingRequest)(nil), // 0: controller.api.services.v1.GetSessionRecordingRequest
(*GetSessionRecordingResponse)(nil), // 1: controller.api.services.v1.GetSessionRecordingResponse
(*ListSessionRecordingsRequest)(nil), // 2: controller.api.services.v1.ListSessionRecordingsRequest
@@ -849,7 +849,7 @@ func file_controller_api_services_v1_session_recording_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_session_recording_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_recording_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetSessionRecordingRequest); i {
case 0:
return &v.state
@@ -861,7 +861,7 @@ func file_controller_api_services_v1_session_recording_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_session_recording_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_recording_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetSessionRecordingResponse); i {
case 0:
return &v.state
@@ -873,7 +873,7 @@ func file_controller_api_services_v1_session_recording_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_session_recording_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_recording_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListSessionRecordingsRequest); i {
case 0:
return &v.state
@@ -885,7 +885,7 @@ func file_controller_api_services_v1_session_recording_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_session_recording_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_recording_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListSessionRecordingsResponse); i {
case 0:
return &v.state
@@ -897,7 +897,7 @@ func file_controller_api_services_v1_session_recording_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_session_recording_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_recording_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*DownloadRequest); i {
case 0:
return &v.state
@@ -909,7 +909,7 @@ func file_controller_api_services_v1_session_recording_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_session_recording_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_recording_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*ReApplyStoragePolicyRequest); i {
case 0:
return &v.state
@@ -921,7 +921,7 @@ func file_controller_api_services_v1_session_recording_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_session_recording_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_recording_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*ReApplyStoragePolicyResponse); i {
case 0:
return &v.state
@@ -933,7 +933,7 @@ func file_controller_api_services_v1_session_recording_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_session_recording_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_recording_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*DeleteSessionRecordingRequest); i {
case 0:
return &v.state
@@ -945,7 +945,7 @@ func file_controller_api_services_v1_session_recording_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_session_recording_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_recording_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteSessionRecordingResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/session_service.proto
@@ -578,7 +578,7 @@ func file_controller_api_services_v1_session_service_proto_rawDescGZIP() []byte
}
var file_controller_api_services_v1_session_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_controller_api_services_v1_session_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_session_service_proto_goTypes = []any{
(*GetSessionRequest)(nil), // 0: controller.api.services.v1.GetSessionRequest
(*GetSessionResponse)(nil), // 1: controller.api.services.v1.GetSessionResponse
(*ListSessionsRequest)(nil), // 2: controller.api.services.v1.ListSessionsRequest
@@ -610,7 +610,7 @@ func file_controller_api_services_v1_session_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_session_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetSessionRequest); i {
case 0:
return &v.state
@@ -622,7 +622,7 @@ func file_controller_api_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_session_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetSessionResponse); i {
case 0:
return &v.state
@@ -634,7 +634,7 @@ func file_controller_api_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_session_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListSessionsRequest); i {
case 0:
return &v.state
@@ -646,7 +646,7 @@ func file_controller_api_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_session_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListSessionsResponse); i {
case 0:
return &v.state
@@ -658,7 +658,7 @@ func file_controller_api_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_session_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CancelSessionRequest); i {
case 0:
return &v.state
@@ -670,7 +670,7 @@ func file_controller_api_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_session_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CancelSessionResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/storage_bucket_service.proto
@@ -840,7 +840,7 @@ func file_controller_api_services_v1_storage_bucket_service_proto_rawDescGZIP()
}
var file_controller_api_services_v1_storage_bucket_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_controller_api_services_v1_storage_bucket_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_storage_bucket_service_proto_goTypes = []any{
(*GetStorageBucketRequest)(nil), // 0: controller.api.services.v1.GetStorageBucketRequest
(*GetStorageBucketResponse)(nil), // 1: controller.api.services.v1.GetStorageBucketResponse
(*ListStorageBucketsRequest)(nil), // 2: controller.api.services.v1.ListStorageBucketsRequest
@@ -885,7 +885,7 @@ func file_controller_api_services_v1_storage_bucket_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetStorageBucketRequest); i {
case 0:
return &v.state
@@ -897,7 +897,7 @@ func file_controller_api_services_v1_storage_bucket_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetStorageBucketResponse); i {
case 0:
return &v.state
@@ -909,7 +909,7 @@ func file_controller_api_services_v1_storage_bucket_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListStorageBucketsRequest); i {
case 0:
return &v.state
@@ -921,7 +921,7 @@ func file_controller_api_services_v1_storage_bucket_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListStorageBucketsResponse); i {
case 0:
return &v.state
@@ -933,7 +933,7 @@ func file_controller_api_services_v1_storage_bucket_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateStorageBucketRequest); i {
case 0:
return &v.state
@@ -945,7 +945,7 @@ func file_controller_api_services_v1_storage_bucket_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateStorageBucketResponse); i {
case 0:
return &v.state
@@ -957,7 +957,7 @@ func file_controller_api_services_v1_storage_bucket_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateStorageBucketRequest); i {
case 0:
return &v.state
@@ -969,7 +969,7 @@ func file_controller_api_services_v1_storage_bucket_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateStorageBucketResponse); i {
case 0:
return &v.state
@@ -981,7 +981,7 @@ func file_controller_api_services_v1_storage_bucket_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteStorageBucketRequest); i {
case 0:
return &v.state
@@ -993,7 +993,7 @@ func file_controller_api_services_v1_storage_bucket_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteStorageBucketResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/target_service.proto
@@ -1901,7 +1901,7 @@ func file_controller_api_services_v1_target_service_proto_rawDescGZIP() []byte {
}
var file_controller_api_services_v1_target_service_proto_msgTypes = make([]protoimpl.MessageInfo, 24)
var file_controller_api_services_v1_target_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_target_service_proto_goTypes = []any{
(*GetTargetRequest)(nil), // 0: controller.api.services.v1.GetTargetRequest
(*GetTargetResponse)(nil), // 1: controller.api.services.v1.GetTargetResponse
(*ListTargetsRequest)(nil), // 2: controller.api.services.v1.ListTargetsRequest
@@ -1982,7 +1982,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_target_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetTargetRequest); i {
case 0:
return &v.state
@@ -1994,7 +1994,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetTargetResponse); i {
case 0:
return &v.state
@@ -2006,7 +2006,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListTargetsRequest); i {
case 0:
return &v.state
@@ -2018,7 +2018,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListTargetsResponse); i {
case 0:
return &v.state
@@ -2030,7 +2030,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateTargetRequest); i {
case 0:
return &v.state
@@ -2042,7 +2042,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateTargetResponse); i {
case 0:
return &v.state
@@ -2054,7 +2054,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateTargetRequest); i {
case 0:
return &v.state
@@ -2066,7 +2066,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateTargetResponse); i {
case 0:
return &v.state
@@ -2078,7 +2078,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteTargetRequest); i {
case 0:
return &v.state
@@ -2090,7 +2090,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteTargetResponse); i {
case 0:
return &v.state
@@ -2102,7 +2102,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*AddTargetHostSourcesRequest); i {
case 0:
return &v.state
@@ -2114,7 +2114,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*AddTargetHostSourcesResponse); i {
case 0:
return &v.state
@@ -2126,7 +2126,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*SetTargetHostSourcesRequest); i {
case 0:
return &v.state
@@ -2138,7 +2138,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*SetTargetHostSourcesResponse); i {
case 0:
return &v.state
@@ -2150,7 +2150,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[14].Exporter = func(v any, i int) any {
switch v := v.(*RemoveTargetHostSourcesRequest); i {
case 0:
return &v.state
@@ -2162,7 +2162,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[15].Exporter = func(v any, i int) any {
switch v := v.(*RemoveTargetHostSourcesResponse); i {
case 0:
return &v.state
@@ -2174,7 +2174,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[16].Exporter = func(v any, i int) any {
switch v := v.(*AddTargetCredentialSourcesRequest); i {
case 0:
return &v.state
@@ -2186,7 +2186,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[17].Exporter = func(v any, i int) any {
switch v := v.(*AddTargetCredentialSourcesResponse); i {
case 0:
return &v.state
@@ -2198,7 +2198,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[18].Exporter = func(v any, i int) any {
switch v := v.(*SetTargetCredentialSourcesRequest); i {
case 0:
return &v.state
@@ -2210,7 +2210,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[19].Exporter = func(v any, i int) any {
switch v := v.(*SetTargetCredentialSourcesResponse); i {
case 0:
return &v.state
@@ -2222,7 +2222,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[20].Exporter = func(v any, i int) any {
switch v := v.(*RemoveTargetCredentialSourcesRequest); i {
case 0:
return &v.state
@@ -2234,7 +2234,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[21].Exporter = func(v any, i int) any {
switch v := v.(*RemoveTargetCredentialSourcesResponse); i {
case 0:
return &v.state
@@ -2246,7 +2246,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[22].Exporter = func(v any, i int) any {
switch v := v.(*AuthorizeSessionRequest); i {
case 0:
return &v.state
@@ -2258,7 +2258,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[23].Exporter = func(v any, i int) any {
switch v := v.(*AuthorizeSessionResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/user_service.proto
@@ -1432,7 +1432,7 @@ func file_controller_api_services_v1_user_service_proto_rawDescGZIP() []byte {
}
var file_controller_api_services_v1_user_service_proto_msgTypes = make([]protoimpl.MessageInfo, 18)
var file_controller_api_services_v1_user_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_user_service_proto_goTypes = []any{
(*GetUserRequest)(nil), // 0: controller.api.services.v1.GetUserRequest
(*GetUserResponse)(nil), // 1: controller.api.services.v1.GetUserResponse
(*ListUsersRequest)(nil), // 2: controller.api.services.v1.ListUsersRequest
@@ -1498,7 +1498,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_user_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetUserRequest); i {
case 0:
return &v.state
@@ -1510,7 +1510,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetUserResponse); i {
case 0:
return &v.state
@@ -1522,7 +1522,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListUsersRequest); i {
case 0:
return &v.state
@@ -1534,7 +1534,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListUsersResponse); i {
case 0:
return &v.state
@@ -1546,7 +1546,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateUserRequest); i {
case 0:
return &v.state
@@ -1558,7 +1558,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateUserResponse); i {
case 0:
return &v.state
@@ -1570,7 +1570,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateUserRequest); i {
case 0:
return &v.state
@@ -1582,7 +1582,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateUserResponse); i {
case 0:
return &v.state
@@ -1594,7 +1594,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteUserRequest); i {
case 0:
return &v.state
@@ -1606,7 +1606,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteUserResponse); i {
case 0:
return &v.state
@@ -1618,7 +1618,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*AddUserAccountsRequest); i {
case 0:
return &v.state
@@ -1630,7 +1630,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*AddUserAccountsResponse); i {
case 0:
return &v.state
@@ -1642,7 +1642,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*SetUserAccountsRequest); i {
case 0:
return &v.state
@@ -1654,7 +1654,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*SetUserAccountsResponse); i {
case 0:
return &v.state
@@ -1666,7 +1666,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[14].Exporter = func(v any, i int) any {
switch v := v.(*RemoveUserAccountsRequest); i {
case 0:
return &v.state
@@ -1678,7 +1678,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[15].Exporter = func(v any, i int) any {
switch v := v.(*RemoveUserAccountsResponse); i {
case 0:
return &v.state
@@ -1690,7 +1690,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[16].Exporter = func(v any, i int) any {
switch v := v.(*ListResolvableAliasesRequest); i {
case 0:
return &v.state
@@ -1702,7 +1702,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[17].Exporter = func(v any, i int) any {
switch v := v.(*ListResolvableAliasesResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/worker_service.proto
@@ -1510,7 +1510,7 @@ func file_controller_api_services_v1_worker_service_proto_rawDescGZIP() []byte {
}
var file_controller_api_services_v1_worker_service_proto_msgTypes = make([]protoimpl.MessageInfo, 25)
var file_controller_api_services_v1_worker_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_worker_service_proto_goTypes = []any{
(*GetWorkerRequest)(nil), // 0: controller.api.services.v1.GetWorkerRequest
(*GetWorkerResponse)(nil), // 1: controller.api.services.v1.GetWorkerResponse
(*ListWorkersRequest)(nil), // 2: controller.api.services.v1.ListWorkersRequest
@@ -1597,7 +1597,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_worker_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetWorkerRequest); i {
case 0:
return &v.state
@@ -1609,7 +1609,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetWorkerResponse); i {
case 0:
return &v.state
@@ -1621,7 +1621,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListWorkersRequest); i {
case 0:
return &v.state
@@ -1633,7 +1633,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListWorkersResponse); i {
case 0:
return &v.state
@@ -1645,7 +1645,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateWorkerLedRequest); i {
case 0:
return &v.state
@@ -1657,7 +1657,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateWorkerLedResponse); i {
case 0:
return &v.state
@@ -1669,7 +1669,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*CreateControllerLedRequest); i {
case 0:
return &v.state
@@ -1681,7 +1681,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*CreateControllerLedResponse); i {
case 0:
return &v.state
@@ -1693,7 +1693,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*UpdateWorkerRequest); i {
case 0:
return &v.state
@@ -1705,7 +1705,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*UpdateWorkerResponse); i {
case 0:
return &v.state
@@ -1717,7 +1717,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*DeleteWorkerRequest); i {
case 0:
return &v.state
@@ -1729,7 +1729,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*DeleteWorkerResponse); i {
case 0:
return &v.state
@@ -1741,7 +1741,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*AddWorkerTagsRequest); i {
case 0:
return &v.state
@@ -1753,7 +1753,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*AddWorkerTagsResponse); i {
case 0:
return &v.state
@@ -1765,7 +1765,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[14].Exporter = func(v any, i int) any {
switch v := v.(*SetWorkerTagsRequest); i {
case 0:
return &v.state
@@ -1777,7 +1777,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[15].Exporter = func(v any, i int) any {
switch v := v.(*SetWorkerTagsResponse); i {
case 0:
return &v.state
@@ -1789,7 +1789,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[16].Exporter = func(v any, i int) any {
switch v := v.(*RemoveWorkerTagsRequest); i {
case 0:
return &v.state
@@ -1801,7 +1801,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[17].Exporter = func(v any, i int) any {
switch v := v.(*RemoveWorkerTagsResponse); i {
case 0:
return &v.state
@@ -1813,7 +1813,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[18].Exporter = func(v any, i int) any {
switch v := v.(*ReadCertificateAuthorityRequest); i {
case 0:
return &v.state
@@ -1825,7 +1825,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[19].Exporter = func(v any, i int) any {
switch v := v.(*ReadCertificateAuthorityResponse); i {
case 0:
return &v.state
@@ -1837,7 +1837,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[20].Exporter = func(v any, i int) any {
switch v := v.(*ReinitializeCertificateAuthorityRequest); i {
case 0:
return &v.state
@@ -1849,7 +1849,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[21].Exporter = func(v any, i int) any {
switch v := v.(*ReinitializeCertificateAuthorityResponse); i {
case 0:
return &v.state
+3 -3
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/auth/v1/auth.proto
@@ -247,7 +247,7 @@ func file_controller_auth_v1_auth_proto_rawDescGZIP() []byte {
}
var file_controller_auth_v1_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_controller_auth_v1_auth_proto_goTypes = []interface{}{
var file_controller_auth_v1_auth_proto_goTypes = []any{
(*RequestInfo)(nil), // 0: controller.auth.v1.RequestInfo
}
var file_controller_auth_v1_auth_proto_depIdxs = []int32{
@@ -264,7 +264,7 @@ func file_controller_auth_v1_auth_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_auth_v1_auth_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_auth_v1_auth_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*RequestInfo); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/servers/v1/servers.proto
@@ -290,7 +290,7 @@ func file_controller_servers_v1_servers_proto_rawDescGZIP() []byte {
}
var file_controller_servers_v1_servers_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_controller_servers_v1_servers_proto_goTypes = []interface{}{
var file_controller_servers_v1_servers_proto_goTypes = []any{
(*TagPair)(nil), // 0: controller.servers.v1.TagPair
(*ServerWorkerStatus)(nil), // 1: controller.servers.v1.ServerWorkerStatus
nil, // 2: controller.servers.v1.ServerWorkerStatus.StorageBucketCredentialStatesEntry
@@ -313,7 +313,7 @@ func file_controller_servers_v1_servers_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_servers_v1_servers_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_v1_servers_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*TagPair); i {
case 0:
return &v.state
@@ -325,7 +325,7 @@ func file_controller_servers_v1_servers_proto_init() {
return nil
}
}
file_controller_servers_v1_servers_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_v1_servers_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*ServerWorkerStatus); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/servers/services/v1/credential.proto
@@ -382,7 +382,7 @@ func file_controller_servers_services_v1_credential_proto_rawDescGZIP() []byte {
}
var file_controller_servers_services_v1_credential_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_controller_servers_services_v1_credential_proto_goTypes = []interface{}{
var file_controller_servers_services_v1_credential_proto_goTypes = []any{
(*Credential)(nil), // 0: controller.servers.services.v1.Credential
(*UsernamePassword)(nil), // 1: controller.servers.services.v1.UsernamePassword
(*SshPrivateKey)(nil), // 2: controller.servers.services.v1.SshPrivateKey
@@ -405,7 +405,7 @@ func file_controller_servers_services_v1_credential_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_servers_services_v1_credential_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_credential_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*Credential); i {
case 0:
return &v.state
@@ -417,7 +417,7 @@ func file_controller_servers_services_v1_credential_proto_init() {
return nil
}
}
file_controller_servers_services_v1_credential_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_credential_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*UsernamePassword); i {
case 0:
return &v.state
@@ -429,7 +429,7 @@ func file_controller_servers_services_v1_credential_proto_init() {
return nil
}
}
file_controller_servers_services_v1_credential_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_credential_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*SshPrivateKey); i {
case 0:
return &v.state
@@ -441,7 +441,7 @@ func file_controller_servers_services_v1_credential_proto_init() {
return nil
}
}
file_controller_servers_services_v1_credential_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_credential_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*SshCertificate); i {
case 0:
return &v.state
@@ -454,7 +454,7 @@ func file_controller_servers_services_v1_credential_proto_init() {
}
}
}
file_controller_servers_services_v1_credential_proto_msgTypes[0].OneofWrappers = []interface{}{
file_controller_servers_services_v1_credential_proto_msgTypes[0].OneofWrappers = []any{
(*Credential_UsernamePassword)(nil),
(*Credential_SshPrivateKey)(nil),
(*Credential_SshCertificate)(nil),
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/servers/services/v1/server_coordination_service.proto
@@ -1498,7 +1498,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_rawDe
var file_controller_servers_services_v1_server_coordination_service_proto_enumTypes = make([]protoimpl.EnumInfo, 6)
var file_controller_servers_services_v1_server_coordination_service_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
var file_controller_servers_services_v1_server_coordination_service_proto_goTypes = []interface{}{
var file_controller_servers_services_v1_server_coordination_service_proto_goTypes = []any{
(CONNECTIONSTATUS)(0), // 0: controller.servers.services.v1.CONNECTIONSTATUS
(SESSIONSTATUS)(0), // 1: controller.servers.services.v1.SESSIONSTATUS
(SessionProcessingError)(0), // 2: controller.servers.services.v1.SessionProcessingError
@@ -1559,7 +1559,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
return
}
if !protoimpl.UnsafeEnabled {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*Connection); i {
case 0:
return &v.state
@@ -1571,7 +1571,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
return nil
}
}
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*SessionJobInfo); i {
case 0:
return &v.state
@@ -1583,7 +1583,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
return nil
}
}
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*MonitorSessionJobInfo); i {
case 0:
return &v.state
@@ -1595,7 +1595,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
return nil
}
}
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*Job); i {
case 0:
return &v.state
@@ -1607,7 +1607,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
return nil
}
}
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*JobStatus); i {
case 0:
return &v.state
@@ -1619,7 +1619,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
return nil
}
}
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*UpstreamServer); i {
case 0:
return &v.state
@@ -1631,7 +1631,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
return nil
}
}
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*StatusRequest); i {
case 0:
return &v.state
@@ -1643,7 +1643,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
return nil
}
}
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*JobChangeRequest); i {
case 0:
return &v.state
@@ -1655,7 +1655,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
return nil
}
}
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*AuthorizedWorkerList); i {
case 0:
return &v.state
@@ -1667,7 +1667,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
return nil
}
}
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*AuthorizedDownstreamWorkerList); i {
case 0:
return &v.state
@@ -1679,7 +1679,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
return nil
}
}
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*StatusResponse); i {
case 0:
return &v.state
@@ -1691,7 +1691,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
return nil
}
}
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*WorkerInfo); i {
case 0:
return &v.state
@@ -1703,7 +1703,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
return nil
}
}
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*ListHcpbWorkersRequest); i {
case 0:
return &v.state
@@ -1715,7 +1715,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
return nil
}
}
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*ListHcpbWorkersResponse); i {
case 0:
return &v.state
@@ -1728,7 +1728,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
}
}
}
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[3].OneofWrappers = []interface{}{
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[3].OneofWrappers = []any{
(*Job_SessionInfo)(nil),
(*Job_MonitorSessionInfo)(nil),
}
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/servers/services/v1/session_service.proto
@@ -1213,7 +1213,7 @@ func file_controller_servers_services_v1_session_service_proto_rawDescGZIP() []b
}
var file_controller_servers_services_v1_session_service_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
var file_controller_servers_services_v1_session_service_proto_goTypes = []interface{}{
var file_controller_servers_services_v1_session_service_proto_goTypes = []any{
(*LookupSessionRequest)(nil), // 0: controller.servers.services.v1.LookupSessionRequest
(*LookupSessionResponse)(nil), // 1: controller.servers.services.v1.LookupSessionResponse
(*ActivateSessionRequest)(nil), // 2: controller.servers.services.v1.ActivateSessionRequest
@@ -1276,7 +1276,7 @@ func file_controller_servers_services_v1_session_service_proto_init() {
file_controller_servers_services_v1_credential_proto_init()
file_controller_servers_services_v1_server_coordination_service_proto_init()
if !protoimpl.UnsafeEnabled {
file_controller_servers_services_v1_session_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_session_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*LookupSessionRequest); i {
case 0:
return &v.state
@@ -1288,7 +1288,7 @@ func file_controller_servers_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_session_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_session_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*LookupSessionResponse); i {
case 0:
return &v.state
@@ -1300,7 +1300,7 @@ func file_controller_servers_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_session_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_session_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ActivateSessionRequest); i {
case 0:
return &v.state
@@ -1312,7 +1312,7 @@ func file_controller_servers_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_session_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_session_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ActivateSessionResponse); i {
case 0:
return &v.state
@@ -1324,7 +1324,7 @@ func file_controller_servers_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_session_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_session_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CancelSessionRequest); i {
case 0:
return &v.state
@@ -1336,7 +1336,7 @@ func file_controller_servers_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_session_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_session_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CancelSessionResponse); i {
case 0:
return &v.state
@@ -1348,7 +1348,7 @@ func file_controller_servers_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_session_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_session_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*AuthorizeConnectionRequest); i {
case 0:
return &v.state
@@ -1360,7 +1360,7 @@ func file_controller_servers_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_session_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_session_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*AuthorizeConnectionResponse); i {
case 0:
return &v.state
@@ -1372,7 +1372,7 @@ func file_controller_servers_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_session_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_session_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*ConnectConnectionRequest); i {
case 0:
return &v.state
@@ -1384,7 +1384,7 @@ func file_controller_servers_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_session_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_session_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*ConnectConnectionResponse); i {
case 0:
return &v.state
@@ -1396,7 +1396,7 @@ func file_controller_servers_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_session_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_session_service_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*CloseConnectionRequestData); i {
case 0:
return &v.state
@@ -1408,7 +1408,7 @@ func file_controller_servers_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_session_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_session_service_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*CloseConnectionRequest); i {
case 0:
return &v.state
@@ -1420,7 +1420,7 @@ func file_controller_servers_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_session_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_session_service_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*CloseConnectionResponseData); i {
case 0:
return &v.state
@@ -1432,7 +1432,7 @@ func file_controller_servers_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_session_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_session_service_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*CloseConnectionResponse); i {
case 0:
return &v.state
@@ -2,7 +2,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/servers/services/v1/upstream_message_service.proto
@@ -452,7 +452,7 @@ func file_controller_servers_services_v1_upstream_message_service_proto_rawDescG
var file_controller_servers_services_v1_upstream_message_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_controller_servers_services_v1_upstream_message_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_controller_servers_services_v1_upstream_message_service_proto_goTypes = []interface{}{
var file_controller_servers_services_v1_upstream_message_service_proto_goTypes = []any{
(MsgType)(0), // 0: controller.servers.services.v1.MsgType
(*UpstreamMessageRequest)(nil), // 1: controller.servers.services.v1.UpstreamMessageRequest
(*UpstreamMessageResponse)(nil), // 2: controller.servers.services.v1.UpstreamMessageResponse
@@ -476,7 +476,7 @@ func file_controller_servers_services_v1_upstream_message_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*UpstreamMessageRequest); i {
case 0:
return &v.state
@@ -488,7 +488,7 @@ func file_controller_servers_services_v1_upstream_message_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*UpstreamMessageResponse); i {
case 0:
return &v.state
@@ -500,7 +500,7 @@ func file_controller_servers_services_v1_upstream_message_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*EchoUpstreamMessageRequest); i {
case 0:
return &v.state
@@ -512,7 +512,7 @@ func file_controller_servers_services_v1_upstream_message_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*EchoUpstreamMessageResponse); i {
case 0:
return &v.state
@@ -525,11 +525,11 @@ func file_controller_servers_services_v1_upstream_message_service_proto_init() {
}
}
}
file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[0].OneofWrappers = []interface{}{
file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[0].OneofWrappers = []any{
(*UpstreamMessageRequest_Ct)(nil),
(*UpstreamMessageRequest_Pt)(nil),
}
file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[1].OneofWrappers = []interface{}{
file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[1].OneofWrappers = []any{
(*UpstreamMessageResponse_Ct)(nil),
(*UpstreamMessageResponse_Pt)(nil),
}
+3 -3
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/tokens/v1/tokens.proto
@@ -109,7 +109,7 @@ func file_controller_tokens_v1_tokens_proto_rawDescGZIP() []byte {
}
var file_controller_tokens_v1_tokens_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_controller_tokens_v1_tokens_proto_goTypes = []interface{}{
var file_controller_tokens_v1_tokens_proto_goTypes = []any{
(*S1TokenInfo)(nil), // 0: controller.tokens.v1.S1TokenInfo
}
var file_controller_tokens_v1_tokens_proto_depIdxs = []int32{
@@ -126,7 +126,7 @@ func file_controller_tokens_v1_tokens_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_tokens_v1_tokens_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_tokens_v1_tokens_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*S1TokenInfo); i {
case 0:
return &v.state
+5 -5
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: errors/v1/errors.proto
@@ -254,7 +254,7 @@ func file_errors_v1_errors_proto_rawDescGZIP() []byte {
}
var file_errors_v1_errors_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_errors_v1_errors_proto_goTypes = []interface{}{
var file_errors_v1_errors_proto_goTypes = []any{
(*Err)(nil), // 0: errors.v1.Err
(*ApiError)(nil), // 1: errors.v1.ApiError
(*api.Error)(nil), // 2: controller.api.v1.Error
@@ -275,7 +275,7 @@ func file_errors_v1_errors_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_errors_v1_errors_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_errors_v1_errors_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*Err); i {
case 0:
return &v.state
@@ -287,7 +287,7 @@ func file_errors_v1_errors_proto_init() {
return nil
}
}
file_errors_v1_errors_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_errors_v1_errors_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*ApiError); i {
case 0:
return &v.state
@@ -300,7 +300,7 @@ func file_errors_v1_errors_proto_init() {
}
}
}
file_errors_v1_errors_proto_msgTypes[0].OneofWrappers = []interface{}{
file_errors_v1_errors_proto_msgTypes[0].OneofWrappers = []any{
(*Err_Err)(nil),
(*Err_StdError)(nil),
(*Err_None)(nil),
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: ops/services/v1/health_service.proto
@@ -169,7 +169,7 @@ func file_ops_services_v1_health_service_proto_rawDescGZIP() []byte {
}
var file_ops_services_v1_health_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_ops_services_v1_health_service_proto_goTypes = []interface{}{
var file_ops_services_v1_health_service_proto_goTypes = []any{
(*GetHealthRequest)(nil), // 0: ops.services.v1.GetHealthRequest
(*GetHealthResponse)(nil), // 1: ops.services.v1.GetHealthResponse
(*health.HealthInfo)(nil), // 2: worker.health.v1.HealthInfo
@@ -191,7 +191,7 @@ func file_ops_services_v1_health_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_ops_services_v1_health_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_ops_services_v1_health_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetHealthRequest); i {
case 0:
return &v.state
@@ -203,7 +203,7 @@ func file_ops_services_v1_health_service_proto_init() {
return nil
}
}
file_ops_services_v1_health_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_ops_services_v1_health_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetHealthResponse); i {
case 0:
return &v.state
+30 -30
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: testing/attribute/v1/attribute.proto
@@ -1627,7 +1627,7 @@ func file_testing_attribute_v1_attribute_proto_rawDescGZIP() []byte {
}
var file_testing_attribute_v1_attribute_proto_msgTypes = make([]protoimpl.MessageInfo, 25)
var file_testing_attribute_v1_attribute_proto_goTypes = []interface{}{
var file_testing_attribute_v1_attribute_proto_goTypes = []any{
(*TestResource)(nil), // 0: testing.attribute.v1.TestResource
(*TestSubResourceAttributes)(nil), // 1: testing.attribute.v1.TestSubResourceAttributes
(*TestNoAttributes)(nil), // 2: testing.attribute.v1.TestNoAttributes
@@ -1698,7 +1698,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_testing_attribute_v1_attribute_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*TestResource); i {
case 0:
return &v.state
@@ -1710,7 +1710,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*TestSubResourceAttributes); i {
case 0:
return &v.state
@@ -1722,7 +1722,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*TestNoAttributes); i {
case 0:
return &v.state
@@ -1734,7 +1734,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*TestNoOneOf); i {
case 0:
return &v.state
@@ -1746,7 +1746,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*TestCustomTransformation); i {
case 0:
return &v.state
@@ -1758,7 +1758,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*TestListResourceRequest); i {
case 0:
return &v.state
@@ -1770,7 +1770,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*TestListResourceResponse); i {
case 0:
return &v.state
@@ -1782,7 +1782,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*TestGetResourceRequest); i {
case 0:
return &v.state
@@ -1794,7 +1794,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*TestGetResourceResponse); i {
case 0:
return &v.state
@@ -1806,7 +1806,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*TestCreateResourceRequest); i {
case 0:
return &v.state
@@ -1818,7 +1818,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*TestCreateResourceResponse); i {
case 0:
return &v.state
@@ -1830,7 +1830,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*TestUpdateResourceRequest); i {
case 0:
return &v.state
@@ -1842,7 +1842,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*TestUpdateResourceResponse); i {
case 0:
return &v.state
@@ -1854,7 +1854,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*TestRequestNoItem); i {
case 0:
return &v.state
@@ -1866,7 +1866,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[14].Exporter = func(v any, i int) any {
switch v := v.(*TestRequestItemNotMessage); i {
case 0:
return &v.state
@@ -1878,7 +1878,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[15].Exporter = func(v any, i int) any {
switch v := v.(*TestItemNoType); i {
case 0:
return &v.state
@@ -1890,7 +1890,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[16].Exporter = func(v any, i int) any {
switch v := v.(*TestRequestItemNoType); i {
case 0:
return &v.state
@@ -1902,7 +1902,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[17].Exporter = func(v any, i int) any {
switch v := v.(*TestNoItemAttributes); i {
case 0:
return &v.state
@@ -1914,7 +1914,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[18].Exporter = func(v any, i int) any {
switch v := v.(*TestCreateNoOneOfRequest); i {
case 0:
return &v.state
@@ -1926,7 +1926,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[19].Exporter = func(v any, i int) any {
switch v := v.(*TestUpdateNoOneOfRequest); i {
case 0:
return &v.state
@@ -1938,7 +1938,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[20].Exporter = func(v any, i int) any {
switch v := v.(*TestResponseNoItem); i {
case 0:
return &v.state
@@ -1950,7 +1950,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[21].Exporter = func(v any, i int) any {
switch v := v.(*TestResponseItemNotMessage); i {
case 0:
return &v.state
@@ -1962,7 +1962,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[22].Exporter = func(v any, i int) any {
switch v := v.(*TestResponseItemNoType); i {
case 0:
return &v.state
@@ -1974,7 +1974,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[23].Exporter = func(v any, i int) any {
switch v := v.(*TestCreateNoOneOfResponse); i {
case 0:
return &v.state
@@ -1986,7 +1986,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[24].Exporter = func(v any, i int) any {
switch v := v.(*TestUpdateNoOneOfResponse); i {
case 0:
return &v.state
@@ -1999,15 +1999,15 @@ func file_testing_attribute_v1_attribute_proto_init() {
}
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[0].OneofWrappers = []interface{}{
file_testing_attribute_v1_attribute_proto_msgTypes[0].OneofWrappers = []any{
(*TestResource_Attributes)(nil),
(*TestResource_SubResourceAttributes)(nil),
}
file_testing_attribute_v1_attribute_proto_msgTypes[4].OneofWrappers = []interface{}{
file_testing_attribute_v1_attribute_proto_msgTypes[4].OneofWrappers = []any{
(*TestCustomTransformation_Attributes)(nil),
(*TestCustomTransformation_SubResourceAttributes)(nil),
}
file_testing_attribute_v1_attribute_proto_msgTypes[17].OneofWrappers = []interface{}{
file_testing_attribute_v1_attribute_proto_msgTypes[17].OneofWrappers = []any{
(*TestNoItemAttributes_Attributes)(nil),
(*TestNoItemAttributes_SubResourceAttributes)(nil),
}
+4 -4
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: testing/event/v1/event.proto
@@ -248,7 +248,7 @@ func file_testing_event_v1_event_proto_rawDescGZIP() []byte {
}
var file_testing_event_v1_event_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_testing_event_v1_event_proto_goTypes = []interface{}{
var file_testing_event_v1_event_proto_goTypes = []any{
(*TestAuthenticateRequest)(nil), // 0: testing.event.v1.TestAuthenticateRequest
(*TestAuthenticateResponse)(nil), // 1: testing.event.v1.TestAuthenticateResponse
(*structpb.Struct)(nil), // 2: google.protobuf.Struct
@@ -271,7 +271,7 @@ func file_testing_event_v1_event_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_testing_event_v1_event_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_testing_event_v1_event_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*TestAuthenticateRequest); i {
case 0:
return &v.state
@@ -283,7 +283,7 @@ func file_testing_event_v1_event_proto_init() {
return nil
}
}
file_testing_event_v1_event_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_testing_event_v1_event_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*TestAuthenticateResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: testing/interceptor/v1/greeter.proto
@@ -159,7 +159,7 @@ func file_testing_interceptor_v1_greeter_proto_rawDescGZIP() []byte {
}
var file_testing_interceptor_v1_greeter_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_testing_interceptor_v1_greeter_proto_goTypes = []interface{}{
var file_testing_interceptor_v1_greeter_proto_goTypes = []any{
(*SayHelloRequest)(nil), // 0: testing.interceptor.v1.SayHelloRequest
(*SayHelloResponse)(nil), // 1: testing.interceptor.v1.SayHelloResponse
}
@@ -179,7 +179,7 @@ func file_testing_interceptor_v1_greeter_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_testing_interceptor_v1_greeter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_testing_interceptor_v1_greeter_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*SayHelloRequest); i {
case 0:
return &v.state
@@ -191,7 +191,7 @@ func file_testing_interceptor_v1_greeter_proto_init() {
return nil
}
}
file_testing_interceptor_v1_greeter_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_testing_interceptor_v1_greeter_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*SayHelloResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: testing/options/v1/service.proto
@@ -164,7 +164,7 @@ func file_testing_options_v1_service_proto_rawDescGZIP() []byte {
}
var file_testing_options_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_testing_options_v1_service_proto_goTypes = []interface{}{
var file_testing_options_v1_service_proto_goTypes = []any{
(*TestMethodRequest)(nil), // 0: testing.options.v1.TestMethodRequest
(*TestMethodResponse)(nil), // 1: testing.options.v1.TestMethodResponse
}
@@ -184,7 +184,7 @@ func file_testing_options_v1_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_testing_options_v1_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_testing_options_v1_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*TestMethodRequest); i {
case 0:
return &v.state
@@ -196,7 +196,7 @@ func file_testing_options_v1_service_proto_init() {
return nil
}
}
file_testing_options_v1_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_testing_options_v1_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*TestMethodResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: worker/health/v1/health_service.proto
@@ -146,7 +146,7 @@ func file_worker_health_v1_health_service_proto_rawDescGZIP() []byte {
}
var file_worker_health_v1_health_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_worker_health_v1_health_service_proto_goTypes = []interface{}{
var file_worker_health_v1_health_service_proto_goTypes = []any{
(*HealthInfo)(nil), // 0: worker.health.v1.HealthInfo
nil, // 1: worker.health.v1.HealthInfo.SessionConnectionsEntry
(*wrapperspb.UInt32Value)(nil), // 2: google.protobuf.UInt32Value
@@ -167,7 +167,7 @@ func file_worker_health_v1_health_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_worker_health_v1_health_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_worker_health_v1_health_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*HealthInfo); i {
case 0:
return &v.state
+5 -5
View File
@@ -437,7 +437,7 @@ func (r *SetSyncJob) upsertAndCleanHosts(
{
if len(hi.ipsToRemove) > 0 {
oplogMsgs := make([]*oplog.Message, 0, len(hi.ipsToRemove))
count, err := w.DeleteItems(ctx, hi.ipsToRemove.toArray(), db.NewOplogMsgs(&oplogMsgs))
count, err := w.DeleteItems(ctx, hi.ipsToRemove.toSlice(), db.NewOplogMsgs(&oplogMsgs))
if err != nil {
return err
}
@@ -452,8 +452,8 @@ func (r *SetSyncJob) upsertAndCleanHosts(
Target: db.Constraint("host_ip_address_pkey"),
Action: db.DoNothing(true),
}
if err := w.CreateItems(ctx, hi.ipsToAdd.toArray(), db.NewOplogMsgs(&oplogMsgs), db.WithOnConflict(onConflict)); err != nil {
return errors.Wrap(ctx, err, op, errors.WithMsg(fmt.Sprintf("adding ips %v for host %q", hi.ipsToAdd.toArray(), ret.GetPublicId())))
if err := w.CreateItems(ctx, hi.ipsToAdd.toSlice(), db.NewOplogMsgs(&oplogMsgs), db.WithOnConflict(onConflict)); err != nil {
return errors.Wrap(ctx, err, op, errors.WithMsg(fmt.Sprintf("adding ips %v for host %q", hi.ipsToAdd.toSlice(), ret.GetPublicId())))
}
msgs = append(msgs, oplogMsgs...)
}
@@ -463,7 +463,7 @@ func (r *SetSyncJob) upsertAndCleanHosts(
{
if len(hi.dnsNamesToRemove) > 0 {
oplogMsgs := make([]*oplog.Message, 0, len(hi.dnsNamesToRemove))
count, err := w.DeleteItems(ctx, hi.dnsNamesToRemove.toArray(), db.NewOplogMsgs(&oplogMsgs))
count, err := w.DeleteItems(ctx, hi.dnsNamesToRemove.toSlice(), db.NewOplogMsgs(&oplogMsgs))
if err != nil {
return err
}
@@ -478,7 +478,7 @@ func (r *SetSyncJob) upsertAndCleanHosts(
Target: db.Constraint("host_dns_name_pkey"),
Action: db.DoNothing(true),
}
if err := w.CreateItems(ctx, hi.dnsNamesToAdd.toArray(), db.NewOplogMsgs(&oplogMsgs), db.WithOnConflict(onConflict)); err != nil {
if err := w.CreateItems(ctx, hi.dnsNamesToAdd.toSlice(), db.NewOplogMsgs(&oplogMsgs), db.WithOnConflict(onConflict)); err != nil {
return err
}
msgs = append(msgs, oplogMsgs...)
+5 -5
View File
@@ -138,9 +138,9 @@ func (r *Repository) CreateSet(ctx context.Context, projectId string, s *HostSet
}
}
var preferredEndpoints []any
var preferredEndpoints []*host.PreferredEndpoint
if s.PreferredEndpoints != nil {
preferredEndpoints = make([]any, 0, len(s.PreferredEndpoints))
preferredEndpoints = make([]*host.PreferredEndpoint, 0, len(s.PreferredEndpoints))
for i, e := range s.PreferredEndpoints {
obj, err := host.NewPreferredEndpoint(ctx, s.PublicId, uint32(i+1), e)
if err != nil {
@@ -392,9 +392,9 @@ func (r *Repository) UpdateSet(ctx context.Context, projectId string, s *HostSet
}
// Get the preferred endpoints to write out.
var preferredEndpoints []any
var preferredEndpoints []*host.PreferredEndpoint
if endpointOp == endpointOpUpdate {
preferredEndpoints = make([]any, 0, len(newSet.PreferredEndpoints))
preferredEndpoints = make([]*host.PreferredEndpoint, 0, len(newSet.PreferredEndpoints))
for i, e := range newSet.PreferredEndpoints {
obj, err := host.NewPreferredEndpoint(ctx, newSet.PublicId, uint32(i+1), e)
if err != nil {
@@ -454,7 +454,7 @@ func (r *Repository) UpdateSet(ctx context.Context, projectId string, s *HostSet
case endpointOpDelete, endpointOpUpdate:
if len(currentSet.PreferredEndpoints) > 0 {
// Delete all old endpoint entries.
var peps []any
var peps []*host.PreferredEndpoint
for i := 1; i <= len(currentSet.PreferredEndpoints); i++ {
p := host.AllocPreferredEndpoint()
p.HostSetId, p.Priority = currentSet.GetPublicId(), uint32(i)
+16 -7
View File
@@ -5,6 +5,7 @@ package plugin
import (
"context"
"reflect"
"sort"
"github.com/hashicorp/boundary/internal/errors"
@@ -13,22 +14,30 @@ import (
"github.com/hashicorp/go-secure-stdlib/strutil"
)
// valueToInterfaceMap is a map that has a function to convert values into an
// array
// valueToInterfaceMap is a map that has a function to convert values into a
// slice
type valueToInterfaceMap map[string]any
func (m valueToInterfaceMap) toArray() []any {
func (m valueToInterfaceMap) toSlice() any {
switch {
case m == nil:
return nil
case len(m) == 0:
return make([]any, 0)
default:
ret := make([]any, 0, len(m))
for _, v := range m {
ret = append(ret, v)
var valueType reflect.Type
existingValues := make([]any, 0, len(m))
for _, value := range m {
valueType = reflect.TypeOf(value) // Assume all values are the same type
existingValues = append(existingValues, value)
}
return ret
// Create a slice of the concrete type
sliceType := reflect.SliceOf(valueType)
sliceValue := reflect.MakeSlice(sliceType, len(m), len(m))
for i := 0; i < len(m); i++ {
sliceValue.Index(i).Set(reflect.ValueOf(existingValues[i]))
}
return sliceValue.Interface()
}
}
+7 -7
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/host/plugin/store/v1/host.proto
@@ -811,7 +811,7 @@ func file_controller_storage_host_plugin_store_v1_host_proto_rawDescGZIP() []byt
}
var file_controller_storage_host_plugin_store_v1_host_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_controller_storage_host_plugin_store_v1_host_proto_goTypes = []interface{}{
var file_controller_storage_host_plugin_store_v1_host_proto_goTypes = []any{
(*HostCatalog)(nil), // 0: controller.storage.host.plugin.store.v1.HostCatalog
(*HostSet)(nil), // 1: controller.storage.host.plugin.store.v1.HostSet
(*HostCatalogSecret)(nil), // 2: controller.storage.host.plugin.store.v1.HostCatalogSecret
@@ -842,7 +842,7 @@ func file_controller_storage_host_plugin_store_v1_host_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_host_plugin_store_v1_host_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_plugin_store_v1_host_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*HostCatalog); i {
case 0:
return &v.state
@@ -854,7 +854,7 @@ func file_controller_storage_host_plugin_store_v1_host_proto_init() {
return nil
}
}
file_controller_storage_host_plugin_store_v1_host_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_plugin_store_v1_host_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*HostSet); i {
case 0:
return &v.state
@@ -866,7 +866,7 @@ func file_controller_storage_host_plugin_store_v1_host_proto_init() {
return nil
}
}
file_controller_storage_host_plugin_store_v1_host_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_plugin_store_v1_host_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*HostCatalogSecret); i {
case 0:
return &v.state
@@ -878,7 +878,7 @@ func file_controller_storage_host_plugin_store_v1_host_proto_init() {
return nil
}
}
file_controller_storage_host_plugin_store_v1_host_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_plugin_store_v1_host_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*Host); i {
case 0:
return &v.state
@@ -890,7 +890,7 @@ func file_controller_storage_host_plugin_store_v1_host_proto_init() {
return nil
}
}
file_controller_storage_host_plugin_store_v1_host_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_plugin_store_v1_host_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*HostSetMember); i {
case 0:
return &v.state
+4 -4
View File
@@ -125,10 +125,10 @@ func TestHost(t testing.TB, conn *db.DB, catId, externId string, opt ...Option)
require.NoError(t, err)
require.NoError(t, w.Create(ctx, host1))
var ipAddresses []any
var ipAddresses []*host.IpAddress
if len(host1.GetIpAddresses()) > 0 {
sort.Strings(host1.IpAddresses)
ipAddresses = make([]any, 0, len(host1.GetIpAddresses()))
ipAddresses = make([]*host.IpAddress, 0, len(host1.GetIpAddresses()))
for _, a := range host1.GetIpAddresses() {
obj, err := host.NewIpAddress(ctx, host1.PublicId, a)
require.NoError(t, err)
@@ -137,10 +137,10 @@ func TestHost(t testing.TB, conn *db.DB, catId, externId string, opt ...Option)
require.NoError(t, w.CreateItems(ctx, ipAddresses))
}
var dnsNames []any
var dnsNames []*host.DnsName
if len(host1.GetDnsNames()) > 0 {
sort.Strings(host1.DnsNames)
dnsNames = make([]any, 0, len(host1.GetDnsNames()))
dnsNames = make([]*host.DnsName, 0, len(host1.GetDnsNames()))
for _, n := range host1.GetDnsNames() {
obj, err := host.NewDnsName(ctx, host1.PublicId, n)
require.NoError(t, err)
@@ -32,6 +32,7 @@ import (
type fakeReader struct {
db.Reader
}
type fakeWriter struct {
db.Writer
}
@@ -74,8 +74,8 @@ func (r *Repository) AddSetMembers(ctx context.Context, projectId string, setId
return hosts, nil
}
func (r *Repository) newMembers(ctx context.Context, setId string, hostIds []string) ([]any, error) {
var members []any
func (r *Repository) newMembers(ctx context.Context, setId string, hostIds []string) ([]*HostSetMember, error) {
var members []*HostSetMember
for _, id := range hostIds {
var m *HostSetMember
m, err := NewHostSetMember(ctx, setId, id)
@@ -87,7 +87,7 @@ func (r *Repository) newMembers(ctx context.Context, setId string, hostIds []str
return members, nil
}
func createMembers(ctx context.Context, w db.Writer, members []any) ([]*oplog.Message, error) {
func createMembers(ctx context.Context, w db.Writer, members []*HostSetMember) ([]*oplog.Message, error) {
var msgs []*oplog.Message
if err := w.CreateItems(ctx, members, db.NewOplogMsgs(&msgs)); err != nil {
return nil, errors.Wrap(ctx, err, "static.createMembers")
@@ -214,7 +214,7 @@ func (r *Repository) DeleteSetMembers(ctx context.Context, projectId string, set
return len(hostIds), nil
}
func deleteMembers(ctx context.Context, w db.Writer, members []any) ([]*oplog.Message, error) {
func deleteMembers(ctx context.Context, w db.Writer, members []*HostSetMember) ([]*oplog.Message, error) {
const op = "static.deleteMembers"
var msgs []*oplog.Message
rowsDeleted, err := w.DeleteItems(ctx, members, db.NewOplogMsgs(&msgs))
@@ -261,7 +261,7 @@ func (r *Repository) SetSetMembers(ctx context.Context, projectId string, setId
if err != nil {
return nil, db.NoRowsAffected, errors.Wrap(ctx, err, op)
}
var deletions, additions []any
var deletions, additions []*HostSetMember
for _, c := range changes {
m, err := NewHostSetMember(ctx, setId, c.HostId)
if err != nil {
+7 -7
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/host/static/store/v1/static.proto
@@ -620,7 +620,7 @@ func file_controller_storage_host_static_store_v1_static_proto_rawDescGZIP() []b
}
var file_controller_storage_host_static_store_v1_static_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_controller_storage_host_static_store_v1_static_proto_goTypes = []interface{}{
var file_controller_storage_host_static_store_v1_static_proto_goTypes = []any{
(*HostCatalog)(nil), // 0: controller.storage.host.static.store.v1.HostCatalog
(*Host)(nil), // 1: controller.storage.host.static.store.v1.Host
(*HostSet)(nil), // 2: controller.storage.host.static.store.v1.HostSet
@@ -648,7 +648,7 @@ func file_controller_storage_host_static_store_v1_static_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_host_static_store_v1_static_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_static_store_v1_static_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*HostCatalog); i {
case 0:
return &v.state
@@ -660,7 +660,7 @@ func file_controller_storage_host_static_store_v1_static_proto_init() {
return nil
}
}
file_controller_storage_host_static_store_v1_static_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_static_store_v1_static_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*Host); i {
case 0:
return &v.state
@@ -672,7 +672,7 @@ func file_controller_storage_host_static_store_v1_static_proto_init() {
return nil
}
}
file_controller_storage_host_static_store_v1_static_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_static_store_v1_static_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*HostSet); i {
case 0:
return &v.state
@@ -684,7 +684,7 @@ func file_controller_storage_host_static_store_v1_static_proto_init() {
return nil
}
}
file_controller_storage_host_static_store_v1_static_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_static_store_v1_static_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*HostSetMember); i {
case 0:
return &v.state
@@ -696,7 +696,7 @@ func file_controller_storage_host_static_store_v1_static_proto_init() {
return nil
}
}
file_controller_storage_host_static_store_v1_static_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_static_store_v1_static_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*UnimplementedSetFields); i {
case 0:
return &v.state
+8 -8
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/host/store/v1/host.proto
@@ -440,7 +440,7 @@ func file_controller_storage_host_store_v1_host_proto_rawDescGZIP() []byte {
}
var file_controller_storage_host_store_v1_host_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_controller_storage_host_store_v1_host_proto_goTypes = []interface{}{
var file_controller_storage_host_store_v1_host_proto_goTypes = []any{
(*Catalog)(nil), // 0: controller.storage.host.store.v1.Catalog
(*Host)(nil), // 1: controller.storage.host.store.v1.Host
(*Set)(nil), // 2: controller.storage.host.store.v1.Set
@@ -462,7 +462,7 @@ func file_controller_storage_host_store_v1_host_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_host_store_v1_host_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_store_v1_host_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*Catalog); i {
case 0:
return &v.state
@@ -474,7 +474,7 @@ func file_controller_storage_host_store_v1_host_proto_init() {
return nil
}
}
file_controller_storage_host_store_v1_host_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_store_v1_host_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*Host); i {
case 0:
return &v.state
@@ -486,7 +486,7 @@ func file_controller_storage_host_store_v1_host_proto_init() {
return nil
}
}
file_controller_storage_host_store_v1_host_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_store_v1_host_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*Set); i {
case 0:
return &v.state
@@ -498,7 +498,7 @@ func file_controller_storage_host_store_v1_host_proto_init() {
return nil
}
}
file_controller_storage_host_store_v1_host_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_store_v1_host_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*PreferredEndpoint); i {
case 0:
return &v.state
@@ -510,7 +510,7 @@ func file_controller_storage_host_store_v1_host_proto_init() {
return nil
}
}
file_controller_storage_host_store_v1_host_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_store_v1_host_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*IpAddress); i {
case 0:
return &v.state
@@ -522,7 +522,7 @@ func file_controller_storage_host_store_v1_host_proto_init() {
return nil
}
}
file_controller_storage_host_store_v1_host_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_store_v1_host_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*DnsName); i {
case 0:
return &v.state
+5 -9
View File
@@ -56,7 +56,7 @@ func (r *Repository) AddRoleGrantScopes(ctx context.Context, roleId string, role
}
}
newRoleGrantScopes := make([]any, 0, len(addRoleGrantScopes))
newRoleGrantScopes := make([]*RoleGrantScope, 0, len(addRoleGrantScopes))
for _, grantScope := range grantScopes {
roleGrantScope, err := NewRoleGrantScope(ctx, role.GetPublicId(), grantScope)
if err != nil {
@@ -116,11 +116,7 @@ func (r *Repository) AddRoleGrantScopes(ctx context.Context, roleId string, role
if err != nil {
return nil, errors.Wrap(ctx, err, op)
}
roleGrantScopes = make([]*RoleGrantScope, 0, len(newRoleGrantScopes))
for _, grantScope := range newRoleGrantScopes {
roleGrantScopes = append(roleGrantScopes, grantScope.(*RoleGrantScope))
}
return roleGrantScopes, nil
return newRoleGrantScopes, nil
}
// DeleteRoleGrantScopes will delete role grant scopes associated with the role ID in
@@ -178,7 +174,7 @@ func (r *Repository) DeleteRoleGrantScopes(ctx context.Context, roleId string, r
}
msgs = append(msgs, &roleOplogMsg)
deleteRoleGrantScopes := make([]any, 0, len(grantScopes))
deleteRoleGrantScopes := make([]*RoleGrantScope, 0, len(grantScopes))
for _, grantScope := range grantScopes {
roleGrantScope, err := NewRoleGrantScope(ctx, roleId, grantScope)
if err != nil {
@@ -264,8 +260,8 @@ func (r *Repository) SetRoleGrantScopes(ctx context.Context, roleId string, role
// Check incoming grant scopes to see if they exist and if so act appropriately
currentRoleGrantScopes := make([]*RoleGrantScope, 0, len(grantScopes)+len(found))
addRoleGrantScopes := make([]any, 0, len(grantScopes))
deleteRoleGrantScopes := make([]any, 0, len(grantScopes))
addRoleGrantScopes := make([]*RoleGrantScope, 0, len(grantScopes))
deleteRoleGrantScopes := make([]*RoleGrantScope, 0, len(grantScopes))
for _, grantScope := range grantScopes {
rgs, ok := found[grantScope]
if ok {
+5 -5
View File
@@ -211,7 +211,7 @@ func (r *Repository) AddGroupMembers(ctx context.Context, groupId string, groupV
return nil, errors.Wrap(ctx, err, op, errors.WithMsg(fmt.Sprintf("unable to get group members %s scope", groupId)))
}
newGroupMembers := make([]any, 0, len(userIds))
newGroupMembers := make([]*GroupMemberUser, 0, len(userIds))
for _, id := range userIds {
gm, err := NewGroupMemberUser(ctx, groupId, id)
if err != nil {
@@ -304,7 +304,7 @@ func (r *Repository) DeleteGroupMembers(ctx context.Context, groupId string, gro
return db.NoRowsAffected, errors.Wrap(ctx, err, op, errors.WithMsg(fmt.Sprintf("unable to get group members %s scope", groupId)))
}
deleteMembers := make([]any, 0, len(userIds))
deleteMembers := make([]*GroupMemberUser, 0, len(userIds))
for _, id := range userIds {
member, err := NewGroupMemberUser(ctx, groupId, id)
if err != nil {
@@ -486,7 +486,7 @@ func (r *Repository) SetGroupMembers(ctx context.Context, groupId string, groupV
}
// groupMemberChanges returns two slices: members to add and delete
func groupMemberChanges(ctx context.Context, reader db.Reader, groupId string, userIds []string) ([]any, []any, error) {
func groupMemberChanges(ctx context.Context, reader db.Reader, groupId string, userIds []string) ([]*GroupMemberUser, []*GroupMemberUser, error) {
const op = "iam.groupMemberChanges"
var inClauseSpots []string
// starts at 2 because there is already a ? in the query
@@ -526,8 +526,8 @@ func groupMemberChanges(ctx context.Context, reader db.Reader, groupId string, u
if err := rows.Err(); err != nil {
return nil, nil, errors.Wrap(ctx, err, op)
}
addMembers := []any{}
deleteMembers := []any{}
addMembers := []*GroupMemberUser{}
deleteMembers := []*GroupMemberUser{}
for _, c := range changes {
if c.MemberId == "" {
return nil, nil, errors.New(ctx, errors.InvalidParameter, op, "missing user id in change result")
+18 -18
View File
@@ -36,7 +36,7 @@ func (r *Repository) AddPrincipalRoles(ctx context.Context, roleId string, roleV
return nil, errors.New(ctx, errors.InvalidParameter, op, "missing any of users, groups, or managed groups to add")
}
newUserRoles := make([]any, 0, len(userIds))
newUserRoles := make([]*UserRole, 0, len(userIds))
for _, id := range userIds {
usrRole, err := NewUserRole(ctx, roleId, id)
if err != nil {
@@ -44,7 +44,7 @@ func (r *Repository) AddPrincipalRoles(ctx context.Context, roleId string, roleV
}
newUserRoles = append(newUserRoles, usrRole)
}
newGrpRoles := make([]any, 0, len(groupIds))
newGrpRoles := make([]*GroupRole, 0, len(groupIds))
for _, id := range groupIds {
grpRole, err := NewGroupRole(ctx, roleId, id)
if err != nil {
@@ -52,7 +52,7 @@ func (r *Repository) AddPrincipalRoles(ctx context.Context, roleId string, roleV
}
newGrpRoles = append(newGrpRoles, grpRole)
}
newManagedGrpRoles := make([]any, 0, len(managedGroupIds))
newManagedGrpRoles := make([]*ManagedGroupRole, 0, len(managedGroupIds))
for _, id := range managedGroupIds {
managedGrpRole, err := NewManagedGroupRole(ctx, roleId, id)
if err != nil {
@@ -338,7 +338,7 @@ func (r *Repository) DeletePrincipalRoles(ctx context.Context, roleId string, ro
role := allocRole()
role.PublicId = roleId
deleteUserRoles := make([]any, 0, len(userIds))
deleteUserRoles := make([]*UserRole, 0, len(userIds))
for _, id := range userIds {
usrRole, err := NewUserRole(ctx, roleId, id)
if err != nil {
@@ -346,7 +346,7 @@ func (r *Repository) DeletePrincipalRoles(ctx context.Context, roleId string, ro
}
deleteUserRoles = append(deleteUserRoles, usrRole)
}
deleteGrpRoles := make([]any, 0, len(groupIds))
deleteGrpRoles := make([]*GroupRole, 0, len(groupIds))
for _, id := range groupIds {
grpRole, err := NewGroupRole(ctx, roleId, id)
if err != nil {
@@ -354,7 +354,7 @@ func (r *Repository) DeletePrincipalRoles(ctx context.Context, roleId string, ro
}
deleteGrpRoles = append(deleteGrpRoles, grpRole)
}
deleteManagedGrpRoles := make([]any, 0, len(managedGroupIds))
deleteManagedGrpRoles := make([]*ManagedGroupRole, 0, len(managedGroupIds))
for _, id := range managedGroupIds {
managedGrpRole, err := NewManagedGroupRole(ctx, roleId, id)
if err != nil {
@@ -465,12 +465,12 @@ func (r *Repository) ListPrincipalRoles(ctx context.Context, roleId string, opt
}
type PrincipalSet struct {
AddUserRoles []any
AddGroupRoles []any
AddManagedGroupRoles []any
DeleteUserRoles []any
DeleteGroupRoles []any
DeleteManagedGroupRoles []any
AddUserRoles []*UserRole
AddGroupRoles []*GroupRole
AddManagedGroupRoles []*ManagedGroupRole
DeleteUserRoles []*UserRole
DeleteGroupRoles []*GroupRole
DeleteManagedGroupRoles []*ManagedGroupRole
// unchangedPrincipalRoles is set iff there are no changes, that is, the
// length of all other members is zero
UnchangedPrincipalRoles []*PrincipalRole
@@ -503,7 +503,7 @@ func (r *Repository) PrincipalsToSet(ctx context.Context, role *Role, userIds, g
return nil, errors.New(ctx, errors.InvalidParameter, op, fmt.Sprintf("%s is unknown principal type %s", p.PrincipalId, p.GetType()))
}
}
var newUserRoles []any
var newUserRoles []*UserRole
userIdsMap := map[string]struct{}{}
for _, id := range userIds {
userIdsMap[id] = struct{}{}
@@ -515,7 +515,7 @@ func (r *Repository) PrincipalsToSet(ctx context.Context, role *Role, userIds, g
newUserRoles = append(newUserRoles, usrRole)
}
}
var newGrpRoles []any
var newGrpRoles []*GroupRole
groupIdsMap := map[string]struct{}{}
for _, id := range groupIds {
groupIdsMap[id] = struct{}{}
@@ -527,7 +527,7 @@ func (r *Repository) PrincipalsToSet(ctx context.Context, role *Role, userIds, g
newGrpRoles = append(newGrpRoles, grpRole)
}
}
var newManagedGrpRoles []any
var newManagedGrpRoles []*ManagedGroupRole
managedGroupIdsMap := map[string]struct{}{}
for _, id := range managedGroupIds {
managedGroupIdsMap[id] = struct{}{}
@@ -539,7 +539,7 @@ func (r *Repository) PrincipalsToSet(ctx context.Context, role *Role, userIds, g
newManagedGrpRoles = append(newManagedGrpRoles, managedGrpRole)
}
}
var deleteUserRoles []any
var deleteUserRoles []*UserRole
for _, p := range existingUsers {
if _, ok := userIdsMap[p.PrincipalId]; !ok {
usrRole, err := NewUserRole(ctx, p.GetRoleId(), p.GetPrincipalId())
@@ -549,7 +549,7 @@ func (r *Repository) PrincipalsToSet(ctx context.Context, role *Role, userIds, g
deleteUserRoles = append(deleteUserRoles, usrRole)
}
}
var deleteGrpRoles []any
var deleteGrpRoles []*GroupRole
for _, p := range existingGroups {
if _, ok := groupIdsMap[p.PrincipalId]; !ok {
grpRole, err := NewGroupRole(ctx, p.GetRoleId(), p.GetPrincipalId())
@@ -559,7 +559,7 @@ func (r *Repository) PrincipalsToSet(ctx context.Context, role *Role, userIds, g
deleteGrpRoles = append(deleteGrpRoles, grpRole)
}
}
var deleteManagedGrpRoles []any
var deleteManagedGrpRoles []*ManagedGroupRole
for _, p := range existingManagedGroups {
if _, ok := managedGroupIdsMap[p.PrincipalId]; !ok {
managedGrpRole, err := NewManagedGroupRole(ctx, p.GetRoleId(), p.GetPrincipalId())
@@ -206,7 +206,7 @@ func assertSetResults(t *testing.T, got *iam.PrincipalSet, wantAddUsers, wantAdd
assert := assert.New(t)
var gotAddUsers []string
for _, r := range got.AddUserRoles {
gotAddUsers = append(gotAddUsers, r.(*iam.UserRole).PrincipalId)
gotAddUsers = append(gotAddUsers, r.PrincipalId)
}
// sort.Strings(wantAddUsers)
// sort.Strings(gotAddUsers)
@@ -214,7 +214,7 @@ func assertSetResults(t *testing.T, got *iam.PrincipalSet, wantAddUsers, wantAdd
var gotAddGrps []string
for _, r := range got.AddGroupRoles {
gotAddGrps = append(gotAddGrps, r.(*iam.GroupRole).PrincipalId)
gotAddGrps = append(gotAddGrps, r.PrincipalId)
}
// sort.Strings(wantAddGroups)
// sort.Strings(gotAddGrps)
@@ -222,7 +222,7 @@ func assertSetResults(t *testing.T, got *iam.PrincipalSet, wantAddUsers, wantAdd
var gotAddManagedGrps []string
for _, r := range got.AddManagedGroupRoles {
gotAddManagedGrps = append(gotAddManagedGrps, r.(*iam.ManagedGroupRole).PrincipalId)
gotAddManagedGrps = append(gotAddManagedGrps, r.PrincipalId)
}
// sort.Strings(wantAddGroups)
// sort.Strings(gotAddGrps)
@@ -230,7 +230,7 @@ func assertSetResults(t *testing.T, got *iam.PrincipalSet, wantAddUsers, wantAdd
var gotDeleteUsers []string
for _, r := range got.DeleteUserRoles {
gotDeleteUsers = append(gotDeleteUsers, r.(*iam.UserRole).PrincipalId)
gotDeleteUsers = append(gotDeleteUsers, r.PrincipalId)
}
sort.Strings(wantDeleteUsers)
sort.Strings(gotDeleteUsers)
@@ -238,7 +238,7 @@ func assertSetResults(t *testing.T, got *iam.PrincipalSet, wantAddUsers, wantAdd
var gotDeleteGroups []string
for _, r := range got.DeleteGroupRoles {
gotDeleteGroups = append(gotDeleteGroups, r.(*iam.GroupRole).PrincipalId)
gotDeleteGroups = append(gotDeleteGroups, r.PrincipalId)
}
sort.Strings(wantDeleteGroups)
sort.Strings(gotDeleteGroups)
@@ -246,7 +246,7 @@ func assertSetResults(t *testing.T, got *iam.PrincipalSet, wantAddUsers, wantAdd
var gotDeleteManagedGroups []string
for _, r := range got.DeleteManagedGroupRoles {
gotDeleteManagedGroups = append(gotDeleteManagedGroups, r.(*iam.ManagedGroupRole).PrincipalId)
gotDeleteManagedGroups = append(gotDeleteManagedGroups, r.PrincipalId)
}
sort.Strings(wantDeleteManagedGroups)
sort.Strings(gotDeleteManagedGroups)
+5 -9
View File
@@ -32,7 +32,7 @@ func (r *Repository) AddRoleGrants(ctx context.Context, roleId string, roleVersi
role := allocRole()
role.PublicId = roleId
newRoleGrants := make([]any, 0, len(grants))
newRoleGrants := make([]*RoleGrant, 0, len(grants))
for _, grant := range grants {
roleGrant, err := NewRoleGrant(ctx, roleId, grant)
if err != nil {
@@ -96,11 +96,7 @@ func (r *Repository) AddRoleGrants(ctx context.Context, roleId string, roleVersi
if err != nil {
return nil, errors.Wrap(ctx, err, op)
}
roleGrants := make([]*RoleGrant, 0, len(newRoleGrants))
for _, grant := range newRoleGrants {
roleGrants = append(roleGrants, grant.(*RoleGrant))
}
return roleGrants, nil
return newRoleGrants, nil
}
// DeleteRoleGrants deletes grants (as strings) from a role (roleId). The role's
@@ -166,7 +162,7 @@ func (r *Repository) DeleteRoleGrants(ctx context.Context, roleId string, roleVe
// Check incoming grants to see if they exist and if so add to
// delete slice
deleteRoleGrants := make([]any, 0, len(grants))
deleteRoleGrants := make([]*RoleGrant, 0, len(grants))
for _, grant := range grants {
// Use a fake scope, just want to get out a canonical string
perm, err := perms.Parse(ctx, "o_abcd1234", grant, perms.WithSkipFinalValidation(true))
@@ -257,8 +253,8 @@ func (r *Repository) SetRoleGrants(ctx context.Context, roleId string, roleVersi
// Check incoming grants to see if they exist and if so act appropriately
currentRoleGrants := make([]*RoleGrant, 0, len(grants)+len(found))
addRoleGrants := make([]any, 0, len(grants))
deleteRoleGrants := make([]any, 0, len(grants))
addRoleGrants := make([]*RoleGrant, 0, len(grants))
deleteRoleGrants := make([]*RoleGrant, 0, len(grants))
for _, grant := range grants {
// Use a fake scope, just want to get out a canonical string
perm, err := perms.Parse(ctx, "o_abcd1234", grant, perms.WithSkipFinalValidation(true))
@@ -763,7 +763,6 @@ func TestGrantsForUser(t *testing.T) {
// * directGrantProj on respective projects (4 grants total)
expGrantTuples := []perms.GrantTuple{
// No grants from noOrg/noProj
// Grants from direct org1 to org1/proj1a/proj1b:
{
RoleId: directGrantOrg1Role.PublicId,
+6 -6
View File
@@ -232,7 +232,7 @@ func (r *Repository) CreateScope(ctx context.Context, s *Scope, userId string, o
return errors.Wrap(ctx, err, op, errors.WithMsg("unable to create in memory role grant"))
}
roleGrantOplogMsgs := make([]*oplog.Message, 0, 1)
if err := w.CreateItems(ctx, []any{roleGrant}, db.NewOplogMsgs(&roleGrantOplogMsgs)); err != nil {
if err := w.CreateItems(ctx, []*RoleGrant{roleGrant}, db.NewOplogMsgs(&roleGrantOplogMsgs)); err != nil {
return errors.Wrap(ctx, err, op, errors.WithMsg("unable to add grants"))
}
msgs = append(msgs, roleGrantOplogMsgs...)
@@ -242,7 +242,7 @@ func (r *Repository) CreateScope(ctx context.Context, s *Scope, userId string, o
return errors.Wrap(ctx, err, op, errors.WithMsg("unable to create in memory role grant scope"))
}
roleGrantScopeOplogMsgs := make([]*oplog.Message, 0, 1)
if err := w.CreateItems(ctx, []any{roleGrantScope}, db.NewOplogMsgs(&roleGrantScopeOplogMsgs)); err != nil {
if err := w.CreateItems(ctx, []*RoleGrantScope{roleGrantScope}, db.NewOplogMsgs(&roleGrantScopeOplogMsgs)); err != nil {
return errors.Wrap(ctx, err, op, errors.WithMsg("unable to add grant scope"))
}
msgs = append(msgs, roleGrantScopeOplogMsgs...)
@@ -252,7 +252,7 @@ func (r *Repository) CreateScope(ctx context.Context, s *Scope, userId string, o
return errors.Wrap(ctx, err, op, errors.WithMsg("unable to create in memory role user"))
}
roleUserOplogMsgs := make([]*oplog.Message, 0, 1)
if err := w.CreateItems(ctx, []any{rolePrincipal}, db.NewOplogMsgs(&roleUserOplogMsgs)); err != nil {
if err := w.CreateItems(ctx, []*UserRole{rolePrincipal}, db.NewOplogMsgs(&roleUserOplogMsgs)); err != nil {
return errors.Wrap(ctx, err, op, errors.WithMsg("unable to add grants"))
}
msgs = append(msgs, roleUserOplogMsgs...)
@@ -301,7 +301,7 @@ func (r *Repository) CreateScope(ctx context.Context, s *Scope, userId string, o
// Grants
{
grants := []any{}
grants := []*RoleGrant{}
switch s.Type {
case scope.Project.String():
@@ -352,7 +352,7 @@ func (r *Repository) CreateScope(ctx context.Context, s *Scope, userId string, o
// Principals
{
principals := []any{}
principals := []*UserRole{}
userId := globals.AnonymousUserId
if s.Type == scope.Project.String() {
userId = globals.AnyAuthenticatedUserId
@@ -375,7 +375,7 @@ func (r *Repository) CreateScope(ctx context.Context, s *Scope, userId string, o
return errors.Wrap(ctx, err, op, errors.WithMsg("unable to create in memory role grant scope"))
}
roleGrantScopeOplogMsgs := make([]*oplog.Message, 0, 1)
if err := w.CreateItems(ctx, []any{roleGrantScope}, db.NewOplogMsgs(&roleGrantScopeOplogMsgs)); err != nil {
if err := w.CreateItems(ctx, []*RoleGrantScope{roleGrantScope}, db.NewOplogMsgs(&roleGrantScopeOplogMsgs)); err != nil {
return errors.Wrap(ctx, err, op, errors.WithMsg("unable to add grant scope"))
}
msgs = append(msgs, roleGrantScopeOplogMsgs...)
+3 -3
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/iam/store/v1/group.proto
@@ -191,7 +191,7 @@ func file_controller_storage_iam_store_v1_group_proto_rawDescGZIP() []byte {
}
var file_controller_storage_iam_store_v1_group_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_controller_storage_iam_store_v1_group_proto_goTypes = []interface{}{
var file_controller_storage_iam_store_v1_group_proto_goTypes = []any{
(*Group)(nil), // 0: controller.storage.iam.store.v1.Group
(*timestamp.Timestamp)(nil), // 1: controller.storage.timestamp.v1.Timestamp
}
@@ -211,7 +211,7 @@ func file_controller_storage_iam_store_v1_group_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_iam_store_v1_group_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_iam_store_v1_group_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*Group); i {
case 0:
return &v.state
+4 -4
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/iam/store/v1/group_member.proto
@@ -260,7 +260,7 @@ func file_controller_storage_iam_store_v1_group_member_proto_rawDescGZIP() []byt
}
var file_controller_storage_iam_store_v1_group_member_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_controller_storage_iam_store_v1_group_member_proto_goTypes = []interface{}{
var file_controller_storage_iam_store_v1_group_member_proto_goTypes = []any{
(*GroupMemberUser)(nil), // 0: controller.storage.iam.store.v1.GroupMemberUser
(*GroupMemberView)(nil), // 1: controller.storage.iam.store.v1.GroupMemberView
(*timestamp.Timestamp)(nil), // 2: controller.storage.timestamp.v1.Timestamp
@@ -281,7 +281,7 @@ func file_controller_storage_iam_store_v1_group_member_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_iam_store_v1_group_member_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_iam_store_v1_group_member_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GroupMemberUser); i {
case 0:
return &v.state
@@ -293,7 +293,7 @@ func file_controller_storage_iam_store_v1_group_member_proto_init() {
return nil
}
}
file_controller_storage_iam_store_v1_group_member_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_iam_store_v1_group_member_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GroupMemberView); i {
case 0:
return &v.state
+6 -6
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/iam/store/v1/principal_role.proto
@@ -417,7 +417,7 @@ func file_controller_storage_iam_store_v1_principal_role_proto_rawDescGZIP() []b
}
var file_controller_storage_iam_store_v1_principal_role_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_controller_storage_iam_store_v1_principal_role_proto_goTypes = []interface{}{
var file_controller_storage_iam_store_v1_principal_role_proto_goTypes = []any{
(*UserRole)(nil), // 0: controller.storage.iam.store.v1.UserRole
(*GroupRole)(nil), // 1: controller.storage.iam.store.v1.GroupRole
(*ManagedGroupRole)(nil), // 2: controller.storage.iam.store.v1.ManagedGroupRole
@@ -442,7 +442,7 @@ func file_controller_storage_iam_store_v1_principal_role_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_iam_store_v1_principal_role_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_iam_store_v1_principal_role_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*UserRole); i {
case 0:
return &v.state
@@ -454,7 +454,7 @@ func file_controller_storage_iam_store_v1_principal_role_proto_init() {
return nil
}
}
file_controller_storage_iam_store_v1_principal_role_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_iam_store_v1_principal_role_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GroupRole); i {
case 0:
return &v.state
@@ -466,7 +466,7 @@ func file_controller_storage_iam_store_v1_principal_role_proto_init() {
return nil
}
}
file_controller_storage_iam_store_v1_principal_role_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_iam_store_v1_principal_role_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ManagedGroupRole); i {
case 0:
return &v.state
@@ -478,7 +478,7 @@ func file_controller_storage_iam_store_v1_principal_role_proto_init() {
return nil
}
}
file_controller_storage_iam_store_v1_principal_role_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_iam_store_v1_principal_role_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*PrincipalRoleView); i {
case 0:
return &v.state
+3 -3
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/iam/store/v1/role.proto
@@ -191,7 +191,7 @@ func file_controller_storage_iam_store_v1_role_proto_rawDescGZIP() []byte {
}
var file_controller_storage_iam_store_v1_role_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_controller_storage_iam_store_v1_role_proto_goTypes = []interface{}{
var file_controller_storage_iam_store_v1_role_proto_goTypes = []any{
(*Role)(nil), // 0: controller.storage.iam.store.v1.Role
(*timestamp.Timestamp)(nil), // 1: controller.storage.timestamp.v1.Timestamp
}
@@ -211,7 +211,7 @@ func file_controller_storage_iam_store_v1_role_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_iam_store_v1_role_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_iam_store_v1_role_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*Role); i {
case 0:
return &v.state
+3 -3
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/iam/store/v1/role_grant.proto
@@ -146,7 +146,7 @@ func file_controller_storage_iam_store_v1_role_grant_proto_rawDescGZIP() []byte
}
var file_controller_storage_iam_store_v1_role_grant_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_controller_storage_iam_store_v1_role_grant_proto_goTypes = []interface{}{
var file_controller_storage_iam_store_v1_role_grant_proto_goTypes = []any{
(*RoleGrant)(nil), // 0: controller.storage.iam.store.v1.RoleGrant
(*timestamp.Timestamp)(nil), // 1: controller.storage.timestamp.v1.Timestamp
}
@@ -165,7 +165,7 @@ func file_controller_storage_iam_store_v1_role_grant_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_iam_store_v1_role_grant_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_iam_store_v1_role_grant_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*RoleGrant); i {
case 0:
return &v.state
+3 -3
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/iam/store/v1/role_grant_scope.proto
@@ -137,7 +137,7 @@ func file_controller_storage_iam_store_v1_role_grant_scope_proto_rawDescGZIP() [
}
var file_controller_storage_iam_store_v1_role_grant_scope_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_controller_storage_iam_store_v1_role_grant_scope_proto_goTypes = []interface{}{
var file_controller_storage_iam_store_v1_role_grant_scope_proto_goTypes = []any{
(*RoleGrantScope)(nil), // 0: controller.storage.iam.store.v1.RoleGrantScope
(*timestamp.Timestamp)(nil), // 1: controller.storage.timestamp.v1.Timestamp
}
@@ -156,7 +156,7 @@ func file_controller_storage_iam_store_v1_role_grant_scope_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_iam_store_v1_role_grant_scope_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_iam_store_v1_role_grant_scope_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*RoleGrantScope); i {
case 0:
return &v.state
+4 -4
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/iam/store/v1/scope.proto
@@ -285,7 +285,7 @@ func file_controller_storage_iam_store_v1_scope_proto_rawDescGZIP() []byte {
}
var file_controller_storage_iam_store_v1_scope_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_controller_storage_iam_store_v1_scope_proto_goTypes = []interface{}{
var file_controller_storage_iam_store_v1_scope_proto_goTypes = []any{
(*Scope)(nil), // 0: controller.storage.iam.store.v1.Scope
(*ScopePolicyStoragePolicy)(nil), // 1: controller.storage.iam.store.v1.ScopePolicyStoragePolicy
(*timestamp.Timestamp)(nil), // 2: controller.storage.timestamp.v1.Timestamp
@@ -306,7 +306,7 @@ func file_controller_storage_iam_store_v1_scope_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_iam_store_v1_scope_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_iam_store_v1_scope_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*Scope); i {
case 0:
return &v.state
@@ -318,7 +318,7 @@ func file_controller_storage_iam_store_v1_scope_proto_init() {
return nil
}
}
file_controller_storage_iam_store_v1_scope_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_iam_store_v1_scope_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*ScopePolicyStoragePolicy); i {
case 0:
return &v.state
Loaded 100 of 167 files, more files were not shown because too many files have changed in this diff. Show more