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 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
Click to show internal directories.
Click to hide internal directories.