package archive

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

Index

Functions

func MustWriteTarGz

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

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

func WriteFile

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

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

Source Files

tarball.go

Version
v0.34.2
Published
Nov 10, 2021
Platform
windows/amd64
Imports
4 packages
Last checked
1 minute ago

Tools for package owners.