Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 253 for confirm (0.27 sec)

  1. istioctl/pkg/util/common.go

    type CommandParseError struct {
    	Err error
    }
    
    func (c CommandParseError) Error() string {
    	return c.Err.Error()
    }
    
    // Confirm waits for a user to confirm with the supplied message.
    func Confirm(msg string, writer io.Writer) bool {
    	for {
    		_, _ = fmt.Fprintf(writer, "%s ", msg)
    		var response string
    		_, err := fmt.Scanln(&response)
    		if err != nil {
    			return false
    		}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  2. internal/event/target/amqp.go

    			Body:         data,
    		}); err != nil {
    		return err
    	}
    
    	// check for publisher confirms only if its enabled
    	if target.args.PublisherConfirms {
    		confirmed := <-confirms
    		if !confirmed.Ack {
    			return fmt.Errorf("failed delivery of delivery tag: %d", confirmed.DeliveryTag)
    		}
    	}
    
    	return nil
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Oct 07 15:07:38 GMT 2023
    - 10K bytes
    - Viewed (0)
  3. operator/cmd/mesh/shared.go

    	return ev == "true" || ev == "1"
    }
    
    func kubeBuilderInstalled() bool {
    	ev := os.Getenv("KUBEBUILDER")
    	return ev == "true" || ev == "1"
    }
    
    // Confirm waits for a user to confirm with the supplied message.
    func Confirm(msg string, writer io.Writer) bool {
    	for {
    		_, _ = fmt.Fprintf(writer, "%s ", msg)
    		var response string
    		_, err := fmt.Scanln(&response)
    		if err != nil {
    			return false
    		}
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  4. operator/cmd/mesh/operator-remove.go

    	if orArgs.revision != "" {
    		message = "Istio operator revision " + orArgs.revision + " will be removed from cluster, Proceed? (y/N)"
    	}
    	if !orArgs.skipConfirmation && !args.DryRun && !Confirm(message, cmd.OutOrStdout()) {
    		cmd.Print("Cancelled.\n")
    		os.Exit(1)
    	}
    
    	l.LogAndPrintf("Removing Istio operator...")
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  5. istioctl/pkg/tag/tag.go

    	"istio.io/istio/istioctl/pkg/util"
    	"istio.io/istio/istioctl/pkg/util/formatting"
    	"istio.io/istio/pkg/config/analysis"
    	"istio.io/istio/pkg/config/analysis/analyzers/webhook"
    	"istio.io/istio/pkg/config/analysis/diag"
    	"istio.io/istio/pkg/config/analysis/local"
    	"istio.io/istio/pkg/config/resource"
    	"istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/maps"
    	"istio.io/istio/pkg/slices"
    )
    
    const (
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/ztunnelserver_test.go

    	addr := fmt.Sprintf("@testaddr%d", ztunnelTestCounter.Add(1))
    	ztun, err := newZtunnelServer(addr, pods)
    	if err != nil {
    		panic(err)
    	}
    	go ztun.Run(ctx)
    
    	// now as a client connect confirm we and get snapshot
    	resolvedAddr, err := net.ResolveUnixAddr("unixpacket", addr)
    	if err != nil {
    		panic(err)
    	}
    	ztunClient, err := net.DialUnix("unixpacket", nil, resolvedAddr)
    	if err != nil {
    		panic(err)
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  7. internal/dsync/dsync_test.go

    }
    
    func BenchmarkMutexNoSpin(b *testing.B) {
    	b.ResetTimer()
    	b.ReportAllocs()
    
    	// This benchmark models a situation where spinning in the mutex should be
    	// non-profitable and allows to confirm that spinning does not do harm.
    	// To achieve this we create excess of goroutines most of which do local work.
    	// These goroutines yield during local work, so that switching from
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 24 03:49:07 GMT 2022
    - 11K bytes
    - Viewed (0)
  8. cmd/sts-handlers_test.go

    	if err != nil {
    		c.Fatalf("Unable to set user: %v", err)
    	}
    
    	err = s.adm.SetPolicy(ctx, policy, accessKey, false)
    	if err != nil {
    		c.Fatalf("Unable to set policy: %v", err)
    	}
    
    	// confirm that the user is able to access the bucket
    	uClient := s.getUserClient(c, accessKey, secretKey, "")
    	versions := c.mustUploadReturnVersions(ctx, uClient, bucket)
    	c.mustNotDelete(ctx, uClient, bucket, versions[0])
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 18 19:09:19 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  9. internal/event/config.go

    	var config Config
    
    	if err := xml.NewDecoder(reader).Decode(&config); err != nil {
    		return nil, err
    	}
    
    	if err := config.Validate(region, targetList); err != nil {
    		return nil, err
    	}
    
    	config.SetRegion(region)
    	// If xml namespace is empty, set a default value before returning.
    	if config.XMLNS == "" {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Nov 16 17:28:29 GMT 2021
    - 8.4K bytes
    - Viewed (0)
  10. internal/config/policy/opa/config.go

    }
    
    // Enabled returns if opa is enabled.
    func Enabled(kvs config.KVS) bool {
    	return kvs.Get(URL) != ""
    }
    
    // LookupConfig lookup Opa from config, override with any ENVs.
    func LookupConfig(kv config.KVS, transport *http.Transport, closeRespFn func(io.ReadCloser)) (Args, error) {
    	args := Args{}
    
    	if err := config.CheckValidKeys(config.PolicyOPASubSys, kv, DefaultKVS); err != nil {
    		return args, err
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Sep 14 21:50:16 GMT 2023
    - 5.2K bytes
    - Viewed (1)
Back to top