github.com/kubeshop/testkube@v1.17.23/pkg/archive/archive.go (about)

     1  package archive
     2  
     3  import (
     4  	"bytes"
     5  	"io"
     6  	"time"
     7  )
     8  
     9  type Archive interface {
    10  	Create(out io.Writer, files []*File) error
    11  	Extract(in io.Reader) ([]*File, error)
    12  }
    13  
    14  type File struct {
    15  	Name    string
    16  	Size    int64
    17  	Mode    int64
    18  	ModTime time.Time
    19  	Data    *bytes.Buffer
    20  }