opa: github.com/open-policy-agent/opa/internal/file/archive Index | Files

package archive

import "github.com/open-policy-agent/opa/internal/file/archive"

Index

Package Files

tarball.go

func MustWriteTarGz Uses

func MustWriteTarGz(files [][2]string) *bytes.Buffer

MustWriteTarGz write the list of file names and content into a tarball.

func WriteFile Uses

func WriteFile(tw *tar.Writer, path string, bs []byte) error

WriteFile adds a file header with content to the given tar writer

Package archive imports 4 packages (graph) and is imported by 2 packages. Updated 2019-09-05. Refresh now. Tools for package owners.