Documentation
¶
Index ¶
- func InlineArtifact(info os.FileInfo) *models.Artifact
- type BlobStore
- type Data
- type FileInfo
- type FilesystemRW
- type InlineStore
- func (s *InlineStore) Close() error
- func (s *InlineStore) Read(_ gocontext.Context, path string) (io.ReadCloser, error)
- func (s *InlineStore) ReadDir(name string) ([]FileInfo, error)
- func (s *InlineStore) Stat(name string) (os.FileInfo, error)
- func (s *InlineStore) WithCompression(compression string) *InlineStore
- func (s *InlineStore) WithMaxSize(maxSize int) *InlineStore
- func (s *InlineStore) Write(_ gocontext.Context, path string, data io.Reader) (os.FileInfo, error)
- type LoggedBlobStore
- type LoggedFS
- func (l *LoggedFS) Close() error
- func (l *LoggedFS) Read(ctx gocontext.Context, path string) (io.ReadCloser, error)
- func (l *LoggedFS) ReadDir(name string) ([]FileInfo, error)
- func (l *LoggedFS) Stat(name string) (os.FileInfo, error)
- func (l *LoggedFS) Write(ctx gocontext.Context, path string, data io.Reader) (os.FileInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlobStore ¶
type BlobStore interface {
Write(data Data, artifact *models.Artifact) (*models.Artifact, error)
Read(artifactID uuid.UUID) (*Data, error)
io.Closer
}
func NewBlobStore ¶
func NewBlobStore(fs FilesystemRW, db *gorm.DB, backend string) BlobStore
type Data ¶
type FilesystemRW ¶
type InlineStore ¶
type InlineStore struct {
// contains filtered or unexported fields
}
func NewInlineStore ¶
func NewInlineStore(db *gorm.DB) *InlineStore
func (*InlineStore) Close ¶
func (s *InlineStore) Close() error
func (*InlineStore) Read ¶
func (s *InlineStore) Read(_ gocontext.Context, path string) (io.ReadCloser, error)
func (*InlineStore) WithCompression ¶
func (s *InlineStore) WithCompression(compression string) *InlineStore
func (*InlineStore) WithMaxSize ¶
func (s *InlineStore) WithMaxSize(maxSize int) *InlineStore
type LoggedBlobStore ¶
type LoggedBlobStore struct {
// contains filtered or unexported fields
}
LoggedBlobStore wraps a BlobStore with structured logging.
func (*LoggedBlobStore) Close ¶
func (l *LoggedBlobStore) Close() error
Click to show internal directories.
Click to hide internal directories.