util

package
v0.0.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	WasmFilterName = "envoy.filters.http.wasm"
)

Variables

This section is empty.

Functions

func MarshalBytes

func MarshalBytes(pb proto.Message) ([]byte, error)

func MarshalStruct

func MarshalStruct(m proto.Message) (*structpb.Struct, error)

func SplitImageRef

func SplitImageRef(ref string) (string, string)

splits a ref into the repo and tag if tag is empty, returns "latest"

func Tar

func Tar(src string, writers ...io.Writer) error

Tar takes a source and variable writers and walks 'source' writing each file found to the tar writer; the purpose for accepting multiple writers is to allow for multiple outputs (for example a file, or md5 hash)

func UnmarshalBytes

func UnmarshalBytes(b []byte, pb proto.Message) error

func UnmarshalStruct

func UnmarshalStruct(s *structpb.Struct, m proto.Message) error

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

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳