Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 111 for Writer (0.3 sec)

  1. istioctl/pkg/writer/compare/sds/writer.go

    }
    
    // NewSDSWriter generates a new instance which conforms to SDSWriter interface
    func NewSDSWriter(w io.Writer, format Format) SDSWriter {
    	return &sdsWriter{
    		w:      w,
    		output: format,
    	}
    }
    
    // sdsWriter is provided concrete implementation of SDSWriter
    type sdsWriter struct {
    	w      io.Writer
    	output Format
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 21 14:17:23 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/table/writer.go

    	"io"
    	"strings"
    	"unicode/utf8"
    
    	"github.com/fatih/color"
    )
    
    type ColoredTableWriter struct {
    	writer     io.Writer
    	header     Row
    	rows       []Row
    	addRowFunc func(obj interface{}) Row
    }
    
    func NewStyleWriter(writer io.Writer) *ColoredTableWriter {
    	return &ColoredTableWriter{
    		writer: writer,
    		rows:   make([]Row, 0),
    		header: Row{},
    	}
    }
    
    type BuildRowFunc func(obj interface{}) Row
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sat Oct 08 04:41:42 GMT 2022
    - 2.8K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/compare/sds/writer_test.go

    	t.Helper()
    	for _, expected := range expected {
    		if !strings.Contains(output, expected) {
    			t.Errorf("expected %s included in writer output, did not find", expected)
    		}
    	}
    	for _, unexpected := range unexpected {
    		if strings.Contains(output, unexpected) {
    			t.Errorf("unexpected string %s included in writer output", unexpected)
    		}
    	}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri May 29 20:42:01 GMT 2020
    - 4.9K bytes
    - Viewed (0)
  4. istioctl/pkg/writer/table/writer_test.go

    Xiaopeng Han <******@****.***> 1665204102 +0800
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sat Oct 08 04:41:42 GMT 2022
    - 1.6K bytes
    - Viewed (0)
  5. cmd/erasure-encode.go

    import (
    	"context"
    	"fmt"
    	"io"
    	"sync"
    )
    
    // Writes in parallel to writers
    type parallelWriter struct {
    	writers     []io.Writer
    	writeQuorum int
    	errs        []error
    }
    
    // Write writes data to writers in parallel.
    func (p *parallelWriter) Write(ctx context.Context, blocks [][]byte) error {
    	var wg sync.WaitGroup
    
    	for i := range p.writers {
    		if p.writers[i] == nil {
    			p.errs[i] = errDiskNotFound
    			continue
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 3K bytes
    - Viewed (0)
  6. istioctl/pkg/writer/envoy/configdump/configdump.go

    	"sigs.k8s.io/yaml"
    
    	"istio.io/istio/istioctl/pkg/util/configdump"
    	sdscompare "istio.io/istio/istioctl/pkg/writer/compare/sds"
    	"istio.io/istio/pkg/util/protomarshal"
    )
    
    // ConfigWriter is a writer for processing responses from the Envoy Admin config_dump endpoint
    type ConfigWriter struct {
    	Stdout     io.Writer
    	configDump *configdump.Wrapper
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Feb 29 20:46:41 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  7. istioctl/pkg/authz/analyzer.go

    	if err != nil {
    		return nil, fmt.Errorf("failed to get dynamic listener dump: %s", err)
    	}
    
    	return &Analyzer{listenerDump: listeners}, nil
    }
    
    // Print print the analysis results.
    func (a *Analyzer) Print(writer io.Writer) {
    	var listeners []*listener.Listener
    	for _, l := range a.listenerDump.DynamicListeners {
    		listenerTyped := &listener.Listener{}
    		// Support v2 or v3 in config dump. See ads.go:RequestedTypes for more info.
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Jul 13 01:59:17 GMT 2022
    - 2.1K bytes
    - Viewed (0)
  8. istioctl/pkg/authz/listener.go

    		log.Errorf("failed to parse policy name: %s", name)
    		return "", ""
    	}
    	return fmt.Sprintf("%s.%s", parts[2], parts[1]), parts[3]
    }
    
    // Print prints the AuthorizationPolicy in the listener.
    func Print(writer io.Writer, listeners []*listener.Listener) {
    	parsedListeners := parse(listeners)
    	if parsedListeners == nil {
    		return
    	}
    
    	actionToPolicy := map[rbacpb.RBAC_Action]map[string]struct{}{}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Sep 11 15:29:30 GMT 2023
    - 6K bytes
    - Viewed (0)
  9. istioctl/pkg/writer/envoy/configdump/cluster.go

    		}
    	}
    	_, _ = fmt.Fprintln(c.Stdout, string(out))
    	return nil
    }
    
    func (c *ConfigWriter) setupClusterConfigWriter() (*tabwriter.Writer, []*cluster.Cluster, error) {
    	clusters, err := c.retrieveSortedClusterSlice()
    	if err != nil {
    		return nil, nil, err
    	}
    	w := new(tabwriter.Writer).Init(c.Stdout, 0, 8, 5, ' ', 0)
    	return w, clusters, nil
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu May 11 05:38:17 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  10. docs/debugging/inspect/decrypt-v2.go

    package main
    
    import (
    	"errors"
    	"fmt"
    	"io"
    	"os"
    
    	"github.com/minio/madmin-go/v3/estream"
    )
    
    type keepFileErr struct {
    	error
    }
    
    func extractInspectV2(pk []byte, r io.Reader, w io.Writer, okMsg string) error {
    	privKey, err := bytesToPrivateKey(pk)
    	if err != nil {
    		return fmt.Errorf("decoding key returned: %w", err)
    	}
    
    	sr, err := estream.NewReader(r)
    	if err != nil {
    		return err
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 21:22:47 GMT 2024
    - 2.2K bytes
    - Viewed (0)
Back to top