sync

package
v0.19.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatusRepository

type StatusRepository struct {
	// contains filtered or unexported fields
}

func NewStatusSyncRepository

func NewStatusSyncRepository(pool *pgxpool.Pool) *StatusRepository

func (StatusRepository) GetLastUpdateTime

func (s StatusRepository) GetLastUpdateTime(ctx context.Context, projectName tenant.ProjectName, entityType string, resources []*resource.Resource) (map[string]time.Time, error)

func (StatusRepository) Touch

func (s StatusRepository) Touch(ctx context.Context, projectName tenant.ProjectName, entityType string, resources []*resource.Resource) error

func (StatusRepository) UpdateBatch

func (s StatusRepository) UpdateBatch(ctx context.Context, projectName tenant.ProjectName, entityType string, identifiers []string) error

func (StatusRepository) UpdateBulk

func (s StatusRepository) UpdateBulk(ctx context.Context, projectName tenant.ProjectName, entityType string, syncStatus []resource.SyncStatus) error

func (StatusRepository) Upsert

func (s StatusRepository) Upsert(ctx context.Context, projectName tenant.ProjectName, entityType, identifier string, remarks map[string]string, success bool) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL