artifacts

package module
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 13 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFSForConnection

func GetFSForConnection(ctx context.Context, c models.Connection) (fs.FilesystemRW, error)

func SaveArtifact

func SaveArtifact(ctx context.Context, fs artifactFS.FilesystemRW, artifact *models.Artifact, data Artifact) error

Types

type Artifact

type Artifact struct {
	ContentType string
	Path        string
	Content     io.ReadCloser
}

type MIMEWriter

type MIMEWriter struct {
	Max int // max number of bytes to use from the source
	// contains filtered or unexported fields
}

MIMEWriter implements io.Writer with a limit on the number of bytes used for detection.

func (*MIMEWriter) Detect

func (t *MIMEWriter) Detect() *mimetype.MIME

func (*MIMEWriter) Write

func (t *MIMEWriter) Write(bb []byte) (n int, err error)

Directories

Path Synopsis
clients
aws
gcp
smb

Jump to

Keyboard shortcuts

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