Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ValidPath (0.19 sec)

  1. cmd/batch-replicate.go

    	Path     string                        `yaml:"path" json:"path"`
    	Creds    BatchJobReplicateCredentials  `yaml:"credentials" json:"credentials"`
    }
    
    // ValidPath returns true if path is valid
    func (t BatchJobReplicateTarget) ValidPath() bool {
    	return t.Path == "on" || t.Path == "off" || t.Path == "auto" || t.Path == ""
    }
    
    // BatchJobReplicateSource describes source element of the replication job that is
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Nov 22 18:51:46 GMT 2023
    - 6.3K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/fakes_test.go

    // with the Op field set to "open", the Path field set to name,
    // and the Err field describing the problem.
    //
    // Open should reject attempts to open names that do not satisfy
    // ValidPath(name), returning a *PathError with Err set to
    // ErrInvalid or ErrNotExist.
    func (ffs *fakeFsWithFakeFds) Open(name string) (fs.File, error) {
    	f, err := ffs.ReadDirFS.Open(name)
    	if err != nil {
    		return nil, err
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  3. cmd/batch-handlers.go

    		return errInvalidArgument
    	}
    
    	if r.Source.Endpoint != "" && !r.Source.Type.isMinio() && !r.Source.ValidPath() {
    		return errInvalidArgument
    	}
    
    	if r.Target.Endpoint != "" && !r.Target.Type.isMinio() && !r.Target.ValidPath() {
    		return errInvalidArgument
    	}
    
    	if !r.Target.Creds.Empty() {
    		if err := r.Target.Creds.Validate(); err != nil {
    			return err
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 08 14:11:38 GMT 2024
    - 55.2K bytes
    - Viewed (0)
  4. src/archive/zip/reader.go

    // using the semantics of fs.FS.Open:
    // paths are always slash separated, with no
    // leading / or ../ elements.
    func (r *Reader) Open(name string) (fs.File, error) {
    	r.initFileList()
    
    	if !fs.ValidPath(name) {
    		return nil, &fs.PathError{Op: "open", Path: name, Err: fs.ErrInvalid}
    	}
    	e := r.openLookup(name)
    	if e == nil {
    		return nil, &fs.PathError{Op: "open", Path: name, Err: fs.ErrNotExist}
    	}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  5. api/go1.16.txt

    pkg io/fs, func ReadDir(FS, string) ([]DirEntry, error)
    pkg io/fs, func ReadFile(FS, string) ([]uint8, error)
    pkg io/fs, func Stat(FS, string) (FileInfo, error)
    pkg io/fs, func Sub(FS, string) (FS, error)
    pkg io/fs, func ValidPath(string) bool
    pkg io/fs, func WalkDir(FS, string, WalkDirFunc) error
    pkg io/fs, method (*PathError) Error() string
    pkg io/fs, method (*PathError) Timeout() bool
    pkg io/fs, method (*PathError) Unwrap() error
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Dec 02 16:30:41 GMT 2022
    - 479.2K bytes
    - Viewed (0)
Back to top