Back to godoc.org
istio.io/istio / pkg / config / schema

Package schema

v0.0.0-...-4385fd8
Latest Go to latest

The latest major version is .

Published: 1 day ago | License: Apache-2.0 | Module: istio.io/istio

Overview

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

Index

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

type DirectTransformSettings

type DirectTransformSettings struct {
	// contains filtered or unexported fields
}

DirectTransformSettings configuration

func (*DirectTransformSettings) Equal

func (d *DirectTransformSettings) Equal(o *DirectTransformSettings) bool

func (*DirectTransformSettings) Mapping

func (d *DirectTransformSettings) Mapping() map[collection.Name]collection.Name

Mapping from source to destination

func (*DirectTransformSettings) Type

func (d *DirectTransformSettings) Type() string

Type implements TransformSettings

type Metadata

type Metadata struct {
	// contains filtered or unexported fields
}

Metadata is the top-level container.

func Build

func Build(astm *ast.Metadata) (*Metadata, error)

Build strongly-typed Metadata from parsed AST.

func Get

func Get() (*Metadata, error)

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

func MustGet

func MustGet() *Metadata

MustGet calls Get and panics if it returns and error.

func ParseAndBuild

func ParseAndBuild(yamlText string) (*Metadata, error)

ParseAndBuild parses the given metadata file and returns the strongly typed schema.

func (*Metadata) AllCollections

func (m *Metadata) AllCollections() collection.Schemas

AllCollections is all known collections

func (*Metadata) AllCollectionsInSnapshots

func (m *Metadata) AllCollectionsInSnapshots(snapshotNames []string) []string

AllCollectionsInSnapshots returns an aggregate list of names of collections that will appear in the specified snapshots.

func (*Metadata) AllSnapshots

func (m *Metadata) AllSnapshots() []*Snapshot

AllSnapshots returns all known snapshots

func (*Metadata) DirectTransformSettings

func (m *Metadata) DirectTransformSettings() *DirectTransformSettings

DirectTransformSettings is a temporary convenience function for getting the Direct TransformSettings config. As the infrastructure is generified, then this method should disappear.

func (*Metadata) Equal

func (m *Metadata) Equal(o *Metadata) bool

func (*Metadata) KubeCollections

func (m *Metadata) KubeCollections() collection.Schemas

KubeCollections is collections for Kubernetes.

func (*Metadata) TransformSettings

func (m *Metadata) TransformSettings() []TransformSettings

TransformSettings is all known transformSettings

type Snapshot

type Snapshot struct {
	Name        string
	Collections []collection.Name
	Strategy    string
}

Snapshot metadata. Describes the snapshots that should be produced.

type TransformSettings

type TransformSettings interface {
	Type() string
}

TransformSettings is configuration that is supplied to a particular transform.

Package Files

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

Jump to identifier

Keyboard shortcuts

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