Back to godoc.org
istio.io/istio / galley / pkg / config / testing / basicmeta

Package basicmeta

v0.0.0 (ff6643c)
Latest Go to latest
Published: today | License: Apache-2.0 | Module: istio.io/istio

Overview

Code generated for package basicmeta by go-bindata DO NOT EDIT. (@generated) sources: basicmeta.yaml basicmeta2.yaml

Index

Package Files

Variables

var (

	// Collection2 describes the collection collection2
	Collection2 = collection.Builder{
		Name:         "collection2",
		VariableName: "Collection2",
		Disabled:     false,
		Resource: resource.Builder{
			Group:         "testdata.istio.io",
			Kind:          "Kind1",
			Plural:        "Kind1s",
			Version:       "v1alpha1",
			Proto:         "google.protobuf.Struct",
			ProtoPackage:  "github.com/gogo/protobuf/types",
			ClusterScoped: false,
			ValidateProto: validation.EmptyValidate,
		}.MustBuild(),
	}.MustBuild()

	// K8SCollection1 describes the collection k8s/collection1
	K8SCollection1 = collection.Builder{
		Name:         "k8s/collection1",
		VariableName: "K8SCollection1",
		Disabled:     false,
		Resource: resource.Builder{
			Group:         "testdata.istio.io",
			Kind:          "Kind1",
			Plural:        "Kind1s",
			Version:       "v1alpha1",
			Proto:         "google.protobuf.Struct",
			ProtoPackage:  "github.com/gogo/protobuf/types",
			ClusterScoped: false,
			ValidateProto: validation.EmptyValidate,
		}.MustBuild(),
	}.MustBuild()

	// All contains all collections in the system.
	All = collection.NewSchemasBuilder().
		MustAdd(Collection2).
		MustAdd(K8SCollection1).
		Build()

	// Istio contains only Istio collections.
	Istio = collection.NewSchemasBuilder().
			Build()

	// Kube contains only kubernetes collections.
	Kube = collection.NewSchemasBuilder().
			MustAdd(K8SCollection1).
			Build()

	// Pilot contains only collections used by Pilot.
	Pilot = collection.NewSchemasBuilder().
			Build()

	// PilotServiceApi contains only collections used by Pilot, including experimental Service Api.
	PilotServiceApi = collection.NewSchemasBuilder().
					Build()

	// Deprecated contains only collections used by that will soon be used by nothing.
	Deprecated = collection.NewSchemasBuilder().
				Build()
)

func Asset

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

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

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

func AssetNames() []string

AssetNames returns the names of the assets.

func Get

func Get() (*schema.Metadata, error)

Get returns the contained baiscmeta.yaml file, in parsed form.

func Get2

func Get2() (*schema.Metadata, error)

Get returns the contained baiscmeta2.yaml file, in parsed form.

func MustAsset

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 MustGet

func MustGet() *schema.Metadata

MustGet calls Get and panics if it returns and error.

func MustGet2

func MustGet2() *schema.Metadata

MustGet2 calls Get2 and panics if it returns and error.

func RestoreAsset

func RestoreAsset(dir, name string) error

RestoreAsset restores an asset under the given directory

func RestoreAssets

func RestoreAssets(dir, name string) error

RestoreAssets restores an asset under the given directory recursively

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier