fs

package
v1.0.1249 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAzureBlobFS

func NewAzureBlobFS(client *azblob.Client, container string) *azureBlobFS

func NewGCSFS

func NewGCSFS(client *gcs.Client, bucket string) *gcsFS

func NewLocalFS

func NewLocalFS(base string) *localFS

func NewS3FS

func NewS3FS(client *s3.Client, bucket string) *s3FS

func NewSMBFS

func NewSMBFS(server string, port, share string, auth types.Authentication) (*smbFS, error)

func NewSSHFS

func NewSSHFS(host, user, password string) (*sshFS, error)

func SaveArtifact

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

func SaveArtifactInline

func SaveArtifactInline(ctx gocontext.Context, fs artifact.FilesystemRW, path string, data []byte) (os.FileInfo, error)

SaveArtifactInline is a helper that creates inline artifacts for testing.

Types

type Artifact

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

type MIMEWriter

type MIMEWriter struct {
	Max int
	// contains filtered or unexported fields
}

func (*MIMEWriter) Detect

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

func (*MIMEWriter) Write

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

type SMBFileInfo

type SMBFileInfo struct {
	Base string
	os.FileInfo
}

func (*SMBFileInfo) FullPath

func (t *SMBFileInfo) FullPath() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL