Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 200 for newRule (0.12 sec)

  1. pkg/apis/rbac/helpers.go

    // out in a literal and allows us to perform some basic checking during construction
    // +k8s:deepcopy-gen=false
    type PolicyRuleBuilder struct {
    	PolicyRule PolicyRule
    }
    
    // NewRule returns new PolicyRule made by input verbs.
    func NewRule(verbs ...string) *PolicyRuleBuilder {
    	return &PolicyRuleBuilder{
    		PolicyRule: PolicyRule{Verbs: sets.NewString(verbs...).List()},
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 23 15:11:00 UTC 2020
    - 12.1K bytes
    - Viewed (0)
  2. pkg/apis/rbac/v1/helpers.go

    // out in a literal and allows us to perform some basic checking during construction
    type PolicyRuleBuilder struct {
    	PolicyRule rbacv1.PolicyRule `protobuf:"bytes,1,opt,name=policyRule"`
    }
    
    func NewRule(verbs ...string) *PolicyRuleBuilder {
    	return &PolicyRuleBuilder{
    		PolicyRule: rbacv1.PolicyRule{Verbs: verbs},
    	}
    }
    
    func (r *PolicyRuleBuilder) Groups(groups ...string) *PolicyRuleBuilder {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 18 15:37:57 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/FilesFileTraverserTest.java

      public void testFileTraverser_multipleDirectoryLayers_breadthFirstStartsWithTopLayer()
          throws Exception {
        File fileA = newFile("file-a");
        File dir1 = newDir("dir-1");
        newFile("dir-1/file-b");
        newFile("dir-1/dir-2");
    
        assertThat(Iterables.limit(Files.fileTraverser().breadthFirst(rootDir), 3))
            .containsExactly(rootDir, fileA, dir1);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Apr 21 20:17:27 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/samples/build-organization/multi-project-with-convention-plugins/kotlin/buildSrc/src/test/kotlin/com/example/LibraryPluginTest.kt

                            url = uri("build/test-repo")
                        }
                    }
                }
            """)
    
            testProjectDir.newFolder("src", "main", "java", "com", "example")
            testProjectDir.newFile("src/main/java/com/example/Util.java").writeText("""
                package com.example;
    
                public class Util {
                    public static void someUtil() {
                    }
                }
            """)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/testFixtures/kotlin/org/gradle/kotlin/dsl/fixtures/AbstractKotlinIntegrationTest.kt

            withSettingsIn(".", script, produceFile)
    
        protected
        fun withSettingsIn(baseDir: String, script: String, produceFile: (String) -> File = ::newFile): File =
            withFile("$baseDir/settings.gradle.kts", script, produceFile)
    
        protected
        fun withBuildScript(script: String, produceFile: (String) -> File = ::newFile): File =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 15 16:44:39 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/dict/kuromoji/KuromojiFile.java

            protected File newFile;
    
            protected Writer writer;
    
            protected KuromojiItem item;
    
            protected KuromojiUpdater(final KuromojiItem newItem) {
                try {
                    newFile = ComponentUtil.getSystemHelper().createTempFile(KUROMOJI, ".txt");
                    writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(newFile), Constants.UTF_8));
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  7. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/fixture/PerformanceTestScenarioDefinitionVerifier.groovy

        static void main(String[] args) {
            File oldFile = new File(args[0])
            File newFile = new File(args[1])
            PerformanceTestScenarioDefinition oldJson = new ObjectMapper().readValue(oldFile, PerformanceTestScenarioDefinition).sort()
            PerformanceTestScenarioDefinition newJson = new ObjectMapper().readValue(newFile, PerformanceTestScenarioDefinition).sort()
            if (oldJson != newJson) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/dict/synonym/SynonymFile.java

            protected File newFile;
    
            protected Writer writer;
    
            protected SynonymItem item;
    
            protected SynonymUpdater(final SynonymItem newItem) {
                try {
                    newFile = ComponentUtil.getSystemHelper().createTempFile(SYNONYM, ".txt");
                    writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(newFile), Constants.UTF_8));
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/dict/mapping/CharMappingFile.java

            protected File newFile;
    
            protected Writer writer;
    
            protected CharMappingItem item;
    
            protected MappingUpdater(final CharMappingItem newItem) {
                try {
                    newFile = ComponentUtil.getSystemHelper().createTempFile(MAPPING, ".txt");
                    writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(newFile), Constants.UTF_8));
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  10. src/cmd/fix/main.go

    	newSrc, err := gofmtFile(file)
    	if err != nil {
    		return err
    	}
    	if !bytes.Equal(newSrc, src) {
    		newFile, err := parser.ParseFile(fset, filename, newSrc, parserMode)
    		if err != nil {
    			return err
    		}
    		file = newFile
    		fmt.Fprintf(&fixlog, " fmt")
    	}
    
    	// Apply all fixes to file.
    	newFile := file
    	fixed := false
    	for _, fix := range fixes {
    		if allowed != nil && !allowed[fix.name] {
    			continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top