Documentation ¶
Index ¶
- type Limiter
- type Manager
- type Manifest
- type ManifestService
- func (_m *ManifestService) Delete(ctx context.Context, dgst digest.Digest) error
- func (_m *ManifestService) Exists(ctx context.Context, dgst digest.Digest) (bool, error)
- func (_m *ManifestService) Get(ctx context.Context, dgst digest.Digest, ...) (distribution.Manifest, error)
- func (_m *ManifestService) Put(ctx context.Context, manifest distribution.Manifest, ...) (digest.Digest, error)
- type RegistryClient
- func (_m *RegistryClient) ManifestForDigest(dgst digest.Digest) (distribution.Manifest, error)
- func (_m *RegistryClient) ManifestForTag(tagStr string) (distribution.Manifest, error)
- func (_m *RegistryClient) NewRepository(nameInRepository string) error
- func (_m *RegistryClient) TagMetadata(manifest distribution.Manifest, opts *options.ManifestOptions) (*tag.TagInfo, error)
- func (_m *RegistryClient) Tags() ([]string, error)
- type Repository
- func (_m *Repository) Blobs(ctx context.Context) distribution.BlobStore
- func (_m *Repository) Manifests(ctx context.Context, options ...distribution.ManifestServiceOption) (distribution.ManifestService, error)
- func (_m *Repository) Named() reference.Named
- func (_m *Repository) Tags(ctx context.Context) distribution.TagService
- type RoundTripper
- type TagService
- func (_m *TagService) All(ctx context.Context) ([]string, error)
- func (_m *TagService) Get(ctx context.Context, tag string) (distribution.Descriptor, error)
- func (_m *TagService) Lookup(ctx context.Context, digest distribution.Descriptor) ([]string, error)
- func (_m *TagService) Tag(ctx context.Context, tag string, desc distribution.Descriptor) error
- func (_m *TagService) Untag(ctx context.Context, tag string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Limiter ¶
Limiter is an autogenerated mock type for the Limiter type
func NewLimiter ¶
NewLimiter creates a new instance of Limiter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
type Manager ¶
Manager is an autogenerated mock type for the Manager type
func NewManager ¶
NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Manager) AddResponse ¶
AddResponse provides a mock function with given fields: resp
type Manifest ¶
Manifest is an autogenerated mock type for the Manifest type
func NewManifest ¶
NewManifest creates a new instance of Manifest. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Manifest) References ¶
func (_m *Manifest) References() []distribution.Descriptor
References provides a mock function with given fields:
type ManifestService ¶
ManifestService is an autogenerated mock type for the ManifestService type
func NewManifestService ¶
func NewManifestService(t interface { mock.TestingT Cleanup(func()) }) *ManifestService
NewManifestService creates a new instance of ManifestService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ManifestService) Get ¶
func (_m *ManifestService) Get(ctx context.Context, dgst digest.Digest, options ...distribution.ManifestServiceOption) (distribution.Manifest, error)
Get provides a mock function with given fields: ctx, dgst, options
func (*ManifestService) Put ¶
func (_m *ManifestService) Put(ctx context.Context, manifest distribution.Manifest, options ...distribution.ManifestServiceOption) (digest.Digest, error)
Put provides a mock function with given fields: ctx, manifest, options
type RegistryClient ¶
RegistryClient is an autogenerated mock type for the RegistryClient type
func (*RegistryClient) ManifestForDigest ¶
func (_m *RegistryClient) ManifestForDigest(dgst digest.Digest) (distribution.Manifest, error)
ManifestForDigest provides a mock function with given fields: dgst
func (*RegistryClient) ManifestForTag ¶
func (_m *RegistryClient) ManifestForTag(tagStr string) (distribution.Manifest, error)
ManifestForTag provides a mock function with given fields: tagStr
func (*RegistryClient) NewRepository ¶
func (_m *RegistryClient) NewRepository(nameInRepository string) error
NewRepository provides a mock function with given fields: nameInRepository
func (*RegistryClient) TagMetadata ¶
func (_m *RegistryClient) TagMetadata(manifest distribution.Manifest, opts *options.ManifestOptions) (*tag.TagInfo, error)
TagMetadata provides a mock function with given fields: manifest, opts
func (*RegistryClient) Tags ¶
func (_m *RegistryClient) Tags() ([]string, error)
Tags provides a mock function with given fields:
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func NewRepository ¶
func NewRepository(t interface { mock.TestingT Cleanup(func()) }) *Repository
NewRepository creates a new instance of Repository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Repository) Blobs ¶
func (_m *Repository) Blobs(ctx context.Context) distribution.BlobStore
Blobs provides a mock function with given fields: ctx
func (*Repository) Manifests ¶
func (_m *Repository) Manifests(ctx context.Context, options ...distribution.ManifestServiceOption) (distribution.ManifestService, error)
Manifests provides a mock function with given fields: ctx, options
func (*Repository) Named ¶
func (_m *Repository) Named() reference.Named
Named provides a mock function with given fields:
func (*Repository) Tags ¶
func (_m *Repository) Tags(ctx context.Context) distribution.TagService
Tags provides a mock function with given fields: ctx
type RoundTripper ¶
RoundTripper is an autogenerated mock type for the RoundTripper type
func NewRoundTripper ¶
func NewRoundTripper(t interface { mock.TestingT Cleanup(func()) }) *RoundTripper
NewRoundTripper creates a new instance of RoundTripper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
type TagService ¶
TagService is an autogenerated mock type for the TagService type
func NewTagService ¶
func NewTagService(t interface { mock.TestingT Cleanup(func()) }) *TagService
NewTagService creates a new instance of TagService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*TagService) All ¶
func (_m *TagService) All(ctx context.Context) ([]string, error)
All provides a mock function with given fields: ctx
func (*TagService) Get ¶
func (_m *TagService) Get(ctx context.Context, tag string) (distribution.Descriptor, error)
Get provides a mock function with given fields: ctx, tag
func (*TagService) Lookup ¶
func (_m *TagService) Lookup(ctx context.Context, digest distribution.Descriptor) ([]string, error)
Lookup provides a mock function with given fields: ctx, digest
func (*TagService) Tag ¶
func (_m *TagService) Tag(ctx context.Context, tag string, desc distribution.Descriptor) error
Tag provides a mock function with given fields: ctx, tag, desc