blob

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidBucketName = errors.New("empty bucket name")
)

Functions

This section is empty.

Types

type BlobStore

type BlobStore struct {
	// contains filtered or unexported fields
}

func NewBlobStorage

func NewBlobStorage(cfg *config.KubehoundConfig, blobConfig *config.BlobConfig) (*BlobStore, error)

func (*BlobStore) Close

func (bs *BlobStore) Close(ctx context.Context, archivePath string) error

Once downloaded and processed, we should cleanup the disk so we can reduce the disk usage required for large infrastructure

func (*BlobStore) Extract

func (bs *BlobStore) Extract(ctx context.Context, archivePath string) error

func (*BlobStore) ListFiles added in v1.3.3

func (bs *BlobStore) ListFiles(ctx context.Context, prefix string, recursive bool) ([]*puller.ListObject, error)

func (*BlobStore) Pull

func (bs *BlobStore) Pull(outer context.Context, clusterName string, runID string) (string, error)

Pull pulls the data from the blob store (e.g: s3) and returns the path of the folder containing the archive

func (*BlobStore) Put

func (bs *BlobStore) Put(outer context.Context, archivePath string, clusterName string, runID string) error

Pull pulls the data from the blob store (e.g: s3) and returns the path of the folder containing the archive

Jump to

Keyboard shortcuts

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