Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 4,062 for structpb (0.19 sec)

  1. istioctl/pkg/describe/describe.go

    func asMyProtoValue(s *structpb.Struct) *myProtoValue {
    	return &myProtoValue{
    		&structpb.Value{
    			Kind: &structpb.Value_StructValue{
    				StructValue: s,
    			},
    		},
    	}
    }
    
    func (v *myProtoValue) keyAsString(key string) string {
    	s := v.keyAsStruct(key)
    	return s.GetStringValue()
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  2. pkg/model/proxy.go

    }
    
    // ToStruct converts NodeMetadata to a protobuf structure. This should be used only for debugging - performance is bad.
    func (m NodeMetadata) ToStruct() *structpb.Struct {
    	j, err := json.Marshal(m)
    	if err != nil {
    		return nil
    	}
    
    	pbs := &structpb.Struct{}
    	if err := protomarshal.Unmarshal(j, pbs); err != nil {
    		return nil
    	}
    
    	return pbs
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 17:18:17 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/listener_builder_test.go

    				VirtualInboundListener:  lb.virtualInboundListener,
    			}
    
    			assert.Equal(t, got, tt.want)
    		})
    	}
    }
    
    func buildPatchStruct(config string) *structpb.Struct {
    	val := &structpb.Struct{}
    	_ = protomarshal.UnmarshalString(config, val)
    	return val
    }
    
    func getEnvoyFilterConfigs(configPatches []*networking.EnvoyFilter_EnvoyConfigObjectPatch) []config.Config {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  4. pkg/bootstrap/config.go

    	// First pass translates typed metadata
    	js, err := json.Marshal(node.Metadata)
    	if err != nil {
    		log.Warnf("Failed to marshal node metadata to JSON %#v: %v", node.Metadata, err)
    	}
    	pbst := &structpb.Struct{}
    	if err = protomarshal.Unmarshal(js, pbst); err != nil {
    		log.Warnf("Failed to unmarshal node metadata from JSON %#v: %v", node.Metadata, err)
    	}
    	// Second pass translates untyped metadata for "unknown" fields
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 17:02:38 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  5. security/pkg/server/ca/server_test.go

    	"google.golang.org/grpc/codes"
    	"google.golang.org/grpc/credentials"
    	"google.golang.org/grpc/metadata"
    	"google.golang.org/grpc/peer"
    	"google.golang.org/grpc/status"
    	"google.golang.org/protobuf/types/known/structpb"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/types"
    
    	pb "istio.io/api/security/v1alpha1"
    	"istio.io/istio/pilot/pkg/features"
    	"istio.io/istio/pkg/cluster"
    	"istio.io/istio/pkg/kube"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  6. pilot/pkg/model/push_context_test.go

    				Phase:    extensions.PluginPhase_AUTHN,
    				Priority: &wrapperspb.Int32Value{Value: 10},
    				Url:      "file:///etc/istio/filters/authn.wasm",
    				PluginConfig: &structpb.Struct{
    					Fields: map[string]*structpb.Value{
    						"test": {
    							Kind: &structpb.Value_StringValue{StringValue: "test"},
    						},
    					},
    				},
    				Sha256: "f2ca1bb6c7e907d06dafe4687e579fce76b37e4e93b7605022da52e6ccc26fd2",
    			},
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 95.3K bytes
    - Viewed (0)
  7. pilot/pkg/networking/core/envoyfilter/listener_patch_test.go

    		}
    	}
    	return store
    }
    
    func buildPatchStruct(config string) *structpb.Struct {
    	val := &structpb.Struct{}
    	_ = protomarshal.UnmarshalString(config, val)
    	return val
    }
    
    // nolint: unparam
    func buildGolangPatchStruct(config string) *structpb.Struct {
    	val := &structpb.Struct{}
    	_ = protomarshal.Unmarshal([]byte(config), val)
    	return val
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 70.1K bytes
    - Viewed (0)
  8. pkg/config/model.go

    		}
    		return &anypb.Any{
    			TypeUrl: gogoany.TypeUrl,
    			Value:   gogoany.Value,
    		}, nil
    	}
    
    	js, err := json.Marshal(s)
    	if err != nil {
    		return nil, err
    	}
    	pbs := &structpb.Struct{}
    	if err := protomarshal.Unmarshal(js, pbs); err != nil {
    		return nil, err
    	}
    	return protoconv.MessageToAnyWithError(pbs)
    }
    
    func ToMap(s Spec) (map[string]any, error) {
    	js, err := ToJSON(s)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  9. pilot/pkg/model/telemetry.go

    		return allMetrics
    	}
    }
    
    var waypointStatsConfig = protoconv.MessageToAny(&udpa.TypedStruct{
    	TypeUrl: "type.googleapis.com/stats.PluginConfig",
    	Value: &structpb.Struct{
    		Fields: map[string]*structpb.Value{
    			"reporter": {
    				Kind: &structpb.Value_StringValue{
    					StringValue: "SERVER_GATEWAY",
    				},
    			},
    		},
    	},
    })
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 18:14:09 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  10. pkg/bootstrap/option/convert.go

    	"istio.io/istio/pkg/wellknown"
    )
    
    // TransportSocket wraps UpstreamTLSContext
    type TransportSocket struct {
    	Name        string          `json:"name,omitempty"`
    	TypedConfig *pstruct.Struct `json:"typed_config,omitempty"`
    }
    
    // TCPKeepalive wraps is a thin JSON for xDS proto
    type TCPKeepalive struct {
    	KeepaliveProbes   *wrappers.UInt32Value `json:"keepalive_probes,omitempty"`
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 00:35:05 UTC 2024
    - 10.2K bytes
    - Viewed (0)
Back to top