Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,616 for emptypb (0.33 sec)

  1. pkg/config/resource/instance_test.go

    // limitations under the License.
    
    package resource
    
    import (
    	"testing"
    
    	. "github.com/onsi/gomega"
    	"google.golang.org/protobuf/types/known/emptypb"
    )
    
    func TestInstance_IsEmpty_False(t *testing.T) {
    	g := NewWithT(t)
    
    	e := Instance{
    		Message: &emptypb.Empty{},
    	}
    
    	g.Expect(e.IsEmpty()).To(BeFalse())
    }
    
    func TestInstance_IsEmpty_True(t *testing.T) {
    	g := NewWithT(t)
    	e := Instance{}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. pkg/config/analysis/local/helpers_test.go

    	rname := resource.NewFullName(resource.Namespace(ns), resource.LocalName(name))
    	return &resource.Instance{
    		Metadata: resource.Metadata{
    			FullName: rname,
    			Version:  resource.Version(version),
    		},
    		Message: &emptypb.Empty{},
    		Origin: &kube.Origin{
    			FullName: rname,
    		},
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 17:36:47 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  3. pilot/pkg/security/authn/policy_applier_test.go

    																ProviderName: "origins-0",
    															},
    														},
    														{
    															RequiresType: &envoy_jwt.JwtRequirement_AllowMissing{
    																AllowMissing: &emptypb.Empty{},
    															},
    														},
    													},
    												},
    											},
    										},
    									},
    								},
    							},
    							Providers: map[string]*envoy_jwt.JwtProvider{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 01 07:32:22 UTC 2023
    - 60.2K bytes
    - Viewed (0)
  4. istioctl/pkg/util/configdump/wrapper.go

    	typ, err := r.Types.FindMessageByURL(url)
    	if err != nil {
    		// Here we ignore the error since we want istioctl to ignore unknown types due to the Envoy version change
    		msg := exprpb.Type{TypeKind: &exprpb.Type_Dyn{Dyn: &emptypb.Empty{}}}
    		return msg.ProtoReflect().Type(), nil
    	}
    	return typ, nil
    }
    
    // Wrapper is a wrapper around the Envoy ConfigDump
    // It has extra helper functions for handling any/struct/marshal protobuf pain
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. pkg/config/schema/resource/schema_test.go

    }
    
    func TestNewProtoInstance(t *testing.T) {
    	s := Builder{
    		Kind:         "Empty",
    		Plural:       "Empties",
    		ProtoPackage: "google.golang.org/protobuf/types/known/emptypb",
    		Proto:        "google.protobuf.Empty",
    	}.MustBuild()
    
    	p, err := s.NewInstance()
    	assert.NoError(t, err)
    	assert.Equal(t, p, config.Spec(&emptypb.Empty{}))
    }
    
    func TestMustNewProtoInstance_Panic_Nil(t *testing.T) {
    	g := NewWithT(t)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  6. pkg/config/schema/collection/schemas_test.go

    	}{
    		{
    			name: "valid",
    			schemas: []resource.Schema{
    				resource.Builder{
    					Kind:   "Empty1",
    					Plural: "Empty1s",
    					Proto:  "google.protobuf.Empty",
    				}.MustBuild(),
    				resource.Builder{
    					Kind:   "Empty2",
    					Plural: "Empty2s",
    					Proto:  "google.protobuf.Empty",
    				}.MustBuild(),
    			},
    			expectError: false,
    		},
    	}
    
    	for _, c := range cases {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  7. istioctl/pkg/writer/compare/comparator.go

    	if err != nil {
    		// istioctl should keep going if it encounters new Envoy versions; ignore unknown types
    		return &exprpb.Type{TypeKind: &exprpb.Type_Dyn{Dyn: &emptypb.Empty{}}}, nil
    	}
    	return legacyproto.MessageV1(mt.New().Interface()), nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  8. pkg/workloadapi/security/authorization.pb.go

    	(*Match)(nil),         // 5: istio.security.Match
    	(*Address)(nil),       // 6: istio.security.Address
    	(*StringMatch)(nil),   // 7: istio.security.StringMatch
    	(*emptypb.Empty)(nil), // 8: google.protobuf.Empty
    }
    var file_workloadapi_security_authorization_proto_depIdxs = []int32{
    	0,  // 0: istio.security.Authorization.scope:type_name -> istio.security.Scope
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 02:27:10 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  9. pkg/wasm/convert_test.go

    	cases := []struct {
    		name     string
    		input    []*anypb.Any
    		wantNack bool
    	}{
    		{
    			name:     "wrong typed config",
    			input:    []*anypb.Any{protoconv.MessageToAny(&emptypb.Empty{})},
    			wantNack: true,
    		},
    		{
    			name: "wrong value in typed struct",
    			input: []*anypb.Any{protoconv.MessageToAny(&core.TypedExtensionConfig{
    				Name: "wrong-input",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  10. pilot/pkg/security/authn/policy_applier.go

    						{
    							RequiresType: &envoy_jwt.JwtRequirement_ProviderName{
    								ProviderName: name,
    							},
    						},
    						{
    							RequiresType: &envoy_jwt.JwtRequirement_AllowMissing{
    								AllowMissing: &emptypb.Empty{},
    							},
    						},
    					},
    				},
    			},
    		})
    		outterOrList = append(outterOrList, &envoy_jwt.JwtRequirement{
    			RequiresType: &envoy_jwt.JwtRequirement_ProviderName{
    				ProviderName: name,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 09:47:21 UTC 2024
    - 19.2K bytes
    - Viewed (0)
Back to top