Documentation
¶
Index ¶
- type Disk
- func (d *Disk) Close() error
- func (d *Disk) Get(_ context.Context, actionID string) (outputID, diskPath string, err error)
- func (d *Disk) Kind() string
- func (d *Disk) Put(_ context.Context, actionID, objectID string, size int64, body io.Reader) (diskPath string, _ error)
- func (d *Disk) Start(context.Context) error
- func (d *Disk) Summary() string
- type MergeRemote
- func (m *MergeRemote) Close() error
- func (m *MergeRemote) Get(ctx context.Context, actionID string) (string, string, error)
- func (m *MergeRemote) Kind() string
- func (m *MergeRemote) Put(ctx context.Context, actionID, outputID string, size int64, body io.Reader) (diskPath string, err error)
- func (m *MergeRemote) Start(ctx context.Context) error
- func (m *MergeRemote) Summary() string
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MergeRemote ¶
type MergeRemote struct {
// contains filtered or unexported fields
}
MergeRemote is a storage that is backed by a local storage and a remote storage.
func NewMergeRemote ¶
func NewMergeRemote(localStorage Storage, remoteStorage remote.Storage, verbose bool) *MergeRemote
func (*MergeRemote) Close ¶
func (m *MergeRemote) Close() error
func (*MergeRemote) Kind ¶
func (m *MergeRemote) Kind() string
func (*MergeRemote) Put ¶
func (m *MergeRemote) Put(ctx context.Context, actionID, outputID string, size int64, body io.Reader) (diskPath string, err error)
Put writes the data to the remote cache and local cache.
func (*MergeRemote) Summary ¶
func (m *MergeRemote) Summary() string
Click to show internal directories.
Click to hide internal directories.