Fix error formatting lint issue
This commit is contained in:
parent
525df34579
commit
6c40b33b5e
4
server/automation/envoy/store_encode.gen.go
generated
4
server/automation/envoy/store_encode.gen.go
generated
@ -135,7 +135,7 @@ func (e StoreEncoder) prepareWorkflow(ctx context.Context, p envoyx.EncodeParams
|
||||
// In the future, we can pass down the tree and re-do the deps like that
|
||||
switch n.Config.MergeAlg {
|
||||
case envoyx.OnConflictPanic:
|
||||
err = fmt.Errorf("resource %v already exists, n.Identifiers.Slice")
|
||||
err = errors.New("resource %v already exists, n.Identifiers.Slice")
|
||||
return
|
||||
|
||||
case envoyx.OnConflictReplace:
|
||||
@ -338,7 +338,7 @@ func (e StoreEncoder) prepareTrigger(ctx context.Context, p envoyx.EncodeParams,
|
||||
// In the future, we can pass down the tree and re-do the deps like that
|
||||
switch n.Config.MergeAlg {
|
||||
case envoyx.OnConflictPanic:
|
||||
err = fmt.Errorf("resource %v already exists, n.Identifiers.Slice")
|
||||
err = errors.New("resource %v already exists, n.Identifiers.Slice")
|
||||
return
|
||||
|
||||
case envoyx.OnConflictReplace:
|
||||
|
||||
@ -145,7 +145,7 @@ func (e StoreEncoder) prepare{{.expIdent}}(ctx context.Context, p envoyx.EncodeP
|
||||
// In the future, we can pass down the tree and re-do the deps like that
|
||||
switch n.Config.MergeAlg {
|
||||
case envoyx.OnConflictPanic:
|
||||
err = fmt.Errorf("resource %v already exists, n.Identifiers.Slice")
|
||||
err = errors.New("resource %v already exists, n.Identifiers.Slice")
|
||||
return
|
||||
|
||||
case envoyx.OnConflictReplace:
|
||||
|
||||
10
server/compose/envoy/store_encode.gen.go
generated
10
server/compose/envoy/store_encode.gen.go
generated
@ -150,7 +150,7 @@ func (e StoreEncoder) prepareChart(ctx context.Context, p envoyx.EncodeParams, s
|
||||
// In the future, we can pass down the tree and re-do the deps like that
|
||||
switch n.Config.MergeAlg {
|
||||
case envoyx.OnConflictPanic:
|
||||
err = fmt.Errorf("resource %v already exists, n.Identifiers.Slice")
|
||||
err = errors.New("resource %v already exists, n.Identifiers.Slice")
|
||||
return
|
||||
|
||||
case envoyx.OnConflictReplace:
|
||||
@ -353,7 +353,7 @@ func (e StoreEncoder) prepareModule(ctx context.Context, p envoyx.EncodeParams,
|
||||
// In the future, we can pass down the tree and re-do the deps like that
|
||||
switch n.Config.MergeAlg {
|
||||
case envoyx.OnConflictPanic:
|
||||
err = fmt.Errorf("resource %v already exists, n.Identifiers.Slice")
|
||||
err = errors.New("resource %v already exists, n.Identifiers.Slice")
|
||||
return
|
||||
|
||||
case envoyx.OnConflictReplace:
|
||||
@ -578,7 +578,7 @@ func (e StoreEncoder) prepareModuleField(ctx context.Context, p envoyx.EncodePar
|
||||
// In the future, we can pass down the tree and re-do the deps like that
|
||||
switch n.Config.MergeAlg {
|
||||
case envoyx.OnConflictPanic:
|
||||
err = fmt.Errorf("resource %v already exists, n.Identifiers.Slice")
|
||||
err = errors.New("resource %v already exists, n.Identifiers.Slice")
|
||||
return
|
||||
|
||||
case envoyx.OnConflictReplace:
|
||||
@ -785,7 +785,7 @@ func (e StoreEncoder) prepareNamespace(ctx context.Context, p envoyx.EncodeParam
|
||||
// In the future, we can pass down the tree and re-do the deps like that
|
||||
switch n.Config.MergeAlg {
|
||||
case envoyx.OnConflictPanic:
|
||||
err = fmt.Errorf("resource %v already exists, n.Identifiers.Slice")
|
||||
err = errors.New("resource %v already exists, n.Identifiers.Slice")
|
||||
return
|
||||
|
||||
case envoyx.OnConflictReplace:
|
||||
@ -1006,7 +1006,7 @@ func (e StoreEncoder) preparePage(ctx context.Context, p envoyx.EncodeParams, s
|
||||
// In the future, we can pass down the tree and re-do the deps like that
|
||||
switch n.Config.MergeAlg {
|
||||
case envoyx.OnConflictPanic:
|
||||
err = fmt.Errorf("resource %v already exists, n.Identifiers.Slice")
|
||||
err = errors.New("resource %v already exists, n.Identifiers.Slice")
|
||||
return
|
||||
|
||||
case envoyx.OnConflictReplace:
|
||||
|
||||
3
server/pkg/envoyx/rbac_rules_parse.gen.go
generated
3
server/pkg/envoyx/rbac_rules_parse.gen.go
generated
@ -8,12 +8,11 @@ package envoyx
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
automationTypes "github.com/cortezaproject/corteza/server/automation/types"
|
||||
composeTypes "github.com/cortezaproject/corteza/server/compose/types"
|
||||
federationTypes "github.com/cortezaproject/corteza/server/federation/types"
|
||||
systemTypes "github.com/cortezaproject/corteza/server/system/types"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Parse generates resource setting logic for each resource
|
||||
|
||||
22
server/system/envoy/store_encode.gen.go
generated
22
server/system/envoy/store_encode.gen.go
generated
@ -183,7 +183,7 @@ func (e StoreEncoder) prepareApplication(ctx context.Context, p envoyx.EncodePar
|
||||
// In the future, we can pass down the tree and re-do the deps like that
|
||||
switch n.Config.MergeAlg {
|
||||
case envoyx.OnConflictPanic:
|
||||
err = fmt.Errorf("resource %v already exists, n.Identifiers.Slice")
|
||||
err = errors.New("resource %v already exists, n.Identifiers.Slice")
|
||||
return
|
||||
|
||||
case envoyx.OnConflictReplace:
|
||||
@ -385,7 +385,7 @@ func (e StoreEncoder) prepareApigwRoute(ctx context.Context, p envoyx.EncodePara
|
||||
// In the future, we can pass down the tree and re-do the deps like that
|
||||
switch n.Config.MergeAlg {
|
||||
case envoyx.OnConflictPanic:
|
||||
err = fmt.Errorf("resource %v already exists, n.Identifiers.Slice")
|
||||
err = errors.New("resource %v already exists, n.Identifiers.Slice")
|
||||
return
|
||||
|
||||
case envoyx.OnConflictReplace:
|
||||
@ -587,7 +587,7 @@ func (e StoreEncoder) prepareApigwFilter(ctx context.Context, p envoyx.EncodePar
|
||||
// In the future, we can pass down the tree and re-do the deps like that
|
||||
switch n.Config.MergeAlg {
|
||||
case envoyx.OnConflictPanic:
|
||||
err = fmt.Errorf("resource %v already exists, n.Identifiers.Slice")
|
||||
err = errors.New("resource %v already exists, n.Identifiers.Slice")
|
||||
return
|
||||
|
||||
case envoyx.OnConflictReplace:
|
||||
@ -789,7 +789,7 @@ func (e StoreEncoder) prepareAuthClient(ctx context.Context, p envoyx.EncodePara
|
||||
// In the future, we can pass down the tree and re-do the deps like that
|
||||
switch n.Config.MergeAlg {
|
||||
case envoyx.OnConflictPanic:
|
||||
err = fmt.Errorf("resource %v already exists, n.Identifiers.Slice")
|
||||
err = errors.New("resource %v already exists, n.Identifiers.Slice")
|
||||
return
|
||||
|
||||
case envoyx.OnConflictReplace:
|
||||
@ -992,7 +992,7 @@ func (e StoreEncoder) prepareQueue(ctx context.Context, p envoyx.EncodeParams, s
|
||||
// In the future, we can pass down the tree and re-do the deps like that
|
||||
switch n.Config.MergeAlg {
|
||||
case envoyx.OnConflictPanic:
|
||||
err = fmt.Errorf("resource %v already exists, n.Identifiers.Slice")
|
||||
err = errors.New("resource %v already exists, n.Identifiers.Slice")
|
||||
return
|
||||
|
||||
case envoyx.OnConflictReplace:
|
||||
@ -1195,7 +1195,7 @@ func (e StoreEncoder) prepareReport(ctx context.Context, p envoyx.EncodeParams,
|
||||
// In the future, we can pass down the tree and re-do the deps like that
|
||||
switch n.Config.MergeAlg {
|
||||
case envoyx.OnConflictPanic:
|
||||
err = fmt.Errorf("resource %v already exists, n.Identifiers.Slice")
|
||||
err = errors.New("resource %v already exists, n.Identifiers.Slice")
|
||||
return
|
||||
|
||||
case envoyx.OnConflictReplace:
|
||||
@ -1398,7 +1398,7 @@ func (e StoreEncoder) prepareRole(ctx context.Context, p envoyx.EncodeParams, s
|
||||
// In the future, we can pass down the tree and re-do the deps like that
|
||||
switch n.Config.MergeAlg {
|
||||
case envoyx.OnConflictPanic:
|
||||
err = fmt.Errorf("resource %v already exists, n.Identifiers.Slice")
|
||||
err = errors.New("resource %v already exists, n.Identifiers.Slice")
|
||||
return
|
||||
|
||||
case envoyx.OnConflictReplace:
|
||||
@ -1601,7 +1601,7 @@ func (e StoreEncoder) prepareTemplate(ctx context.Context, p envoyx.EncodeParams
|
||||
// In the future, we can pass down the tree and re-do the deps like that
|
||||
switch n.Config.MergeAlg {
|
||||
case envoyx.OnConflictPanic:
|
||||
err = fmt.Errorf("resource %v already exists, n.Identifiers.Slice")
|
||||
err = errors.New("resource %v already exists, n.Identifiers.Slice")
|
||||
return
|
||||
|
||||
case envoyx.OnConflictReplace:
|
||||
@ -1804,7 +1804,7 @@ func (e StoreEncoder) prepareUser(ctx context.Context, p envoyx.EncodeParams, s
|
||||
// In the future, we can pass down the tree and re-do the deps like that
|
||||
switch n.Config.MergeAlg {
|
||||
case envoyx.OnConflictPanic:
|
||||
err = fmt.Errorf("resource %v already exists, n.Identifiers.Slice")
|
||||
err = errors.New("resource %v already exists, n.Identifiers.Slice")
|
||||
return
|
||||
|
||||
case envoyx.OnConflictReplace:
|
||||
@ -2007,7 +2007,7 @@ func (e StoreEncoder) prepareDalConnection(ctx context.Context, p envoyx.EncodeP
|
||||
// In the future, we can pass down the tree and re-do the deps like that
|
||||
switch n.Config.MergeAlg {
|
||||
case envoyx.OnConflictPanic:
|
||||
err = fmt.Errorf("resource %v already exists, n.Identifiers.Slice")
|
||||
err = errors.New("resource %v already exists, n.Identifiers.Slice")
|
||||
return
|
||||
|
||||
case envoyx.OnConflictReplace:
|
||||
@ -2210,7 +2210,7 @@ func (e StoreEncoder) prepareDalSensitivityLevel(ctx context.Context, p envoyx.E
|
||||
// In the future, we can pass down the tree and re-do the deps like that
|
||||
switch n.Config.MergeAlg {
|
||||
case envoyx.OnConflictPanic:
|
||||
err = fmt.Errorf("resource %v already exists, n.Identifiers.Slice")
|
||||
err = errors.New("resource %v already exists, n.Identifiers.Slice")
|
||||
return
|
||||
|
||||
case envoyx.OnConflictReplace:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user