cache

package
v0.0.0-...-56979a3 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

func NewCache

func NewCache(cacheDir string, syncFreq time.Duration, opts Options) *Cache

func (*Cache) Close

func (r *Cache) Close(ctx context.Context, cr *configv1alpha1.Repository) error

func (*Cache) Open

type CachedRepository

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

func (*CachedRepository) Close

func (r *CachedRepository) Close() error

func (*CachedRepository) DeletePackageRevision

func (r *CachedRepository) DeletePackageRevision(ctx context.Context, pkgRev *pkgv1alpha1.PackageRevision) error

func (*CachedRepository) EnsurePackageRevision

func (r *CachedRepository) EnsurePackageRevision(ctx context.Context, pkgRev *pkgv1alpha1.PackageRevision) error

func (*CachedRepository) GetResources

func (r *CachedRepository) GetResources(ctx context.Context, pkgRev *pkgv1alpha1.PackageRevision) (map[string]string, error)

func (*CachedRepository) ListPackageRevisions

func (r *CachedRepository) ListPackageRevisions(ctx context.Context, opts *repository.ListOption) ([]*pkgv1alpha1.PackageRevision, error)

func (*CachedRepository) UpsertPackageRevision

func (r *CachedRepository) UpsertPackageRevision(ctx context.Context, pkgRev *pkgv1alpha1.PackageRevision, resources map[string]string) error

type Options

type Options struct {
	Client             client.Client
	CredentialResolver auth.CredentialResolver
	UserInfoProvider   auth.UserInfoProvider
}

Jump to

Keyboard shortcuts

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