Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 720 for readFiles (0.62 sec)

  1. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/FileCodecs.kt

    import org.gradle.internal.serialize.graph.readFile
    import org.gradle.internal.serialize.graph.writeFile
    
    
    class DirectoryCodec(private val fileFactory: FileFactory) : Codec<Directory> {
        override suspend fun WriteContext.encode(value: Directory) {
            writeFile(value.asFile)
        }
    
        override suspend fun ReadContext.decode(): Directory {
            return fileFactory.dir(readFile())
        }
    }
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. pkg/test/util/yml/cache_test.go

    	g.Expect(err).To(BeNil())
    
    	file := c.GetFileFor(keys[0])
    	by, err := os.ReadFile(file)
    	g.Expect(err).To(BeNil())
    	g.Expect(strings.TrimSpace(string(by))).To(Equal(strings.TrimSpace(gateway)))
    
    	keys, err = c.Apply(updatedGateway)
    	g.Expect(err).To(BeNil())
    	file = c.GetFileFor(keys[0])
    	by, err = os.ReadFile(file)
    	g.Expect(err).To(BeNil())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/io/Resources.java

       */
      @CanIgnoreReturnValue // some processors won't return a useful result
      @ParametricNullness
      public static <T extends @Nullable Object> T readLines(
          URL url, Charset charset, LineProcessor<T> callback) throws IOException {
        return asCharSource(url, charset).readLines(callback);
      }
    
      /**
       * Reads all of the lines from a URL. The lines do not include line-termination characters, but do
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  4. pilot/pkg/xds/sds_test.go

    	})
    	genericMtlsCertCrl = makeSecret("generic-mtls-crl", map[string]string{
    		credentials.GenericScrtCert:   readFile(filepath.Join(certDir, "dns/cert-chain.pem")),
    		credentials.GenericScrtKey:    readFile(filepath.Join(certDir, "dns/key.pem")),
    		credentials.GenericScrtCaCert: readFile(filepath.Join(certDir, "dns/root-cert.pem")),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 20:55:20 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  5. security/pkg/pki/util/keycertbundle.go

    	*KeyCertBundle, error,
    ) {
    	certBytes, err := os.ReadFile(certFile)
    	if err != nil {
    		return nil, err
    	}
    	privKeyBytes, err := os.ReadFile(privKeyFile)
    	if err != nil {
    		return nil, err
    	}
    	var certChainBytes []byte
    	if len(certChainFiles) > 0 {
    		for _, f := range certChainFiles {
    			var b []byte
    
    			if b, err = os.ReadFile(f); err != nil {
    				return nil, err
    			}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Jan 21 06:07:50 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  6. pkg/volume/util/io_util.go

    func NewIOHandler() IoUtil {
    	return &osIOHandler{}
    }
    
    func (handler *osIOHandler) ReadFile(filename string) ([]byte, error) {
    	return os.ReadFile(filename)
    }
    func (handler *osIOHandler) ReadDir(dirname string) ([]os.FileInfo, error) {
    	return ioutil.ReadDir(dirname)
    }
    func (handler *osIOHandler) Lstat(name string) (os.FileInfo, error) {
    	return os.Lstat(name)
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ivy/ComponentSelectionRulesErrorHandlingIntegTest.groovy

        @Requires(UnitTestPreconditions.IsGroovy3)
        def "produces sensible error when bad code is supplied in component selection rule with Groovy 3"() {
            def lines = buildFile.readLines().size()
            buildFile << """
                dependencies {
                    conf "org.utils:api:1.2"
                }
    
                configurations.all {
                    resolutionStrategy {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  8. src/io/ioutil/ioutil.go

    	return io.ReadAll(r)
    }
    
    // ReadFile reads the file named by filename and returns the contents.
    // A successful call returns err == nil, not err == EOF. Because ReadFile
    // reads the whole file, it does not treat an EOF from Read as an error
    // to be reported.
    //
    // Deprecated: As of Go 1.16, this function simply calls [os.ReadFile].
    func ReadFile(filename string) ([]byte, error) {
    	return os.ReadFile(filename)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. tests/integration/security/ca_custom_root/trust_domain_validation_test.go

    			trustDomains := map[string]struct {
    				cert string
    				key  string
    			}{
    				"foo": {
    					cert: readFile(ctx, "workload-foo-cert.pem"),
    					key:  readFile(ctx, "workload-foo-key.pem"),
    				},
    				"bar": {
    					cert: readFile(ctx, "workload-bar-cert.pem"),
    					key:  readFile(ctx, "workload-bar-key.pem"),
    				},
    			}
    
    			for _, cluster := range ctx.Clusters() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. src/go/parser/performance_test.go

    // license that can be found in the LICENSE file.
    
    package parser
    
    import (
    	"go/token"
    	"os"
    	"testing"
    )
    
    var src = readFile("../printer/nodes.go")
    
    func readFile(filename string) []byte {
    	data, err := os.ReadFile(filename)
    	if err != nil {
    		panic(err)
    	}
    	return data
    }
    
    func BenchmarkParse(b *testing.B) {
    	b.SetBytes(int64(len(src)))
    	for i := 0; i < b.N; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 01 22:35:46 UTC 2022
    - 1.2K bytes
    - Viewed (0)
Back to top