import "istio.io/istio/galley/pkg/config/testing/data"
Code generated for package data by go-bindata DO NOT EDIT. (@generated) sources: builtin/deployment.yaml builtin/endpoints.yaml builtin/ingress.yaml builtin/namespace.yaml builtin/node.yaml builtin/pod.yaml builtin/service.yaml
builtin.gen.go builtin.go collections.go events.go resources.go yaml.go
var ( // K8SCollection2 is a testing collection K8SCollection2 = basicmeta.MustGet2().KubeCollections().MustFind("k8s/collection2") Foo = collection.Builder{ Name: "foo", VariableName: "Foo", Resource: resource.Builder{ Kind: "Foo", Plural: "Foos", ProtoPackage: "github.com/gogo/protobuf/types", Proto: "google.protobuf.Empty", }.MustBuild(), }.MustBuild() Bar = collection.Builder{ Name: "bar", VariableName: "Bar", Resource: resource.Builder{ Kind: "Bar", Plural: "Bars", ProtoPackage: "github.com/gogo/protobuf/types", Proto: "google.protobuf.Empty", }.MustBuild(), }.MustBuild() Boo = collection.Builder{ Name: "boo", VariableName: "Boo", Resource: resource.Builder{ Kind: "Boo", Plural: "Boos", ProtoPackage: "github.com/gogo/protobuf/types", Proto: "google.protobuf.Empty", }.MustBuild(), }.MustBuild() Baz = collection.Builder{ Name: "baz", VariableName: "Baz", Resource: resource.Builder{ Kind: "Baz", Plural: "Bazes", ProtoPackage: "github.com/gogo/protobuf/types", Proto: "google.protobuf.Empty", }.MustBuild(), }.MustBuild() )
var ( // Event1Col1AddItem1 is a testing event Event1Col1AddItem1 = event.Event{ Kind: event.Added, Source: basicmeta.K8SCollection1, Resource: EntryN1I1V1, } // Event1Col1AddItem1Broken is a testing event Event1Col1AddItem1Broken = event.Event{ Kind: event.Added, Source: basicmeta.K8SCollection1, Resource: EntryN1I1V1Broken, } // Event1Col1UpdateItem1 is a testing event Event1Col1UpdateItem1 = event.Event{ Kind: event.Updated, Source: basicmeta.K8SCollection1, Resource: EntryN1I1V2, } // Event1Col1DeleteItem1 is a testing event Event1Col1DeleteItem1 = event.Event{ Kind: event.Deleted, Source: basicmeta.K8SCollection1, Resource: EntryN1I1V1, } // Event1Col1DeleteItem2 is a testing event Event1Col1DeleteItem2 = event.Event{ Kind: event.Deleted, Source: basicmeta.K8SCollection1, Resource: EntryN2I2V2, } // Event1Col1Synced is a testing event Event1Col1Synced = event.Event{ Kind: event.FullSync, Source: basicmeta.K8SCollection1, } // Event1Col2Synced is a testing event Event1Col2Synced = event.Event{ Kind: event.FullSync, Source: basicmeta.Collection2, } // Event2Col1AddItem2 is a testing event Event2Col1AddItem2 = event.Event{ Kind: event.Added, Source: basicmeta.K8SCollection1, Resource: EntryN2I2V2, } // Event3Col2AddItem1 is a testing event Event3Col2AddItem1 = event.Event{ Kind: event.Added, Source: basicmeta.Collection2, Resource: EntryN1I1V1, } )
var ( // EntryN1I1V1 is a test resource.Instance EntryN1I1V1 = &resource.Instance{ Metadata: resource.Metadata{ FullName: resource.NewFullName("n1", "i1"), Version: "v1", Schema: basicmeta.K8SCollection1.Resource(), }, Message: parseStruct(` { "n1_i1": "v1" }`), } // EntryN1I1V1ClusterScoped is a test resource.Instance that is cluster scoped. EntryN1I1V1ClusterScoped = &resource.Instance{ Metadata: resource.Metadata{ FullName: resource.NewFullName("", "i1"), Version: "v1", Schema: K8SCollection2.Resource(), }, Message: parseStruct(` { "n1_i1": "v1" }`), } // EntryN1I1V1Broken is a test resource.Instance EntryN1I1V1Broken = &resource.Instance{ Metadata: resource.Metadata{ FullName: resource.NewFullName("n1", "i1"), Version: "v1", Schema: basicmeta.K8SCollection1.Resource(), }, Message: nil, } // EntryN1I1V2 is a test resource.Instance EntryN1I1V2 = &resource.Instance{ Metadata: resource.Metadata{ FullName: resource.NewFullName("n1", "i1"), Version: "v2", Schema: basicmeta.K8SCollection1.Resource(), }, Message: parseStruct(` { "n1_i1": "v2" }`), } // EntryN2I2V1 is a test resource.Instance EntryN2I2V1 = &resource.Instance{ Metadata: resource.Metadata{ FullName: resource.NewFullName("n2", "i2"), Version: "v1", Schema: basicmeta.K8SCollection1.Resource(), }, Message: parseStruct(` { "n2_i2": "v1" }`), } // EntryN2I2V2 is a test resource.Instance EntryN2I2V2 = &resource.Instance{ Metadata: resource.Metadata{ FullName: resource.NewFullName("n2", "i2"), Version: "v2", Schema: basicmeta.K8SCollection1.Resource(), }, Message: parseStruct(`{ "n2_i2": "v2" }`), } // EntryN3I3V1 is a test resource.Instance EntryN3I3V1 = &resource.Instance{ Metadata: resource.Metadata{ FullName: resource.NewFullName("n3", "i3"), Version: "v1", Schema: basicmeta.K8SCollection1.Resource(), }, Message: parseStruct(`{ "n3_i3": "v1" }`), } // EntryI1V1NoNamespace is a test resource.Instance EntryI1V1NoNamespace = &resource.Instance{ Metadata: resource.Metadata{ FullName: resource.NewFullName("", "i1"), Version: "v1", Schema: basicmeta.K8SCollection1.Resource(), }, Message: parseStruct(`{ "n1_i1": "v1" }`), } )
var ( // YamlN1I1V1 is a testing resource in Yaml form YamlN1I1V1 = ` apiVersion: testdata.istio.io/v1alpha1 kind: Kind1 metadata: namespace: n1 name: i1 spec: n1_i1: v1 ` // YamlN1I1V2 is a testing resource in Yaml form YamlN1I1V2 = ` apiVersion: testdata.istio.io/v1alpha1 kind: Kind1 metadata: namespace: n1 name: i1 spec: n1_i1: v2 ` // YamlN2I2V1 is a testing resource in Yaml form YamlN2I2V1 = ` apiVersion: testdata.istio.io/v1alpha1 kind: Kind1 metadata: namespace: n2 name: i2 spec: n2_i2: v1 ` // YamlN2I2V2 is a testing resource in Yaml form YamlN2I2V2 = ` apiVersion: testdata.istio.io/v1alpha1 kind: Kind1 metadata: namespace: n2 name: i2 spec: n2_i2: v2 ` // YamlN3I3V1 is a testing resource in Yaml form YamlN3I3V1 = ` apiVersion: testdata.istio.io/v1alpha1 kind: Kind1 metadata: namespace: n3 name: i3 spec: n3_i3: v1 ` // YamlUnrecognized is a testing resource in Yaml form YamlUnrecognized = ` apiVersion: testdata.istio.io/v1alpha1 kind: KindUnknown metadata: namespace: n1 name: i1 spec: n1_i1: v1 ` // YamlUnparseableResource is a testing resource in Yaml form YamlUnparseableResource = ` apiVersion: testdata.istio.io/v1alpha1/foo/bar kind: Kind1 metadata: namespace: n1 name: i1 spec: foo: bar ` // YamlNonStringKey is a testing resource in Yaml form YamlNonStringKey = ` 23: true ` // YamlN1I1V1Kind2 is a testing resource in Yaml form YamlN1I1V1Kind2 = ` apiVersion: testdata.istio.io/v1alpha1 kind: Kind2 metadata: namespace: n1 name: i1 spec: n1_i1: v1 ` // YamlI1V1NoNamespace is a testing resource in Yaml form YamlI1V1NoNamespace = ` apiVersion: testdata.istio.io/v1alpha1 kind: Kind1 metadata: name: i1 spec: n1_i1: v1 ` // YamlI1V1NoNamespaceKind2 is a testing resource in Yaml form YamlI1V1NoNamespaceKind2 = ` apiVersion: testdata.istio.io/v1alpha1 kind: Kind2 metadata: name: i1 spec: n1_i1: v1 ` // YamlI1V1WithCommentContainingDocumentSeparator is a testing resource in // yaml form with a comment containing a document separator. YamlI1V1WithCommentContainingDocumentSeparator = ` # --- apiVersion: testdata.istio.io/v1alpha1 kind: Kind1 metadata: namespace: n1 name: i1 spec: n1_i1: v1 ` )
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:
data/ foo.txt img/ a.png b.png
then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
AssetNames returns the names of the assets.
GetDeployment returns Deployment test data
GetEndpoints returns Endpoints test data
GetIngress returns Ingress test data
GetNamespace returns Namespace test data
GetNode returns Node test data
GetPod returns Pod test data
GetService returns Service test data
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
RestoreAsset restores an asset under the given directory
RestoreAssets restores an asset under the given directory recursively
Package data imports 14 packages (graph). Updated 2020-07-08. Refresh now. Tools for package owners.