Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 155 for Parses (0.29 sec)

  1. src/internal/trace/testtrace/format.go

    // license that can be found in the LICENSE file.
    
    package testtrace
    
    import (
    	"bytes"
    	"fmt"
    	"internal/trace/raw"
    	"internal/txtar"
    	"io"
    )
    
    // ParseFile parses a test file generated by the testgen package.
    func ParseFile(testPath string) (io.Reader, *Expectation, error) {
    	ar, err := txtar.ParseFile(testPath)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. src/syscall/dirent.go

    	case 4:
    		return uint64(byteorder.LeUint32(b))
    	case 8:
    		return uint64(byteorder.LeUint64(b))
    	default:
    		panic("syscall: readInt with unsupported size")
    	}
    }
    
    // ParseDirent parses up to max directory entries in buf,
    // appending the names to names. It returns the number of
    // bytes consumed from buf, the number of entries added
    // to names, and the new names slice.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:13:24 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. src/internal/trace/testtrace/expectation.go

    		return fmt.Errorf("unexpected error while reading the trace: want something matching %q, got %s", e.errorMatcher, err.Error())
    	}
    	return nil
    }
    
    // ParseExpectation parses the serialized form of an Expectation.
    func ParseExpectation(data []byte) (*Expectation, error) {
    	exp := new(Expectation)
    	s := bufio.NewScanner(bytes.NewReader(data))
    	if s.Scan() {
    		c := strings.SplitN(s.Text(), " ", 2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. cni/pkg/plugin/sidecar_iptables_linux.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    // This is a sample chained plugin that supports multiple CNI versions. It
    // parses prevResult according to the cniVersion
    package plugin
    
    import (
    	"fmt"
    
    	"github.com/containernetworking/plugins/pkg/ns"
    
    	"istio.io/istio/pkg/log"
    	"istio.io/istio/tools/istio-iptables/pkg/cmd"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 17:36:41 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. src/internal/trace/raw/reader.go

    // license that can be found in the LICENSE file.
    
    package raw
    
    import (
    	"bufio"
    	"encoding/binary"
    	"fmt"
    	"io"
    
    	"internal/trace/event"
    	"internal/trace/version"
    )
    
    // Reader parses trace bytes with only very basic validation
    // into an event stream.
    type Reader struct {
    	r     *bufio.Reader
    	v     version.Version
    	specs []event.Spec
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. pkg/kubelet/types/types.go

    	parsed, _ := time.Parse(logs.RFC3339NanoLenient, timeString)
    	return &Timestamp{parsed}
    }
    
    // Get returns the time as time.Time.
    func (t *Timestamp) Get() time.Time {
    	return t.time
    }
    
    // GetString returns the time in the string format using the RFC3339NanoFixed
    // layout.
    func (t *Timestamp) GetString() string {
    	return t.time.Format(logs.RFC3339NanoFixed)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 13:13:22 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. internal/bucket/replication/destination.go

    	if !d.IsValid() {
    		return Errorf("invalid destination")
    	}
    
    	if !wildcard.Match(d.Bucket, bucketName) {
    		return Errorf("bucket name does not match")
    	}
    	return nil
    }
    
    // parseDestination - parses string to Destination.
    func parseDestination(s string) (Destination, error) {
    	if !strings.HasPrefix(s, DestinationARNPrefix) && !strings.HasPrefix(s, DestinationARNMinIOPrefix) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. internal/config/certs.go

    // ParsePublicCertFile - parses public cert into its *x509.Certificate equivalent.
    func ParsePublicCertFile(certFile string) (x509Certs []*x509.Certificate, err error) {
    	// Read certificate file.
    	var data []byte
    	if data, err = os.ReadFile(certFile); err != nil {
    		return nil, err
    	}
    
    	// Trimming leading and tailing white spaces.
    	data = bytes.TrimSpace(data)
    
    	// Parse all certs in the chain.
    	current := data
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. internal/bucket/versioning/versioning.go

    // prefixes or if ExcludeFolders is true.
    func (v Versioning) PrefixesExcluded() bool {
    	return len(v.ExcludedPrefixes) > 0 || v.ExcludeFolders
    }
    
    // ParseConfig - parses data in given reader to VersioningConfiguration.
    func ParseConfig(reader io.Reader) (*Versioning, error) {
    	var v Versioning
    	if err := xml.NewDecoder(reader).Decode(&v); err != nil {
    		return nil, err
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  10. cmd/bucket-quota.go

    		}
    	}
    
    	if len(dui.BucketsUsage) > 0 {
    		bui, ok := dui.BucketsUsage[bucket]
    		if ok {
    			return bui, nil
    		}
    	}
    	return BucketUsageInfo{}, nil
    }
    
    // parseBucketQuota parses BucketQuota from json
    func parseBucketQuota(bucket string, data []byte) (quotaCfg *madmin.BucketQuota, err error) {
    	quotaCfg = &madmin.BucketQuota{}
    	if err = json.Unmarshal(data, quotaCfg); err != nil {
    		return quotaCfg, err
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 09 00:51:34 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top