Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 189 for goerrors (0.11 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/meta/errors.go

    func (*AmbiguousKindError) Is(target error) bool {
    	_, ok := target.(*AmbiguousKindError)
    	return ok
    }
    
    func IsAmbiguousError(err error) bool {
    	if err == nil {
    		return false
    	}
    	return errors.Is(err, &AmbiguousResourceError{}) || errors.Is(err, &AmbiguousKindError{})
    }
    
    // NoResourceMatchError is returned if the RESTMapper can't find any match for a resource
    type NoResourceMatchError struct {
    	PartialResource schema.GroupVersionResource
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 11 22:50:51 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  2. pkg/filewatcher/fakefilewatcher_test.go

    			t.Fatalf("Events() failed: got %v want %v", gotEvent, wantEvent)
    		}
    
    		wantError := fmt.Errorf("error=%v", file)
    		fakeWatcher.InjectError(file, wantError)
    		gotError := <-watcher.Errors(file)
    		if gotError != wantError {
    			t.Fatalf("Errors() failed: got %v want %v", gotError, wantError)
    		}
    
    		if err := watcher.Remove(file); err != nil {
    			t.Fatalf("Remove() returned error: %v", err)
    		}
    		gotRemove := <-removedChan
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 14:06:41 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  3. tools/bug-report/pkg/bugreport/bugreport.go

    		return err
    	}
    
    	common.LogAndPrintf("\n\nFetching logs for the following containers:\n\n%s\n", strings.Join(paths, "\n"))
    
    	gatherInfo(runner, config, resources, paths)
    	if len(gErrors) != 0 {
    		log.Error(gErrors.ToError())
    	}
    
    	// TODO: sort by importance and discard any over the size limit.
    	for path, text := range logs {
    		namespace, _, pod, _, err := cluster2.ParsePath(path)
    		if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 05 20:57:29 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  4. src/cmd/go/internal/script/errors.go

    // license that can be found in the LICENSE file.
    
    package script
    
    import (
    	"errors"
    	"fmt"
    )
    
    // ErrUnexpectedSuccess indicates that a script command that was expected to
    // fail (as indicated by a "!" prefix) instead completed successfully.
    var ErrUnexpectedSuccess = errors.New("unexpected success")
    
    // A CommandError describes an error resulting from attempting to execute a
    // specific command.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:18:10 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  5. src/cmd/go/internal/mvs/errors.go

    Bryan C. Mills <******@****.***> 1685560634 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 01 17:22:28 UTC 2023
    - 3K bytes
    - Viewed (0)
  6. src/go/scanner/errors.go

    	}
    	return e.Msg
    }
    
    // ErrorList is a list of *Errors.
    // The zero value for an ErrorList is an empty ErrorList ready to use.
    type ErrorList []*Error
    
    // Add adds an [Error] with given position and error message to an [ErrorList].
    func (p *ErrorList) Add(pos token.Position, msg string) {
    	*p = append(*p, &Error{pos, msg})
    }
    
    // Reset resets an [ErrorList] to no errors.
    func (p *ErrorList) Reset() { *p = (*p)[0:0] }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 3K bytes
    - Viewed (0)
  7. src/internal/types/testdata/check/errors.go

    }
    
    // Don't report spurious errors as a consequence of earlier errors.
    // Add more tests as needed.
    func _() {
    	if err := foo /* ERROR "undefined" */ (); err != nil /* "no error here" */ {}
    }
    
    // Use unqualified names for package-local objects.
    type T struct{}
    var _ int = T /* ERROR "value of type T" */ {} // use T in error message rather than errors.T
    
    // Don't report errors containing "invalid type" (issue #24182).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 12:59:20 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  8. internal/config/errors.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package config
    
    // UI errors
    var (
    	ErrInvalidXLValue = newErrFn(
    		"Invalid drive path",
    		"Please provide a fresh drive for single drive MinIO setup",
    		"MinIO only supports fresh drive paths",
    	)
    
    	ErrInvalidBrowserValue = newErrFn(
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Mar 18 22:25:32 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/errors/errors.go

    limitations under the License.
    */
    
    package errors
    
    import (
    	"errors"
    	"fmt"
    
    	"k8s.io/apimachinery/pkg/util/sets"
    )
    
    // MessageCountMap contains occurrence for each error message.
    type MessageCountMap map[string]int
    
    // Aggregate represents an object that contains multiple errors, but does not
    // necessarily have singular semantic meaning.
    // The aggregate can be used with `errors.Is()` to check for the occurrence of
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 29 09:44:02 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go

    	Type       uint8
    	Addrlen    uint8
    	Hdrlen     uint8
    	Pad_cgo_0  [1]byte
    	Link_state int32
    	Mtu        uint64
    	Metric     uint64
    	Baudrate   uint64
    	Ipackets   uint64
    	Ierrors    uint64
    	Opackets   uint64
    	Oerrors    uint64
    	Collisions uint64
    	Ibytes     uint64
    	Obytes     uint64
    	Imcasts    uint64
    	Omcasts    uint64
    	Iqdrops    uint64
    	Noproto    uint64
    	Lastchange Timespec
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.5K bytes
    - Viewed (0)
Back to top