- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for ProtoPackage (0.21 sec)
-
pkg/config/schema/codegen/collections.go
return res.String() } func toGetter(protoPackage string) string { if strings.Contains(protoPackage, "istio.io") { return "Istio" } else if strings.Contains(protoPackage, "sigs.k8s.io/gateway-api") { return "GatewayAPI" } else if strings.Contains(protoPackage, "k8s.io/apiextensions-apiserver") { return "Ext" } return "Kube" } func toGroup(protoPackage string) string {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Oct 25 07:19:43 UTC 2023 - 5.4K bytes - Viewed (0) -
pkg/config/schema/resource/schema_test.go
name: "valid", b: Builder{ Kind: "Empty", Plural: "Empties", ProtoPackage: "github.com/gogo/protobuf/types", Proto: "google.protobuf.Empty", }, expectError: false, }, { name: "invalid kind", b: Builder{ Kind: "", Plural: "Empties", ProtoPackage: "github.com/gogo/protobuf/types", Proto: "google.protobuf.Empty", },
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 5.2K bytes - Viewed (0) -
pkg/config/schema/collection/schemas_test.go
) var ( emptyResource = resource.Builder{ Kind: "Empty", Plural: "empties", ProtoPackage: "google.golang.org/protobuf/types/known/emptypb", Proto: "google.protobuf.Empty", }.MustBuild() structResource = resource.Builder{ Kind: "Struct", Plural: "structs", ProtoPackage: "google.golang.org/protobuf/types/known/structpb", Proto: "google.protobuf.Struct", }.MustBuild() )
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 5.4K bytes - Viewed (0) -
pkg/config/schema/ast/ast_test.go
protoPackage: "istio.io/api/networking/v1alpha3" `, expected: &Metadata{ Resources: []*Resource{ { Identifier: "VirtualService", Kind: "VirtualService", Group: "networking.istio.io", Version: "v1alpha3", Proto: "istio.networking.v1alpha3.VirtualService", ProtoPackage: "istio.io/api/networking/v1alpha3",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Mar 30 00:31:03 UTC 2024 - 1.6K bytes - Viewed (0) -
pkg/config/schema/resource/schema.go
APIVersion() string // Proto returns the protocol buffer type name for this resource. Proto() string // ProtoPackage returns the golang package for the protobuf resource. ProtoPackage() string // NewInstance returns a new instance of the protocol buffer message for this resource. NewInstance() (config.Spec, error)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Dec 19 22:42:42 UTC 2023 - 9.7K bytes - Viewed (0) -
pkg/config/schema/codegen/templates/collections.go.tmpl
ReflectType: reflect.TypeOf(&{{.ClientImport}}.{{.SpecType}}{}).Elem(), {{- if ne .StatusType "" }}StatusType: reflect.TypeOf(&{{.StatusImport}}.{{.StatusType}}{}).Elem(), {{end}} ProtoPackage: "{{ .Resource.ProtoPackage }}", {{- if ne "" .Resource.StatusProtoPackage}}StatusPackage: "{{ .Resource.StatusProtoPackage }}", {{end}} ClusterScoped: {{ .Resource.ClusterScoped }}, Synthetic: {{ .Resource.Synthetic }},
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 25 14:44:17 UTC 2024 - 2.9K bytes - Viewed (0) -
pkg/config/analysis/analyzers/schema/validation_test.go
Kind: original.Kind(), Plural: original.Plural(), Group: original.Group(), Version: original.Version(), Proto: original.Proto(), ProtoPackage: original.ProtoPackage(), ValidateProto: validateFn, }.MustBuild() } type fakeOrigin struct{} func (fakeOrigin) FriendlyName() string { return "myFriendlyName" }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 02 08:32:06 UTC 2024 - 4.5K bytes - Viewed (0) -
pkg/config/schema/ast/ast.go
Builtin bool `json:"builtin"` Specless bool `json:"specless"` Synthetic bool `json:"synthetic"` Proto string `json:"proto"` ProtoPackage string `json:"protoPackage"` StatusProto string `json:"statusProto"` StatusProtoPackage string `json:"statusProtoPackage"` Validate string `json:"validate"` Description string `json:"description"`
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Mar 30 00:31:03 UTC 2024 - 3.3K bytes - Viewed (0) -
pkg/config/schema/collections/mock.go
Mock = resource.Builder{ ClusterScoped: false, Kind: "MockConfig", Plural: "mockconfigs", Group: "test.istio.io", Version: "v1", Proto: "config.MockConfig", ProtoPackage: "istio.io/istio/pkg/test/config", ValidateProto: func(cfg config.Config) (validation.Warning, error) { if cfg.Spec.(*testconfig.MockConfig).Key == "" { return nil, errors.New("empty key") } return nil, nil
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 01 01:34:15 UTC 2023 - 1.4K bytes - Viewed (0) -
pkg/config/analysis/local/helpers_test.go
Group: "testdata.istio.io", Kind: "Kind1", Plural: "Kind1s", Version: "v1alpha1", Proto: "google.protobuf.Struct", ReflectType: reflect.TypeOf(&structpb.Struct{}).Elem(), ProtoPackage: "github.com/gogo/protobuf/types", ClusterScoped: false, ValidateProto: validation.EmptyValidate, }.MustBuild() func createTestResource(t *testing.T, ns, name, version string) *resource.Instance { t.Helper()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 02 17:36:47 UTC 2024 - 1.7K bytes - Viewed (0)