Documentation ¶
Index ¶
- Constants
- type LastSyncData
- type Manager
- func (m *Manager) Create(endpoint string, data []map[string]interface{}) error
- func (m *Manager) GetFileByKey(endpoint string, id string) ([]byte, error)
- func (m *Manager) GetLastSync(endpoint string) (time.Time, error)
- func (m *Manager) GetLastSyncFile(endpoint string) ([]byte, error)
- func (m *Manager) IsKeyCreated(endpoint string, id string) (bool, error)
- func (m *Manager) SetLastSync(endpoint string, lastSync time.Time) error
- func (m *Manager) SetLastSyncFile(endpoint string, data []byte) error
- func (m *Manager) UpdateFileByKey(endpoint string, id string, data []byte) error
- func (m *Manager) UpdateMultiPartFileByKey(endpoint string, id string) error
- type S3Manager
Constants ¶
View Source
const ( Path = "cache/%s/%s/%s" LastSyncFile = "0000-last-sync" Bucket = "insights-v2-cache-%s" Region = "us-east-2" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LastSyncData ¶ added in v1.5.26
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) GetFileByKey ¶
GetFileByKey get file by key
func (*Manager) GetLastSync ¶
GetLastSync get connector sync date, if it is not exist return epoch date
func (*Manager) GetLastSyncFile ¶ added in v1.5.26
GetLastSyncFile get connector last sync file, if it is not exist return empty file with last sync epoch date
func (*Manager) IsKeyCreated ¶
IsKeyCreated check if the key already exists
func (*Manager) SetLastSync ¶
SetLastSync update connector last sync date
func (*Manager) SetLastSyncFile ¶ added in v1.5.26
SetLastSyncFile update connector last sync file date
func (*Manager) UpdateFileByKey ¶
UpdateFileByKey get file by key
Click to show internal directories.
Click to hide internal directories.