mocks

package
v0.0.0-...-7e3aec1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Limiter

type Limiter struct {
	mock.Mock
}

Limiter is an autogenerated mock type for the Limiter type

func NewLimiter

func NewLimiter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Limiter

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.

func (*Limiter) Take

func (_m *Limiter) Take() time.Time

Take provides a mock function with given fields:

type Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func NewManager

func NewManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *Manager

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

func (_m *Manager) AddResponse(resp *http.Response) error

AddResponse provides a mock function with given fields: resp

func (*Manager) GetChallenges

func (_m *Manager) GetChallenges(endpoint url.URL) ([]challenge.Challenge, error)

GetChallenges provides a mock function with given fields: endpoint

type Manifest

type Manifest struct {
	mock.Mock
}

Manifest is an autogenerated mock type for the Manifest type

func NewManifest

func NewManifest(t interface {
	mock.TestingT
	Cleanup(func())
}) *Manifest

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) Payload

func (_m *Manifest) Payload() (string, []byte, error)

Payload provides a mock function with given fields:

func (*Manifest) References

func (_m *Manifest) References() []distribution.Descriptor

References provides a mock function with given fields:

type ManifestService

type ManifestService struct {
	mock.Mock
}

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) Delete

func (_m *ManifestService) Delete(ctx context.Context, dgst digest.Digest) error

Delete provides a mock function with given fields: ctx, dgst

func (*ManifestService) Exists

func (_m *ManifestService) Exists(ctx context.Context, dgst digest.Digest) (bool, error)

Exists provides a mock function with given fields: ctx, dgst

func (*ManifestService) Get

Get provides a mock function with given fields: ctx, dgst, options

func (*ManifestService) Put

Put provides a mock function with given fields: ctx, manifest, options

type RegistryClient

type RegistryClient struct {
	mock.Mock
}

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

type Repository struct {
	mock.Mock
}

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

Blobs provides a mock function with given fields: ctx

func (*Repository) Manifests

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

Tags provides a mock function with given fields: ctx

type RoundTripper

type RoundTripper struct {
	mock.Mock
}

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.

func (*RoundTripper) RoundTrip

func (_m *RoundTripper) RoundTrip(_a0 *http.Request) (*http.Response, error)

RoundTrip provides a mock function with given fields: _a0

type TagService

type TagService struct {
	mock.Mock
}

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

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

func (*TagService) Untag

func (_m *TagService) Untag(ctx context.Context, tag string) error

Untag provides a mock function with given fields: ctx, tag

Jump to

Keyboard shortcuts

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