Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveArtifact ¶
Types ¶
type Filesystem ¶
type FilesystemRW ¶
type FilesystemRW interface { Filesystem Read(ctx gocontext.Context, path string) (io.ReadCloser, error) Write(ctx gocontext.Context, path string, data io.Reader) (os.FileInfo, error) }
func GetFSForConnection ¶
func GetFSForConnection(ctx context.Context, c models.Connection) (FilesystemRW, error)
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.