utils

package
v0.4.0-preview Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSkaffoldConfigFiles

func GenerateSkaffoldConfigFiles(service config.ServiceSummary, appCfg latest.Config, folder string) error

GenerateSkaffoldConfigFiles generates the skaffold config files to disk.

func LoadManifest

func LoadManifest(manifestFile string) (*latest.Manifest, error)

LoadManifest loads a manifest from disk.

func Tar

func Tar(src string, tarName string, writer io.Writer, dockerignore io.Reader) error

Tar takes a source and variable writers and walks 'source' writing each file found to the tar writer. Skip patterns from dockerignore file if found. From https://gist.github.com/sdomino/e6bc0c98f87843bc26bb

func Untar

func Untar(dst string, r io.Reader) error

Untar takes a destination path and a reader; a tar reader loops over the tarfile creating the file structure at 'dst' along the way, and writing any files

func WriteYAML

func WriteYAML(content []byte, name string) error

WriteYAML writes a yaml to disk.

Types

This section is empty.

Jump to

Keyboard shortcuts

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