file_manager

package
v1.13.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileManager

type FileManager interface {
	FetchPlan(organizationId uuid.UUID, runId uuid.UUID) ([]byte, error)
	UploadPlan(organizationId uuid.UUID, runId uuid.UUID, reader io.Reader) error
	FetchLogs(organizationId uuid.UUID, runId uuid.UUID) ([]byte, error)
	UploadLogs(organizationId uuid.UUID, runId uuid.UUID, reader io.Reader) error
	FetchState(organizationId uuid.UUID, workspaceId uuid.UUID) ([]byte, error)
	UploadState(organizationId uuid.UUID, workspaceId uuid.UUID, reader io.Reader) error
	PresignedPlanUrl(organizationId uuid.UUID, runId uuid.UUID) (string, error)
}

func New

func New(client *s3.Client) FileManager

type FileManagerImpl

type FileManagerImpl struct {
	S3Client *s3.Client
}

func (*FileManagerImpl) FetchLogs

func (impl *FileManagerImpl) FetchLogs(organizationId uuid.UUID, runId uuid.UUID) ([]byte, error)

func (*FileManagerImpl) FetchPlan

func (impl *FileManagerImpl) FetchPlan(organizationId uuid.UUID, runId uuid.UUID) ([]byte, error)

func (*FileManagerImpl) FetchState

func (impl *FileManagerImpl) FetchState(organizationId uuid.UUID, workspaceId uuid.UUID) ([]byte, error)

func (*FileManagerImpl) PresignedPlanUrl

func (impl *FileManagerImpl) PresignedPlanUrl(organizationId uuid.UUID, runId uuid.UUID) (string, error)

func (*FileManagerImpl) UploadLogs

func (impl *FileManagerImpl) UploadLogs(organizationId uuid.UUID, runId uuid.UUID, reader io.Reader) error

func (*FileManagerImpl) UploadPlan

func (impl *FileManagerImpl) UploadPlan(organizationId uuid.UUID, runId uuid.UUID, reader io.Reader) error

func (*FileManagerImpl) UploadState

func (impl *FileManagerImpl) UploadState(organizationId uuid.UUID, workspaceId uuid.UUID, reader io.Reader) error

Jump to

Keyboard shortcuts

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