istio: istio.io/istio/galley/pkg/config/testing/data Index | Files

package data

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

Index

Package Files

builtin.gen.go builtin.go collections.go events.go resources.go yaml.go

Variables

var (
    // Collection1 is a testing collection
    Collection1 = collection.NewName("collection1")

    // Collection2 is a testing collection
    Collection2 = collection.NewName("collection2")

    // Collection3 is a testing collection
    Collection3 = collection.NewName("collection3")

    // CollectionNames of all collections in the test data.
    CollectionNames = collection.Names{Collection1, Collection2, Collection3}

    // Specs is the set of collection.Specs for all test data.
    Specs = func() collection.Specs {
        b := collection.NewSpecsBuilder()
        b.MustAdd(collection.MustNewSpec(Collection1.String(), "google.protobuf", "google.protobuf.Empty"))
        b.MustAdd(collection.MustNewSpec(Collection2.String(), "google.protobuf", "google.protobuf.Empty"))
        b.MustAdd(collection.MustNewSpec(Collection3.String(), "google.protobuf", "google.protobuf.Empty"))
        return b.Build()
    }()
)
var (
    // Event1Col1AddItem1 is a testing event
    Event1Col1AddItem1 = event.Event{
        Kind:   event.Added,
        Source: Collection1,
        Entry:  EntryN1I1V1,
    }

    // Event1Col1AddItem1Broken is a testing event
    Event1Col1AddItem1Broken = event.Event{
        Kind:   event.Added,
        Source: Collection1,
        Entry:  EntryN1I1V1Broken,
    }

    // Event1Col1UpdateItem1 is a testing event
    Event1Col1UpdateItem1 = event.Event{
        Kind:   event.Updated,
        Source: Collection1,
        Entry:  EntryN1I1V2,
    }

    // Event1Col1DeleteItem1 is a testing event
    Event1Col1DeleteItem1 = event.Event{
        Kind:   event.Deleted,
        Source: Collection1,
        Entry:  EntryN1I1V1,
    }

    // Event1Col1DeleteItem2 is a testing event
    Event1Col1DeleteItem2 = event.Event{
        Kind:   event.Deleted,
        Source: Collection1,
        Entry:  EntryN2I2V2,
    }

    // Event1Col1Synced is a testing event
    Event1Col1Synced = event.Event{
        Kind:   event.FullSync,
        Source: Collection1,
    }

    // Event1Col2Synced is a testing event
    Event1Col2Synced = event.Event{
        Kind:   event.FullSync,
        Source: Collection2,
    }

    // Event2Col1AddItem2 is a testing event
    Event2Col1AddItem2 = event.Event{
        Kind:   event.Added,
        Source: Collection1,
        Entry:  EntryN2I2V2,
    }

    // Event3Col2AddItem1 is a testing event
    Event3Col2AddItem1 = event.Event{
        Kind:   event.Added,
        Source: Collection2,
        Entry:  EntryN1I1V1,
    }
)
var (
    // EntryN1I1V1 is a test resource.Entry
    EntryN1I1V1 = &resource.Entry{
        Metadata: resource.Metadata{
            Name:    resource.NewName("n1", "i1"),
            Version: "v1",
        },
        Item: parseStruct(`
{
	"n1_i1": "v1"
}`),
    }

    // EntryN1I1V1ClusterScoped is a test resource.Entry that is cluster scoped.
    EntryN1I1V1ClusterScoped = &resource.Entry{
        Metadata: resource.Metadata{
            Name:    resource.NewName("", "i1"),
            Version: "v1",
        },
        Item: parseStruct(`
{
	"n1_i1": "v1"
}`),
    }

    // EntryN1I1V1Broken is a test resource.Entry
    EntryN1I1V1Broken = &resource.Entry{
        Metadata: resource.Metadata{
            Name:    resource.NewName("n1", "i1"),
            Version: "v1",
        },
        Item: nil,
    }

    // EntryN1I1V2 is a test resource.Entry
    EntryN1I1V2 = &resource.Entry{
        Metadata: resource.Metadata{
            Name:    resource.NewName("n1", "i1"),
            Version: "v2",
        },
        Item: parseStruct(`
{
	"n1_i1": "v2"
}`),
    }

    // EntryN2I2V1 is a test resource.Entry
    EntryN2I2V1 = &resource.Entry{
        Metadata: resource.Metadata{
            Name:    resource.NewName("n2", "i2"),
            Version: "v1",
        },
        Item: parseStruct(`
{
	"n2_i2": "v1"
}`),
    }

    // EntryN2I2V2 is a test resource.Entry
    EntryN2I2V2 = &resource.Entry{
        Metadata: resource.Metadata{
            Name:    resource.NewName("n2", "i2"),
            Version: "v2",
        },
        Item: parseStruct(`{
	"n2_i2": "v2"
}`),
    }

    // EntryN3I3V1 is a test resource.Entry
    EntryN3I3V1 = &resource.Entry{
        Metadata: resource.Metadata{
            Name:    resource.NewName("n3", "i3"),
            Version: "v1",
        },
        Item: parseStruct(`{
	"n3_i3": "v1"
}`),
    }

    // EntryI1V1NoNamespace is a test resource.Entry
    EntryI1V1NoNamespace = &resource.Entry{
        Metadata: resource.Metadata{
            Name:    resource.NewName("", "i1"),
            Version: "v1",
        },
        Item: 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
`
)

func Asset Uses

func Asset(name string) ([]byte, error)

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.

func AssetDir Uses

func AssetDir(name string) ([]string, error)

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"}.

func AssetInfo Uses

func AssetInfo(name string) (os.FileInfo, error)

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.

func AssetNames Uses

func AssetNames() []string

AssetNames returns the names of the assets.

func GetDeployment Uses

func GetDeployment() string

GetDeployment returns Deployment test data

func GetEndpoints Uses

func GetEndpoints() string

GetEndpoints returns Endpoints test data

func GetIngress Uses

func GetIngress() string

GetIngress returns Ingress test data

func GetNamespace Uses

func GetNamespace() string

GetNamespace returns Namespace test data

func GetNode Uses

func GetNode() string

GetNode returns Node test data

func GetPod Uses

func GetPod() string

GetPod returns Pod test data

func GetService Uses

func GetService() string

GetService returns Service test data

func MustAsset Uses

func MustAsset(name string) []byte

MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.

func RestoreAsset Uses

func RestoreAsset(dir, name string) error

RestoreAsset restores an asset under the given directory

func RestoreAssets Uses

func RestoreAssets(dir, name string) error

RestoreAssets restores an asset under the given directory recursively

Package data imports 12 packages (graph). Updated 2019-12-11. Refresh now. Tools for package owners.