Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for missingKey (0.19 sec)

  1. src/text/template/option.go

    //
    //	"missingkey=default" or "missingkey=invalid"
    //		The default behavior: Do nothing and continue execution.
    //		If printed, the result of the index operation is the string
    //		"<no value>".
    //	"missingkey=zero"
    //		The operation returns the zero value for the map type's element.
    //	"missingkey=error"
    //		Execution stops immediately with an error.
    func (t *Template) Option(opt ...string) *Template {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  2. src/testing/slogtest/slogtest.go

    		},
    		checks: []check{
    			hasAttr("a", "b"),
    			missingKey(""),
    			hasAttr("c", "d"),
    		},
    	},
    	{
    		name:        "zero-time",
    		explanation: withSource("a Handler should ignore a zero Record.Time"),
    		f: func(l *slog.Logger) {
    			l.Info("msg", "k", "v")
    		},
    		mod: func(r *slog.Record) { r.Time = time.Time{} },
    		checks: []check{
    			missingKey(slog.TimeKey),
    		},
    	},
    	{
    		name:        "WithAttrs",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:47 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/verification/signatures/CrossBuildSignatureVerificationService.java

                this.hasNoSignatures = hasNoSignatures;
            }
    
            void applyTo(SignatureVerificationResultBuilder builder) {
                if (missingKeys != null) {
                    for (String missingKey : missingKeys) {
                        builder.missingKey(missingKey);
                    }
                }
                if (trustedKeys != null) {
                    for (PGPPublicKey trustedKey : trustedKeys) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 21 14:42:50 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/verification/verifier/DependencyVerifier.java

                }
                Map<String, SignatureVerificationFailure.SignatureError> errors = new HashMap<>();
                if (missingKeys != null) {
                    for (String missingKey : missingKeys) {
                        errors.put(missingKey, error(null, SignatureVerificationFailure.FailureKind.MISSING_KEY));
                    }
                }
                if (failedKeys != null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 21 14:42:50 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/cli-runtime/pkg/printers/template.go

    	}, nil
    }
    
    // AllowMissingKeys tells the template engine if missing keys are allowed.
    func (p *GoTemplatePrinter) AllowMissingKeys(allow bool) {
    	if allow {
    		p.template.Option("missingkey=default")
    	} else {
    		p.template.Option("missingkey=error")
    	}
    }
    
    // PrintObj formats the obj with the Go Template.
    func (p *GoTemplatePrinter) PrintObj(obj runtime.Object, w io.Writer) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 23:00:24 UTC 2019
    - 3.4K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/verification/signatures/SignatureVerificationResultBuilder.java

     * limitations under the License.
     */
    package org.gradle.api.internal.artifacts.verification.signatures;
    
    import org.bouncycastle.openpgp.PGPPublicKey;
    
    public interface SignatureVerificationResultBuilder {
        void missingKey(String keyId);
        void verified(PGPPublicKey key, boolean trusted);
        void failed(PGPPublicKey pgpPublicKey);
        void ignored(String keyId);
    
        void noSignatures();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 21 14:42:50 UTC 2024
    - 978 bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/verification/writer/WriterSignatureVerificationResult.java

        public WriterSignatureVerificationResult(Set<String> ignoredKeys, PgpEntry entry) {
            this.ignoredKeys = ignoredKeys;
            this.entry = entry;
        }
    
        @Override
        public void missingKey(String keyId) {
            ignoredKeys.add(keyId);
            entry.missing();
        }
    
        @Override
        public void verified(PGPPublicKey key, boolean trusted) {
            String keyId = Fingerprint.of(key).toString();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 21 14:42:50 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  8. src/html/template/template.go

    //
    // Known options:
    //
    // missingkey: Control the behavior during execution if a map is
    // indexed with a key that is not present in the map.
    //
    //	"missingkey=default" or "missingkey=invalid"
    //		The default behavior: Do nothing and continue execution.
    //		If printed, the result of the index operation is the string
    //		"<no value>".
    //	"missingkey=zero"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 21:00:46 UTC 2024
    - 17K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/verification/AbstractSignatureVerificationIntegrationTest.groovy

        }
    
        @Override
        def cleanup() {
            keyServerFixture.stop()
        }
    
        protected void serveMissingKey(String keyId = SigningFixtures.validPublicKeyHexString) {
            keyServerFixture.missingKey(keyId)
        }
    
        protected void serveValidKey() {
            keyServerFixture.withDefaultSigningKey()
        }
    
        protected SimpleKeyRing newKeyRing(PGPPublicKey mustBeAfter = SigningFixtures.validPublicKey) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 20 13:00:32 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/verification/signatures/DefaultSignatureVerificationServiceFactory.java

                                throw UncheckedException.throwAsUncheckedException(e);
                            }
                        }
                    });
                    if (missing.get()) {
                        result.missingKey(longIdKey);
                    }
                }
            }
    
            @Override
            public PublicKeyService getPublicKeyService() {
                return keyService;
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 14:54:57 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top