Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for multierror (0.14 sec)

  1. pkg/util/istiomultierror/util.go

    package istiomultierror
    
    import (
    	"fmt"
    	"strings"
    
    	"github.com/hashicorp/go-multierror"
    )
    
    // MultiErrorFormat provides a format for multierrors. This matches the default format, but if there
    // is only one error we will not expand to multiple lines.
    func MultiErrorFormat() multierror.ErrorFormatFunc {
    	return func(es []error) string {
    		if len(es) == 1 {
    			return es[0].Error()
    		}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 09 05:07:21 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. pilot/pkg/model/validation.go

    	if len(s.Hostname) == 0 {
    		errs = multierror.Append(errs, fmt.Errorf("invalid empty hostname"))
    	}
    	parts := strings.Split(string(s.Hostname), ".")
    	for _, part := range parts {
    		if !labels.IsDNS1123Label(part) {
    			errs = multierror.Append(errs, fmt.Errorf("invalid hostname part: %q", part))
    		}
    	}
    
    	// Require at least one port
    	if len(s.Ports) == 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. pkg/test/framework/components/istio/cleanup.go

    		return nil
    	})
    }
    
    func (i *istioImpl) cleanupCluster(c cluster.Cluster, errG *multierror.Group) {
    	scopes.Framework.Infof("clean up cluster %s", c.Name())
    	errG.Go(func() (err error) {
    		if e := i.installer.Close(c); e != nil {
    			err = multierror.Append(err, e)
    		}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. pkg/config/analysis/analyzers/schema/validation.go

    		})
    		if err != nil {
    			if multiErr, ok := err.(*multierror.Error); ok {
    				for _, err := range multiErr.WrappedErrors() {
    					ctx.Report(gv, morePreciseMessage(r, err, true))
    				}
    			} else {
    				ctx.Report(gv, morePreciseMessage(r, err, true))
    			}
    		}
    		if warnings != nil {
    			if multiErr, ok := warnings.(*multierror.Error); ok {
    				for _, err := range multiErr.WrappedErrors() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jan 08 07:38:28 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. pilot/pkg/security/authz/builder/logger.go

    package builder
    
    import (
    	"fmt"
    	"strings"
    
    	"github.com/hashicorp/go-multierror"
    
    	"istio.io/istio/pkg/log"
    	"istio.io/istio/pkg/util/istiomultierror"
    )
    
    var authzLog = log.RegisterScope("authorization", "Istio Authorization Policy")
    
    type AuthzLogger struct {
    	debugMsg []string
    	errMsg   *multierror.Error
    }
    
    func (al *AuthzLogger) AppendDebugf(format string, args ...any) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  6. pkg/test/echo/server/forwarder/executor.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package forwarder
    
    import (
    	"context"
    	"fmt"
    
    	"github.com/hashicorp/go-multierror"
    	"go.uber.org/atomic"
    	"golang.org/x/sync/semaphore"
    )
    
    const (
    	maxConcurrencyPerForward = 20
    )
    
    type executor struct {
    	totalRequests  *atomic.Uint64
    	activeRequests *atomic.Uint64
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 10 18:09:08 UTC 2022
    - 2K bytes
    - Viewed (0)
  7. tests/integration/pilot/revisioned_upgrade_test.go

    // enableDefaultInjection takes a namespaces and relabels it such that it will have a default sidecar injected
    func enableDefaultInjection(ns namespace.Instance) error {
    	var errs *multierror.Error
    	errs = multierror.Append(errs, ns.SetLabel("istio-injection", "enabled"))
    	errs = multierror.Append(errs, ns.RemoveLabel("istio.io/rev"))
    	return errs.ErrorOrNil()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. pkg/test/framework/components/environment/kube/kube.go

    	var clusters cluster.Clusters
    	for i, cfg := range configs {
    		c, err := buildCluster(cfg, allClusters)
    		if err != nil {
    			errs = multierror.Append(errs, fmt.Errorf("failed building cluster from config %d: %v", i, err))
    			continue
    		}
    		if _, ok := allClusters[c.Name()]; ok {
    			errs = multierror.Append(errs, fmt.Errorf("more than one cluster named %s", c.Name()))
    			continue
    		}
    		allClusters[c.Name()] = c
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  9. pkg/test/framework/errors/deprecations.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package errors
    
    import (
    	"bufio"
    	"fmt"
    	"strings"
    
    	"github.com/hashicorp/go-multierror"
    )
    
    type DeprecatedError struct {
    	msg string
    }
    
    func NewDeprecatedError(format string, args ...any) error {
    	return &DeprecatedError{fmt.Sprintf(format, args...)}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  10. pkg/config/security/security.go

    }
    
    func ValidateIPs(ips []string) error {
    	var errs *multierror.Error
    	for _, v := range ips {
    		if strings.Contains(v, "/") {
    			if _, err := netip.ParsePrefix(v); err != nil {
    				errs = multierror.Append(errs, fmt.Errorf("bad CIDR range (%s): %v", v, err))
    			}
    		} else {
    			if _, err := netip.ParseAddr(v); err != nil {
    				errs = multierror.Append(errs, fmt.Errorf("bad IP address (%s)", v))
    			}
    		}
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 07 04:43:34 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top