filestore

package
v1.108.10 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ArchivesDir = "/kotsadmdata/archives"
)

Functions

This section is empty.

Types

type BlobStore

type BlobStore struct {
}

func (*BlobStore) DeleteArchive added in v1.93.0

func (s *BlobStore) DeleteArchive(path string) error

func (*BlobStore) Init

func (s *BlobStore) Init() error

func (*BlobStore) ReadArchive

func (s *BlobStore) ReadArchive(path string) (string, error)

func (*BlobStore) WaitForReady

func (s *BlobStore) WaitForReady(ctx context.Context) error

func (*BlobStore) WriteArchive

func (s *BlobStore) WriteArchive(outputPath string, body io.ReadSeeker) error

type FileStore

type FileStore interface {
	Init() error
	WaitForReady(ctx context.Context) error
	WriteArchive(outputPath string, body io.ReadSeeker) error
	ReadArchive(path string) (string, error)
	DeleteArchive(path string) error
}

func GetStore

func GetStore() FileStore

type S3Store

type S3Store struct {
}

func (*S3Store) DeleteArchive added in v1.93.0

func (s *S3Store) DeleteArchive(path string) error

func (*S3Store) Init

func (s *S3Store) Init() error

func (*S3Store) ReadArchive

func (s *S3Store) ReadArchive(path string) (string, error)

func (*S3Store) WaitForReady

func (s *S3Store) WaitForReady(ctx context.Context) error

func (*S3Store) WriteArchive

func (s *S3Store) WriteArchive(outputPath string, body io.ReadSeeker) error

Jump to

Keyboard shortcuts

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