manifestreader

package
v0.19.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2020 License: Apache-2.0 Imports: 7 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManifestReader

type ManifestReader interface {
	Read() ([]*resource.Info, error)
}

ManifestReader defines the interface for reading a set of manifests into info objects.

type PathManifestReader

type PathManifestReader struct {
	Path string

	ReaderOptions
}

PathManifestReader reads manifests from the provided path and returns them as Info objects. The returned Infos will not have client or mapping set.

func (*PathManifestReader) Read

func (p *PathManifestReader) Read() ([]*resource.Info, error)

Read reads the manifests and returns them as Info objects.

type ReaderOptions

type ReaderOptions struct {
	Factory          util.Factory
	Validate         bool
	Namespace        string
	EnforceNamespace bool
}

ReaderOptions defines the shared inputs for the different implementations of the ManifestReader interface.

type StreamManifestReader

type StreamManifestReader struct {
	ReaderName string
	Reader     io.Reader

	ReaderOptions
}

StreamManifestReader reads manifest from the provided io.Reader and returns them as Info objects. The returned Infos will not have client or mapping set.

func (*StreamManifestReader) Read

func (r *StreamManifestReader) Read() ([]*resource.Info, error)

Read reads the manifests and returns them as Info objects.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL