- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for casorder (0.22 sec)
-
src/cmd/compile/internal/walk/select.go
init = append(init, r) } if dflt != nil { ir.SetPos(dflt) dispatch(ir.NewBinaryExpr(base.Pos, ir.OLT, chosen, ir.NewInt(base.Pos, 0)), dflt) } for i, cas := range casorder { ir.SetPos(cas) if i == len(casorder)-1 { dispatch(nil, cas) break } dispatch(ir.NewBinaryExpr(base.Pos, ir.OEQ, chosen, ir.NewInt(base.Pos, int64(i))), cas) } return init }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 01:53:41 UTC 2023 - 7.8K bytes - Viewed (0) -
security/pkg/nodeagent/test/mock/caserver.go
"istio.io/istio/pkg/security" caerror "istio.io/istio/security/pkg/pki/error" "istio.io/istio/security/pkg/pki/util" ) var caServerLog = log.RegisterScope("ca", "CA service debugging") // CAServer is a mock CA server. type CAServer struct { pb.UnimplementedIstioCertificateServiceServer URL string GRPCServer *grpc.Server Authenticators []security.Authenticator certPem []byte keyPem []byte
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 5.9K bytes - Viewed (0) -
pkg/controller/certificates/signer/ca_provider.go
) func newCAProvider(caFile, caKeyFile string) (*caProvider, error) { caLoader, err := dynamiccertificates.NewDynamicServingContentFromFiles("csr-controller", caFile, caKeyFile) if err != nil { return nil, fmt.Errorf("error reading CA cert file %q: %v", caFile, err) } ret := &caProvider{ caLoader: caLoader, } if err := ret.setCA(); err != nil { return nil, err } return ret, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Dec 16 18:33:22 UTC 2021 - 2.8K bytes - Viewed (0) -
pkg/test/csrctrl/signer/ca_provider.go
caLoader: caLoader, caIntermediate: intermediateCA, } if err := ret.setCA(); err != nil { return nil, err } return ret, nil } type caProvider struct { caValue atomic.Value caLoader ca.Root caIntermediate ca.Intermediate } // currentCertContent retrieve current certificate content from cert file func (p *caProvider) currentCertContent() ([]byte, error) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Oct 27 08:14:39 UTC 2021 - 4.4K bytes - Viewed (0) -
pilot/pkg/bootstrap/istio_ca.go
// grpc server. Adds client cert auth and kube (sds enabled) func (s *Server) initCAServer(ca caserver.CertificateAuthority, opts *caOptions) { caServer, startErr := caserver.New(ca, maxWorkloadCertTTL.Get(), opts.Authenticators, s.multiclusterController) if startErr != nil { log.Fatalf("failed to create istio ca server: %v", startErr) } s.caServer = caServer } // RunCA will start the cert signing GRPC service on an existing server.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 17:48:28 UTC 2024 - 20.6K bytes - Viewed (0) -
pkg/test/csrctrl/signer/signer.go
} if appendRootCert { rootCerts, err := util.AppendRootCerts(intermediateCerts, s.caProvider.caLoader.CertFile) if err != nil { return nil, fmt.Errorf("failed to append root certificates (%v)", err) } return rootCerts, nil } return intermediateCerts, nil } func (s *Signer) GetRootCerts() string { return s.caProvider.caLoader.CertFile
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Dec 03 18:57:19 UTC 2021 - 2.5K bytes - Viewed (0) -
docs/debugging/hash-set/main.go
return int(sum64 % uint64(cardinality)) } // hashOrder - hashes input key to return consistent // hashed integer slice. Returned integer order is salted // with an input key. This results in consistent order. // NOTE: collisions are fine, we are not looking for uniqueness // in the slices returned. func hashOrder(key string, cardinality int) []int { if cardinality <= 0 {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 3.7K bytes - Viewed (0) -
cmd/erasure-metadata-utils_test.go
for i, testCase := range testCases { hashedOrder := hashOrder(testCase.objectName, 16) if !reflect.DeepEqual(testCase.hashedOrder, hashedOrder) { t.Errorf("Test case %d: Expected \"%v\" but failed \"%v\"", i+1, testCase.hashedOrder, hashedOrder) } } // Tests hashing order to fail for when order is '-1'. if hashedOrder := hashOrder("This will fail", -1); hashedOrder != nil {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 7.4K bytes - Viewed (0) -
security/pkg/pki/ra/common.go
"istio.io/istio/pkg/slices" raerror "istio.io/istio/security/pkg/pki/error" "istio.io/istio/security/pkg/pki/util" caserver "istio.io/istio/security/pkg/server/ca" ) // RegistrationAuthority : Registration Authority interface. type RegistrationAuthority interface { caserver.CertificateAuthority // SetCACertificatesFromMeshConfig sets the CACertificates using the ones from mesh config
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Sep 11 19:57:30 UTC 2023 - 4.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java
assertFalse(fakePool.hasNext()); } public void testOrdering() { final List<Integer> callOrder = Lists.newArrayList(); class FakeOp implements Runnable { final int op; FakeOp(int op) { this.op = op; } @Override public void run() { callOrder.add(op); } } e.execute(new FakeOp(0)); e.execute(new FakeOp(1));
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 11.4K bytes - Viewed (0)