Documentation ¶
Index ¶
- type Artifact
- type TarGzArtifact
- func (a *TarGzArtifact) AddFile(virtualPath string, filePath string, content []byte) error
- func (a *TarGzArtifact) ExtractToDirectory(outputDir string) error
- func (a *TarGzArtifact) GetName() string
- func (a *TarGzArtifact) ListFiles() ([]string, error)
- func (a *TarGzArtifact) LoadFromReader(reader io.ReadCloser) error
- func (a *TarGzArtifact) SaveToWriter(writer io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Artifact ¶
type Artifact interface { SaveToWriter(w io.Writer) error LoadFromReader(r io.ReadCloser) error ExtractToDirectory(dir string) error AddFile(virtualPath string, filePath string, content []byte) error ListFiles() ([]string, error) GetName() string }
func NewFromTarGz ¶
type TarGzArtifact ¶
type TarGzArtifact struct {
// contains filtered or unexported fields
}
func (*TarGzArtifact) AddFile ¶
func (a *TarGzArtifact) AddFile(virtualPath string, filePath string, content []byte) error
AddFile adds a file to the artifact
func (*TarGzArtifact) ExtractToDirectory ¶
func (a *TarGzArtifact) ExtractToDirectory(outputDir string) error
func (*TarGzArtifact) GetName ¶
func (a *TarGzArtifact) GetName() string
func (*TarGzArtifact) ListFiles ¶
func (a *TarGzArtifact) ListFiles() ([]string, error)
func (*TarGzArtifact) LoadFromReader ¶
func (a *TarGzArtifact) LoadFromReader(reader io.ReadCloser) error
func (*TarGzArtifact) SaveToWriter ¶
func (a *TarGzArtifact) SaveToWriter(writer io.Writer) error
Click to show internal directories.
Click to hide internal directories.