filestore

package
v1.50.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: Apache-2.0 Imports: 15 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) 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)
}

func GetStore

func GetStore() FileStore

type S3Store

type S3Store struct {
}

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