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

package k8smeta

import "istio.io/istio/galley/pkg/config/testing/k8smeta"

Index

Package Files

collections.gen.go generate.go get.go k8smeta.gen.go staticinit.gen.go

Variables

var (

    // K8SAppsV1Deployments is the name of collection k8s/apps/v1/deployments
    K8SAppsV1Deployments = collection.NewName("k8s/apps/v1/deployments")

    // K8SCoreV1Endpoints is the name of collection k8s/core/v1/endpoints
    K8SCoreV1Endpoints = collection.NewName("k8s/core/v1/endpoints")

    // K8SCoreV1Namespaces is the name of collection k8s/core/v1/namespaces
    K8SCoreV1Namespaces = collection.NewName("k8s/core/v1/namespaces")

    // K8SCoreV1Nodes is the name of collection k8s/core/v1/nodes
    K8SCoreV1Nodes = collection.NewName("k8s/core/v1/nodes")

    // K8SCoreV1Pods is the name of collection k8s/core/v1/pods
    K8SCoreV1Pods = collection.NewName("k8s/core/v1/pods")

    // K8SCoreV1Services is the name of collection k8s/core/v1/services
    K8SCoreV1Services = collection.NewName("k8s/core/v1/services")

    // K8SExtensionsV1Beta1Ingresses is the name of collection k8s/extensions/v1beta1/ingresses
    K8SExtensionsV1Beta1Ingresses = collection.NewName("k8s/extensions/v1beta1/ingresses")
)

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 CollectionNames Uses

func CollectionNames() []collection.Name

CollectionNames returns the collection names declared in this package.

func Get Uses

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

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

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 MustGet Uses

func MustGet() *schema.Metadata

MustGet calls GetBasicMeta and panics if it returns and error.

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 k8smeta imports 11 packages (graph). Updated 2019-10-21. Refresh now. Tools for package owners.