- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 547 for Errorf (0.25 sec)
-
internal/crypto/error.go
func Errorf(format string, a ...interface{}) error { e := fmt.Errorf(format, a...) ee := Error{} ee.msg = e.Error() ee.cause = errors.Unwrap(e) return ee } // Unwrap the internal error. func (e Error) Unwrap() error { return e.cause } // Error 'error' compatible method. func (e Error) Error() string { if e.msg == "" { return "crypto: cause <nil>" } return e.msg } var (
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Thu Mar 28 17:44:56 GMT 2024 - 4.4K bytes - Viewed (0) -
istioctl/pkg/admin/istiodconfig.go
return nil, fmt.Errorf("cannot deserialize response %s", err) } return scopeInfos, nil } func (c *ControlzClient) PutScope(scope *ScopeInfo) error { var jsonScopeInfo bytes.Buffer err := json.NewEncoder(&jsonScopeInfo).Encode(scope) if err != nil { return fmt.Errorf("cannot serialize scope %+v", *scope) } req, err := http.NewRequest(http.MethodPut, c.baseURL.String()+"/"+scope.Name, &jsonScopeInfo)
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Sat Apr 13 05:23:38 GMT 2024 - 13.5K bytes - Viewed (0) -
docs/debugging/inspect/decrypt-v2.go
return nil } return errors.New("no data found on stream") } if errors.Is(err, estream.ErrNoKey) { if stream.Name == "inspect.zip" { return errors.New("incorrect private key") } if err := stream.Skip(); err != nil { return fmt.Errorf("stream skip: %w", err) } continue } if extracted { return keepFileErr{fmt.Errorf("next stream: %w", err)} }
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Thu Apr 11 21:22:47 GMT 2024 - 2.2K bytes - Viewed (0) -
cni/pkg/nodeagent/server.go
client, err := buildKubeClient(args.KubeConfig) if err != nil { return nil, fmt.Errorf("error initializing kube client: %w", err) } log.Debug("creating ipsets in the node netns") set, err := createHostsideProbeIpset() if err != nil { return nil, fmt.Errorf("error initializing hostside probe ipset: %w", err) }
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Fri Apr 12 01:42:30 GMT 2024 - 7.1K bytes - Viewed (0) -
istioctl/pkg/authz/authz.go
Args: func(cmd *cobra.Command, args []string) error { if len(args) > 1 { cmd.Println(cmd.UsageString()) return fmt.Errorf("check requires only <pod-name>[.<pod-namespace>]") } return nil }, RunE: func(cmd *cobra.Command, args []string) error { kubeClient, err := ctx.CLIClient() if err != nil { return fmt.Errorf("failed to create k8s client: %w", err) }
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Sat Apr 13 05:23:38 GMT 2024 - 5K bytes - Viewed (0) -
istioctl/pkg/kubeinject/kubeinject.go
} } return e, fmt.Errorf("could not find valid mutatingWebhookConfiguration %q from cluster", defaultWebhookName) } func validateFlags() error { var err error if inFilename == "" { err = multierror.Append(err, errors.New("filename not specified (see --filename or -f)")) } if meshConfigFile == "" && meshConfigMapName == "" && iopFilename == "" { err = multierror.Append(err,
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Fri Mar 29 02:29:02 GMT 2024 - 21.6K bytes - Viewed (0) -
cmd/net_test.go
switch { case testCase.expectedErr == nil: if err != nil { t.Errorf("error: expected = <nil>, got = %v", err) } case err == nil: t.Errorf("error: expected = %v, got = <nil>", testCase.expectedErr) case testCase.expectedErr.Error() != err.Error(): t.Errorf("error: expected = %v, got = %v", testCase.expectedErr, err) } }) } }
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Fri Apr 19 08:43:09 GMT 2024 - 9.3K bytes - Viewed (0) -
istioctl/pkg/proxyconfig/proxyconfig.go
`, Aliases: []string{"o"}, Args: func(cmd *cobra.Command, args []string) error { if labelSelector == "" && len(args) < 1 { cmd.Println(cmd.UsageString()) return fmt.Errorf("log requires pod name or --selector") } if reset && loggerLevelString != "" { cmd.Println(cmd.UsageString()) return fmt.Errorf("--level cannot be combined with --reset") }
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Tue Apr 16 03:28:36 GMT 2024 - 48K bytes - Viewed (0) -
istioctl/pkg/waypoint/waypoint.go
return multiErr.ErrorOrNil() } func labelNamespaceWithWaypoint(kubeClient kube.CLIClient, ns string) error { nsObj, err := kubeClient.Kube().CoreV1().Namespaces().Get(context.Background(), ns, metav1.GetOptions{}) if errors.IsNotFound(err) { return fmt.Errorf("namespace: %s not found", ns) } else if err != nil { return fmt.Errorf("failed to get namespace %s: %v", ns, err) } if nsObj.Labels == nil {
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Mon Apr 22 20:20:40 GMT 2024 - 15K bytes - Viewed (0) -
tests/preload_test.go
t.Errorf("failed to query, got error %v, account: %#v", err, user4.Account) } if err := DB.Preload(clause.Associations, func(tx *gorm.DB) *gorm.DB { return tx.Unscoped() }).Take(&user4, "id = ?", users3[0].ID).Error; err != nil || user4.Account.ID == 0 { t.Errorf("failed to query, got error %v, account: %#v", err, user4.Account) } }
Go - Registered: Sun Apr 21 09:35:09 GMT 2024 - Last Modified: Mon Apr 15 03:20:20 GMT 2024 - 13.4K bytes - Viewed (0)