Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 240 for nile (0.16 sec)

  1. istioctl/pkg/proxystatus/proxystatus.go

    func readConfigFile(filename string) ([]byte, error) {
    	file := os.Stdin
    	if filename != "-" {
    		var err error
    		file, err = os.Open(filename)
    		if err != nil {
    			return nil, err
    		}
    	}
    	defer func() {
    		if err := file.Close(); err != nil {
    			log.Errorf("failed to close %s: %s", filename, err)
    		}
    	}()
    	data, err := io.ReadAll(file)
    	if err != nil {
    		return nil, err
    	}
    	return data, nil
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  2. istioctl/pkg/util/formatting/formatter.go

    		return ""
    	}
    	return "\033[0m"
    }
    
    func IstioctlColorDefault(writer io.Writer) bool {
    	if strings.EqualFold(termEnvVar.Get(), "dumb") {
    		return false
    	}
    
    	file, ok := writer.(*os.File)
    	if ok {
    		if !isatty.IsTerminal(file.Fd()) {
    			return false
    		}
    	}
    
    	return true
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jul 11 02:41:45 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  3. cni/pkg/repair/netns.go

    	if err != nil {
    		return 0, fmt.Errorf("find link for %v: %v", ip, err)
    	}
    	return link.Attrs().NetNsID, nil
    }
    
    func getLinkWithDestinationOf(ip string) (netlink.Link, error) {
    	routes, err := netlink.RouteListFiltered(
    		netlink.FAMILY_V4,
    		&netlink.Route{Dst: &net.IPNet{IP: net.ParseIP(ip), Mask: net.CIDRMask(32, 32)}},
    		netlink.RT_FILTER_DST)
    	if err != nil {
    		return nil, err
    	}
    
    	if len(routes) == 0 {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Dec 20 22:14:13 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  4. operator/cmd/mesh/manifest-diff.go

    				return nil
    			}
    
    			equal, err = compareManifestsFromFiles(args, diffArgs.verbose,
    				diffArgs.renameResources, diffArgs.selectResources, diffArgs.ignoreResources)
    			if err != nil {
    				return err
    			}
    			if !equal {
    				os.Exit(1)
    			}
    			return nil
    		},
    	}
    	return cmd
    }
    
    // compareManifestsFromFiles compares two manifest files
    func compareManifestsFromFiles(args []string, verbose bool,
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  5. operator/cmd/mesh/profile-dump_test.go

    			if err != nil {
    				t.Fatal(err)
    			}
    			// installPackagePath may change, we will remove it for consistent output
    			got = installPackagePathRegex.ReplaceAllString(got, "")
    
    			if refreshGoldenFiles() {
    				t.Logf("Refreshing golden file for %s", outPath)
    				if err := os.WriteFile(outPath, []byte(got), 0o644); err != nil {
    					t.Error(err)
    				}
    			}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jan 20 11:44:25 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  6. operator/cmd/mesh/manifest_shared_test.go

    	if err != nil {
    		return nil, fmt.Errorf("error %s: %s", err, manifest)
    	}
    	return NewObjectSet(getAllIstioObjects()), nil
    }
    
    // fakeApplyExtraResources applies any extra resources for the given test name.
    func fakeApplyExtraResources(inFile string) error {
    	reconciler, err := helmreconciler.NewHelmReconciler(testClient, nil, nil, nil)
    	if err != nil {
    		return err
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Feb 20 22:39:28 GMT 2024
    - 11.7K bytes
    - Viewed (1)
  7. istioctl/pkg/workload/workload_test.go

    			expectedOutput:    "Error: expecting a WorkloadGroup artifact file or the name and namespace of an existing WorkloadGroup\n",
    		},
    		{
    			description:       "Invalid command args - missing valid input spec",
    			args:              strings.Split("entry configure -n bar -o temp --clusterID cid", " "),
    			expectedException: true,
    			expectedOutput:    "Error: expecting a WorkloadGroup artifact file or the name and namespace of an existing WorkloadGroup\n",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Mar 27 16:59:05 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  8. istioctl/pkg/writer/compare/cluster_test.go

    // Copyright Istio Authors
    //
    // Licensed under the Apache License, Version 2.0 (the "License");
    // you may not use this file except in compliance with the License.
    // You may obtain a copy of the License at
    //
    //     http://www.apache.org/licenses/LICENSE-2.0
    //
    // Unless required by applicable law or agreed to in writing, software
    // distributed under the License is distributed on an "AS IS" BASIS,
    Go
    - Registered: Wed Mar 06 22:53:12 GMT 2024
    - Last Modified: Fri May 29 20:42:01 GMT 2020
    - 602 bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/podcgroupns_other.go

    //go:build !linux
    // +build !linux
    
    // Copyright Istio Authors
    //
    // Licensed under the Apache License, Version 2.0 (the "License");
    // you may not use this file except in compliance with the License.
    // You may obtain a copy of the License at
    //
    //     http://www.apache.org/licenses/LICENSE-2.0
    //
    // Unless required by applicable law or agreed to in writing, software
    // distributed under the License is distributed on an "AS IS" BASIS,
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 781 bytes
    - Viewed (0)
  10. cni/pkg/plugin/sidecar_intercept_rule_mgr.go

    // Copyright Istio Authors
    //
    // Licensed under the Apache License, Version 2.0 (the "License");
    // you may not use this file except in compliance with the License.
    // You may obtain a copy of the License at
    //
    //     http://www.apache.org/licenses/LICENSE-2.0
    //
    // Unless required by applicable law or agreed to in writing, software
    // distributed under the License is distributed on an "AS IS" BASIS,
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 940 bytes
    - Viewed (0)
Back to top