reader

package
v0.9.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIVersion = "kudo.dev/v1beta1"
)

Variables

This section is empty.

Functions

func FromDir

func FromDir(fs afero.Fs, packagePath string) (*packages.Files, error)

FromDir walks the path provided and returns package files or an error

func ParseTgz

func ParseTgz(r io.Reader) (*packages.Files, error)

func Read

func Read(fs afero.Fs, path string) (*packages.Package, error)

ReadPackage creates the implementation of the packages based on the path. The expectation is the packages is always local. The path can be relative or absolute location of the packages. Order of the discovery is: 1. tarball 2. dir based

func ReadDir

func ReadDir(fs afero.Fs, path string) (*packages.Package, error)

ReadPackage creates the implementation of the packages based on the path. The expectation is the packages is always local. The path can be relative or absolute location of the packages.

func ReadTar

func ReadTar(fs afero.Fs, path string) (*packages.Package, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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