Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 74 for Bytes (0.28 sec)

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

    package compare
    
    import (
    	"bytes"
    	"os"
    	"testing"
    )
    
    // TestComparatorMatchingConfigs tests the scenario where Istiod and Envoy configurations match
    func TestComparatorMatchingSameConfigs(t *testing.T) {
    	cfg, err := os.ReadFile("testdata/configdump.json")
    	if err != nil {
    		t.Fatalf("Failed to read test data: %v", err)
    	}
    
    	var outputBuffer bytes.Buffer
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Mar 12 10:02:09 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/compare/route.go

    // limitations under the License.
    
    package compare
    
    import (
    	"bytes"
    	"fmt"
    	"time"
    
    	"github.com/pmezard/go-difflib/difflib"
    
    	"istio.io/istio/pkg/util/protomarshal"
    )
    
    // RouteDiff prints a diff between Istiod and Envoy routes to the passed writer
    func (c *Comparator) RouteDiff() error {
    	envoyBytes, istiodBytes := &bytes.Buffer{}, &bytes.Buffer{}
    	envoyRouteDump, err := c.envoy.GetDynamicRouteDump(true)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Mar 12 10:02:09 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  3. istioctl/cmd/options_test.go

    `
    
    func TestLogHelp(t *testing.T) {
    	var out bytes.Buffer
    	rootCmd := GetRootCmd([]string{"options"})
    	rootCmd.SetOut(&out)
    	rootCmd.SetErr(&out)
    
    	fErr := rootCmd.Execute()
    	if fErr != nil {
    		t.Fatalf("options failed with %v and %q\n", fErr, out.String())
    	}
    	if !regexp.MustCompile(expectedOutput).Match(out.Bytes()) {
    		t.Fatalf("'istioctl options' expected output\n%s\n  got\n%s",
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Sep 14 02:38:54 GMT 2022
    - 1.9K bytes
    - Viewed (0)
  4. istioctl/pkg/writer/envoy/configdump/secret_test.go

    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package configdump
    
    import (
    	"bytes"
    	"io"
    	"os"
    	"testing"
    
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestSDSWriter_ValidCert(t *testing.T) {
    	configDumpFile, err := os.Open("testdata/secret/config_dump.json")
    	if err != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Jun 06 15:14:48 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  5. operator/cmd/mesh/profile-list_test.go

    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package mesh
    
    import (
    	"bytes"
    	"path/filepath"
    	"testing"
    
    	. "github.com/onsi/gomega"
    
    	"istio.io/istio/istioctl/pkg/cli"
    	"istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/test/env"
    )
    
    func TestProfileList(t *testing.T) {
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  6. istioctl/pkg/writer/table/writer_test.go

    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package table
    
    import (
    	"bytes"
    	"testing"
    
    	"github.com/fatih/color"
    )
    
    type testObject struct {
    	name      string
    	namespace string
    	version   string
    }
    
    var newTestObject = func(name, namespace, version string) testObject {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Oct 08 04:41:42 GMT 2022
    - 1.6K bytes
    - Viewed (0)
  7. cni/pkg/nodeagent/podcgroupns.go

    //
    // For more information, see:
    //   - http://man7.org/linux/man-pages/man7/cgroups.7.html
    //   - https://www.kernel.org/doc/Documentation/cgroup-v2.txt
    func GetCgroups(procCgroupData bytes.Buffer) ([]Cgroup, error) {
    	reader := bytes.NewReader(procCgroupData.Bytes())
    	var cgroups []Cgroup
    	scanner := bufio.NewScanner(reader)
    
    	for scanner.Scan() {
    		token := scanner.Text()
    		substrings := strings.SplitN(token, ":", 3)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 11K bytes
    - Viewed (0)
  8. manifests/addons/dashboards/pilot-dashboard.json

                    "uid": "${datasource}"
                  },
                  "expr": "max(rate(envoy_cluster_upstream_cx_rx_bytes_total{cluster_name=\"xds-grpc\"}[1m]))",
                  "format": "time_series",
                  "hide": false,
                  "intervalFactor": 1,
                  "legendFormat": "XDS Response Bytes Max",
                  "refId": "D"
                },
                {
                  "datasource": {
    Json
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Mar 27 03:47:04 GMT 2024
    - 61K bytes
    - Viewed (0)
  9. cni/pkg/plugin/cnieventclient.go

    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package plugin
    
    import (
    	"bytes"
    	"context"
    	"encoding/json"
    	"fmt"
    	"net"
    	"net/http"
    	"time"
    
    	"github.com/containernetworking/cni/pkg/skel"
    	cniv1 "github.com/containernetworking/cni/pkg/types/100"
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  10. cni/pkg/util/executil.go

    }
    
    func ExecuteOutput(cmd string, args ...string) (string, error) {
    	externalCommand := exec.Command(cmd, args...)
    	stdout := &bytes.Buffer{}
    	stderr := &bytes.Buffer{}
    	externalCommand.Stdout = stdout
    	externalCommand.Stderr = stderr
    
    	err := externalCommand.Run()
    
    	if err != nil || len(stderr.Bytes()) != 0 {
    		return stderr.String(), err
    	}
    
    	return strings.TrimSuffix(stdout.String(), "\n"), err
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 1.8K bytes
    - Viewed (0)
Back to top