Documentation ¶
Index ¶
- Constants
- 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) IsKeyCreated(endpoint string, id string) (bool, error)
- func (m *Manager) SetLastSync(endpoint string, lastSync time.Time) error
- func (m *Manager) UpdateFileByKey(endpoint string, id string, data []byte) 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 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) IsKeyCreated ¶
IsKeyCreated check if the key already exists
func (*Manager) SetLastSync ¶
SetLastSync update connector last sync date
Click to show internal directories.
Click to hide internal directories.