Documentation ¶
Index ¶
- type CachedManager
- type Manager
- func (m *Manager) Count(ctx context.Context, query *q.Query) (int64, error)
- func (m *Manager) Create(ctx context.Context, artifact *artifact.Artifact) (int64, error)
- func (m *Manager) Delete(ctx context.Context, id int64) error
- func (m *Manager) DeleteReference(ctx context.Context, id int64) error
- func (m *Manager) Get(ctx context.Context, id int64) (*artifact.Artifact, error)
- func (m *Manager) GetByDigest(ctx context.Context, repository, digest string) (*artifact.Artifact, error)
- func (m *Manager) List(ctx context.Context, query *q.Query) ([]*artifact.Artifact, error)
- func (m *Manager) ListReferences(ctx context.Context, query *q.Query) ([]*artifact.Reference, error)
- func (m *Manager) ListWithLatest(ctx context.Context, query *q.Query) ([]*artifact.Artifact, error)
- func (m *Manager) Update(ctx context.Context, artifact *artifact.Artifact, props ...string) error
- func (m *Manager) UpdatePullTime(ctx context.Context, id int64, pullTime time.Time) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedManager ¶
type CachedManager interface { // Manager is the raw resource Manager. artifact.Manager // Manager is the common interface for resource cache. cached.Manager }
CachedManager is the interface combines raw resource Manager and cached Manager for better extension.
type Manager ¶
type Manager struct { *cached.BaseManager // contains filtered or unexported fields }
Manager is the cached manager implemented by redis.
func NewManager ¶
NewManager returns the redis cache manager.
func (*Manager) DeleteReference ¶
func (*Manager) GetByDigest ¶
func (*Manager) ListReferences ¶
func (*Manager) ListWithLatest ¶
Click to show internal directories.
Click to hide internal directories.