Documentation
¶
Overview ¶
Package dbcache implements a database cache for Porch.
Index ¶
- Variables
- func CloseDB(ctx context.Context) error
- func GetOrCreateGitDraft(ctx context.Context, repo repository.Repository, pr repository.PackageRevision) (draft repository.PackageRevisionDraft, updatedGitPR repository.PackageRevision, ...)
- func OpenDB(ctx context.Context, opts cachetypes.CacheOptions) error
- func PushDraftPackageRevision(ctx context.Context, repoKey repository.RepositoryKey, pr *dbPackageRevision)
- func PushPublishedPackageRevision(ctx context.Context, repo repository.Repository, pr repository.PackageRevision, ...) (kptfilev1.Locator, error)
- type DBCacheFactory
- type DBHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCopyUnsupported = errors.New("bulk copy not supported by this driver") ErrPgxQueryUnsupported = errors.New("native pgx query not supported by this driver") )
Functions ¶
func GetOrCreateGitDraft ¶
func GetOrCreateGitDraft(ctx context.Context, repo repository.Repository, pr repository.PackageRevision) (draft repository.PackageRevisionDraft, updatedGitPR repository.PackageRevision, err error)
func OpenDB ¶
func OpenDB(ctx context.Context, opts cachetypes.CacheOptions) error
func PushDraftPackageRevision ¶
func PushDraftPackageRevision(ctx context.Context, repoKey repository.RepositoryKey, pr *dbPackageRevision)
func PushPublishedPackageRevision ¶
func PushPublishedPackageRevision(ctx context.Context, repo repository.Repository, pr repository.PackageRevision, pushDraftsToGit, existingGitBranch bool) (kptfilev1.Locator, error)
Types ¶
type DBCacheFactory ¶
type DBCacheFactory struct {
}
func (*DBCacheFactory) NewCache ¶
func (f *DBCacheFactory) NewCache(ctx context.Context, options cachetypes.CacheOptions) (cachetypes.Cache, error)
Click to show internal directories.
Click to hide internal directories.