Documentation ¶
Index ¶
- type Manager
- func (cm *Manager) Delete(ctx context.Context, taskID string) error
- func (cm *Manager) GetHTTPPath(ctx context.Context, taskID string) (string, error)
- func (cm *Manager) GetStatus(ctx context.Context, taskID string) (cdnStatus string, err error)
- func (cm *Manager) TriggerCDN(ctx context.Context, task *types.TaskInfo) (*types.TaskInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is an implementation of the interface of CDNMgr.
func NewManager ¶
func NewManager(cfg *config.Config, cacheStore *store.Store, progressManager mgr.ProgressMgr) (*Manager, error)
NewManager returns a new Manager.
func (*Manager) GetHTTPPath ¶
GetHTTPPath returns the http download path of taskID. The returned path joined the DownloadRaw.Bucket and DownloadRaw.Key.
Click to show internal directories.
Click to hide internal directories.