Documentation ¶
Index ¶
- type FileManager
- type FileManagerImpl
- func (impl *FileManagerImpl) FetchLogs(organizationId uuid.UUID, runId uuid.UUID) ([]byte, error)
- func (impl *FileManagerImpl) FetchPlan(organizationId uuid.UUID, runId uuid.UUID) ([]byte, error)
- func (impl *FileManagerImpl) FetchState(organizationId uuid.UUID, workspaceId uuid.UUID) ([]byte, error)
- func (impl *FileManagerImpl) PresignedPlanUrl(organizationId uuid.UUID, runId uuid.UUID) (string, error)
- func (impl *FileManagerImpl) UploadLogs(organizationId uuid.UUID, runId uuid.UUID, reader io.Reader) error
- func (impl *FileManagerImpl) UploadPlan(organizationId uuid.UUID, runId uuid.UUID, reader io.Reader) error
- func (impl *FileManagerImpl) UploadState(organizationId uuid.UUID, workspaceId uuid.UUID, reader io.Reader) error
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 ¶
func (*FileManagerImpl) FetchState ¶
func (*FileManagerImpl) PresignedPlanUrl ¶
func (*FileManagerImpl) UploadLogs ¶
func (*FileManagerImpl) UploadPlan ¶
func (*FileManagerImpl) UploadState ¶
Click to show internal directories.
Click to hide internal directories.