Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for json (0.13 sec)

  1. istioctl/pkg/multixds/gather.go

    // limitations under the License.
    
    package multixds
    
    // multixds knows how to target either central Istiod or all the Istiod pods on a cluster.
    
    import (
    	"context"
    	"encoding/json"
    	"errors"
    	"fmt"
    	"io"
    	"net"
    	"net/url"
    	"os"
    	"strings"
    
    	discovery "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3"
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 08 08:38:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  2. cni/pkg/install/cniconfig.go

    	var istioMap map[string]any
    	err := json.Unmarshal(newCNIConfig, &istioMap)
    	if err != nil {
    		return nil, fmt.Errorf("error loading Istio CNI config (JSON error): %v", err)
    	}
    
    	var existingMap map[string]any
    	err = json.Unmarshal(existingCNIConfig, &existingMap)
    	if err != nil {
    		return nil, fmt.Errorf("error loading existing CNI config (JSON error): %v", err)
    	}
    
    	delete(istioMap, "cniVersion")
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/envoy/configdump/listener.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 (
    	"encoding/json"
    	"fmt"
    	"reflect"
    	"sort"
    	"strings"
    	"text/tabwriter"
    
    	matcher "github.com/cncf/xds/go/xds/type/matcher/v3"
    	listener "github.com/envoyproxy/go-control-plane/envoy/config/listener/v3"
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Nov 29 12:37:14 GMT 2023
    - 18.1K bytes
    - Viewed (0)
  4. istioctl/pkg/workload/workload_test.go

    		})
    	}
    }
    
    func TestWorkloadEntryToPodPortsMeta(t *testing.T) {
    	cases := []struct {
    		description string
    		ports       map[string]uint32
    		want        string
    	}{
    		{
    			description: "test json marshal",
    			ports: map[string]uint32{
    				"HTTP":  80,
    				"HTTPS": 443,
    			},
    			want: `[{"name":"HTTP","containerPort":80,"protocol":""},{"name":"HTTPS","containerPort":443,"protocol":""}]`,
    		},
    	}
    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)
  5. cni/pkg/iptables/iptables.go

    )
    
    var log = istiolog.RegisterScope("iptables", "iptables helper")
    
    type Config struct {
    	RestoreFormat bool `json:"RESTORE_FORMAT"`
    	TraceLogging  bool `json:"IPTABLES_TRACE_LOGGING"`
    	EnableIPv6    bool `json:"ENABLE_INBOUND_IPV6"`
    	RedirectDNS   bool `json:"REDIRECT_DNS"`
    }
    
    type IptablesConfigurator struct {
    	ext    dep.Dependencies
    	nlDeps NetlinkDependencies
    	cfg    *Config
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue May 07 19:54:50 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  6. istioctl/pkg/proxyconfig/proxyconfig.go

    	if err != nil {
    		return "", err
    	}
    	var values struct {
    		SidecarInjectorWebhook struct {
    			Global struct {
    				Proxy struct {
    					LogLevel string `json:"logLevel"`
    				} `json:"proxy"`
    			} `json:"global"`
    		} `json:"sidecarInjectorWebhook"`
    	}
    	if err := yaml.Unmarshal([]byte(valuesConfig), &values); err != nil {
    		return "", fmt.Errorf("failed to parse values config: %v [%v]", err, valuesConfig)
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 16 03:28:36 GMT 2024
    - 48K bytes
    - Viewed (0)
  7. istioctl/pkg/admin/istiodconfig.go

    		outputFormat: outputFormat,
    	}}
    }
    
    type ScopeInfo struct {
    	Name            string `json:"name"`
    	Description     string `json:"description,omitempty"`
    	OutputLevel     string `json:"output_level,omitempty"`
    	StackTraceLevel string `json:"stack_trace_level,omitempty"`
    	LogCallers      bool   `json:"log_callers,omitempty"`
    }
    
    type ScopeLevelPair struct {
    	scope    string
    	logLevel string
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  8. cni/test/install_cni.go

    		t.Fatalf("Failed to remove dir %v, err: %v", dir, err)
    	}
    }
    
    // Removes Istio CNI's config from the CNI config file
    func rmCNIConfig(cniConfigFilepath string, t *testing.T) {
    	t.Helper()
    
    	// Read JSON from CNI config file
    	cniConfigMap, err := util.ReadCNIConfigMap(cniConfigFilepath)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Find Istio CNI and remove from plugin list
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  9. istioctl/pkg/kubeinject/kubeinject.go

    			RequestSubResource: "",
    			Name:               pod.Name,
    			Namespace:          deploymentNS,
    		},
    		Response: nil,
    	}
    	revBytes, err := json.Marshal(rev)
    	if err != nil {
    		return nil, err
    	}
    	resp, err := client.Post(address, "application/json", bytes.NewBuffer(revBytes))
    	if err != nil {
    		return nil, err
    	}
    	defer resp.Body.Close()
    	body, err := io.ReadAll(resp.Body)
    	if err != nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 29 02:29:02 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  10. istioctl/pkg/validate/validate.go

    Example resource specifications include:
       '-f rsrc.yaml'
       '--filename=rsrc.json'`)
    
    	validFields = map[string]struct{}{
    		"apiVersion": {},
    		"kind":       {},
    		"metadata":   {},
    		"spec":       {},
    		"status":     {},
    	}
    
    	serviceProtocolUDP = "UDP"
    
    	fileExtensions = []string{".json", ".yaml", ".yml"}
    )
    
    type validator struct{}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Jan 22 17:58:52 GMT 2024
    - 15K bytes
    - Viewed (0)
Back to top