Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 4,062 for structpb (0.2 sec)

  1. pilot/pkg/networking/util/util_test.go

    			&core.Metadata{
    				FilterMetadata: map[string]*structpb.Struct{
    					IstioMetadataKey: {
    						Fields: map[string]*structpb.Value{
    							"other-config": {
    								Kind: &structpb.Value_StringValue{
    									StringValue: "other-config",
    								},
    							},
    						},
    					},
    				},
    			},
    			&core.Metadata{
    				FilterMetadata: map[string]*structpb.Struct{
    					IstioMetadataKey: {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 01:17:58 UTC 2024
    - 40K bytes
    - Viewed (0)
  2. pilot/pkg/model/telemetry_logging_test.go

    		{
    			name: "with-metadata",
    			json: &structpb.Struct{
    				Fields: map[string]*structpb.Value{
    					"key1": {Kind: &structpb.Value_StringValue{StringValue: "%METADATA(CLUSTER:istio)%"}},
    				},
    			},
    			expected: []*core.TypedExtensionConfig{
    				metadataFormatter,
    			},
    		},
    		{
    			name: "with-both",
    			json: &structpb.Struct{
    				Fields: map[string]*structpb.Value{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 54K bytes
    - Viewed (0)
  3. pkg/config/validation/envoyfilter/envoyfilter_test.go

    						Operation: networking.EnvoyFilter_Patch_INSERT_BEFORE,
    						Value: &structpb.Struct{
    							Fields: map[string]*structpb.Value{
    								"typed_config": {
    									Kind: &structpb.Value_StructValue{StructValue: &structpb.Struct{
    										Fields: map[string]*structpb.Value{
    											"@type": {
    												Kind: &structpb.Value_StringValue{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 00:31:03 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  4. pilot/pkg/model/telemetry_logging.go

    	// the reason why Envoy rejects a request.
    	EnvoyJSONLogFormatIstio = &structpb.Struct{
    		Fields: map[string]*structpb.Value{
    			"start_time":                        {Kind: &structpb.Value_StringValue{StringValue: "%START_TIME%"}},
    			"route_name":                        {Kind: &structpb.Value_StringValue{StringValue: "%ROUTE_NAME%"}},
    			"method":                            {Kind: &structpb.Value_StringValue{StringValue: "%REQ(:METHOD)%"}},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 23K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/cluster_test.go

    				FilterMetadata: map[string]*structpb.Struct{
    					util.IstioMetadataKey: {
    						Fields: map[string]*structpb.Value{
    							"services": {
    								Kind: &structpb.Value_ListValue{
    									ListValue: &structpb.ListValue{
    										Values: []*structpb.Value{
    											{
    												Kind: &structpb.Value_StructValue{
    													StructValue: &structpb.Struct{
    														Fields: map[string]*structpb.Value{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  6. security/pkg/nodeagent/caclient/providers/citadel/client.go

    	}
    }
    
    // CSRSign calls Citadel to sign a CSR.
    func (c *CitadelClient) CSRSign(csrPEM []byte, certValidTTLInSec int64) (res []string, err error) {
    	crMetaStruct := &structpb.Struct{
    		Fields: map[string]*structpb.Value{
    			security.CertSigner: {
    				Kind: &structpb.Value_StringValue{StringValue: c.opts.CertSigner},
    			},
    		},
    	}
    	req := &pb.IstioCertificateRequest{
    		Csr:              string(csrPEM),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  7. operator/pkg/util/util.go

    	}
    	return buf.String(), nil
    }
    
    func ValueString(v *structpb.Value) string {
    	switch x := v.Kind.(type) {
    	case *structpb.Value_StringValue:
    		return x.StringValue
    	case *structpb.Value_NumberValue:
    		return fmt.Sprint(x.NumberValue)
    	default:
    		return v.String()
    	}
    }
    
    func MustStruct(m map[string]any) *structpb.Struct {
    	s, _ := structpb.NewStruct(m)
    	return s
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 02 13:01:43 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  8. pilot/pkg/networking/util/util.go

    		metadata = &core.Metadata{
    			FilterMetadata: map[string]*structpb.Struct{},
    		}
    	}
    
    	if _, ok := metadata.FilterMetadata[IstioMetadataKey]; !ok {
    		metadata.FilterMetadata[IstioMetadataKey] = &structpb.Struct{
    			Fields: map[string]*structpb.Value{},
    		}
    	}
    
    	metadata.FilterMetadata[IstioMetadataKey].Fields["alpn_override"] = &structpb.Value{
    		Kind: &structpb.Value_StringValue{
    			StringValue: "false",
    		},
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  9. pkg/config/xds/xds.go

    	"google.golang.org/protobuf/proto"
    	"google.golang.org/protobuf/types/known/structpb"
    
    	networking "istio.io/api/networking/v1alpha3"
    	"istio.io/istio/pkg/util/protomarshal"
    )
    
    // nolint: interfacer
    func BuildXDSObjectFromStruct(applyTo networking.EnvoyFilter_ApplyTo, value *structpb.Struct, strict bool) (proto.Message, error) {
    	if value == nil {
    		// for remove ops
    		return nil, nil
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Jan 14 02:41:27 UTC 2023
    - 3K bytes
    - Viewed (0)
  10. pkg/test/framework/components/istio/istio.go

    type OperatorValues map[string]*structpb.Value
    
    // This regular expression matches list object index selection expression such as
    // abc[100], Tba_a[0].
    var listObjRex = regexp.MustCompile(`^([a-zA-Z]?[a-z_A-Z\d]*)\[([ ]*[\d]+)[ ]*\]$`)
    
    func getConfigValue(path []string, val map[string]*structpb.Value) *structpb.Value {
    	retVal := structpb.NewNullValue()
    	if len(path) > 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Oct 30 17:47:34 UTC 2023
    - 8K bytes
    - Viewed (0)
Back to top