mock

package
v0.21.3 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RegistryClientMock

type RegistryClientMock struct {
	CheckImageExistsMock mRegistryClientMockCheckImageExists

	GetDigestMock mRegistryClientMockGetDigest

	GetImageMock mRegistryClientMockGetImage

	GetImageConfigMock mRegistryClientMockGetImageConfig

	GetManifestMock mRegistryClientMockGetManifest

	GetRegistryMock mRegistryClientMockGetRegistry

	ListRepositoriesMock mRegistryClientMockListRepositories

	ListTagsMock mRegistryClientMockListTags

	PushImageMock mRegistryClientMockPushImage

	WithSegmentMock mRegistryClientMockWithSegment
	// contains filtered or unexported fields
}

RegistryClientMock implements mm_pkg.RegistryClient

func NewRegistryClientMock

func NewRegistryClientMock(t minimock.Tester) *RegistryClientMock

NewRegistryClientMock returns a mock for mm_pkg.RegistryClient

func (*RegistryClientMock) CheckImageExists added in v0.21.3

func (mmCheckImageExists *RegistryClientMock) CheckImageExists(ctx context.Context, tag string) (err error)

CheckImageExists implements mm_pkg.RegistryClient

func (*RegistryClientMock) CheckImageExistsAfterCounter added in v0.21.3

func (mmCheckImageExists *RegistryClientMock) CheckImageExistsAfterCounter() uint64

CheckImageExistsAfterCounter returns a count of finished RegistryClientMock.CheckImageExists invocations

func (*RegistryClientMock) CheckImageExistsBeforeCounter added in v0.21.3

func (mmCheckImageExists *RegistryClientMock) CheckImageExistsBeforeCounter() uint64

CheckImageExistsBeforeCounter returns a count of RegistryClientMock.CheckImageExists invocations

func (*RegistryClientMock) GetDigest added in v0.20.13

func (mmGetDigest *RegistryClientMock) GetDigest(ctx context.Context, tag string) (hp1 *v1.Hash, err error)

GetDigest implements mm_pkg.RegistryClient

func (*RegistryClientMock) GetDigestAfterCounter added in v0.20.13

func (mmGetDigest *RegistryClientMock) GetDigestAfterCounter() uint64

GetDigestAfterCounter returns a count of finished RegistryClientMock.GetDigest invocations

func (*RegistryClientMock) GetDigestBeforeCounter added in v0.20.13

func (mmGetDigest *RegistryClientMock) GetDigestBeforeCounter() uint64

GetDigestBeforeCounter returns a count of RegistryClientMock.GetDigest invocations

func (*RegistryClientMock) GetImage

func (mmGetImage *RegistryClientMock) GetImage(ctx context.Context, tag string) (r1 mm_pkg.RegistryImage, err error)

GetImage implements mm_pkg.RegistryClient

func (*RegistryClientMock) GetImageAfterCounter

func (mmGetImage *RegistryClientMock) GetImageAfterCounter() uint64

GetImageAfterCounter returns a count of finished RegistryClientMock.GetImage invocations

func (*RegistryClientMock) GetImageBeforeCounter

func (mmGetImage *RegistryClientMock) GetImageBeforeCounter() uint64

GetImageBeforeCounter returns a count of RegistryClientMock.GetImage invocations

func (*RegistryClientMock) GetImageConfig

func (mmGetImageConfig *RegistryClientMock) GetImageConfig(ctx context.Context, tag string) (cp1 *v1.ConfigFile, err error)

GetImageConfig implements mm_pkg.RegistryClient

func (*RegistryClientMock) GetImageConfigAfterCounter

func (mmGetImageConfig *RegistryClientMock) GetImageConfigAfterCounter() uint64

GetImageConfigAfterCounter returns a count of finished RegistryClientMock.GetImageConfig invocations

func (*RegistryClientMock) GetImageConfigBeforeCounter

func (mmGetImageConfig *RegistryClientMock) GetImageConfigBeforeCounter() uint64

GetImageConfigBeforeCounter returns a count of RegistryClientMock.GetImageConfig invocations

func (*RegistryClientMock) GetManifest

func (mmGetManifest *RegistryClientMock) GetManifest(ctx context.Context, tag string) (ba1 []byte, err error)

GetManifest implements mm_pkg.RegistryClient

func (*RegistryClientMock) GetManifestAfterCounter

func (mmGetManifest *RegistryClientMock) GetManifestAfterCounter() uint64

GetManifestAfterCounter returns a count of finished RegistryClientMock.GetManifest invocations

func (*RegistryClientMock) GetManifestBeforeCounter

func (mmGetManifest *RegistryClientMock) GetManifestBeforeCounter() uint64

GetManifestBeforeCounter returns a count of RegistryClientMock.GetManifest invocations

func (*RegistryClientMock) GetRegistry

func (mmGetRegistry *RegistryClientMock) GetRegistry() (s1 string)

GetRegistry implements mm_pkg.RegistryClient

func (*RegistryClientMock) GetRegistryAfterCounter

func (mmGetRegistry *RegistryClientMock) GetRegistryAfterCounter() uint64

GetRegistryAfterCounter returns a count of finished RegistryClientMock.GetRegistry invocations

func (*RegistryClientMock) GetRegistryBeforeCounter

func (mmGetRegistry *RegistryClientMock) GetRegistryBeforeCounter() uint64

GetRegistryBeforeCounter returns a count of RegistryClientMock.GetRegistry invocations

func (*RegistryClientMock) ListRepositories

func (mmListRepositories *RegistryClientMock) ListRepositories(ctx context.Context) (sa1 []string, err error)

ListRepositories implements mm_pkg.RegistryClient

func (*RegistryClientMock) ListRepositoriesAfterCounter

func (mmListRepositories *RegistryClientMock) ListRepositoriesAfterCounter() uint64

ListRepositoriesAfterCounter returns a count of finished RegistryClientMock.ListRepositories invocations

func (*RegistryClientMock) ListRepositoriesBeforeCounter

func (mmListRepositories *RegistryClientMock) ListRepositoriesBeforeCounter() uint64

ListRepositoriesBeforeCounter returns a count of RegistryClientMock.ListRepositories invocations

func (*RegistryClientMock) ListTags

func (mmListTags *RegistryClientMock) ListTags(ctx context.Context) (sa1 []string, err error)

ListTags implements mm_pkg.RegistryClient

func (*RegistryClientMock) ListTagsAfterCounter

func (mmListTags *RegistryClientMock) ListTagsAfterCounter() uint64

ListTagsAfterCounter returns a count of finished RegistryClientMock.ListTags invocations

func (*RegistryClientMock) ListTagsBeforeCounter

func (mmListTags *RegistryClientMock) ListTagsBeforeCounter() uint64

ListTagsBeforeCounter returns a count of RegistryClientMock.ListTags invocations

func (*RegistryClientMock) MinimockCheckImageExistsDone added in v0.21.3

func (m *RegistryClientMock) MinimockCheckImageExistsDone() bool

MinimockCheckImageExistsDone returns true if the count of the CheckImageExists invocations corresponds the number of defined expectations

func (*RegistryClientMock) MinimockCheckImageExistsInspect added in v0.21.3

func (m *RegistryClientMock) MinimockCheckImageExistsInspect()

MinimockCheckImageExistsInspect logs each unmet expectation

func (*RegistryClientMock) MinimockFinish

func (m *RegistryClientMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*RegistryClientMock) MinimockGetDigestDone added in v0.20.13

func (m *RegistryClientMock) MinimockGetDigestDone() bool

MinimockGetDigestDone returns true if the count of the GetDigest invocations corresponds the number of defined expectations

func (*RegistryClientMock) MinimockGetDigestInspect added in v0.20.13

func (m *RegistryClientMock) MinimockGetDigestInspect()

MinimockGetDigestInspect logs each unmet expectation

func (*RegistryClientMock) MinimockGetImageConfigDone

func (m *RegistryClientMock) MinimockGetImageConfigDone() bool

MinimockGetImageConfigDone returns true if the count of the GetImageConfig invocations corresponds the number of defined expectations

func (*RegistryClientMock) MinimockGetImageConfigInspect

func (m *RegistryClientMock) MinimockGetImageConfigInspect()

MinimockGetImageConfigInspect logs each unmet expectation

func (*RegistryClientMock) MinimockGetImageDone

func (m *RegistryClientMock) MinimockGetImageDone() bool

MinimockGetImageDone returns true if the count of the GetImage invocations corresponds the number of defined expectations

func (*RegistryClientMock) MinimockGetImageInspect

func (m *RegistryClientMock) MinimockGetImageInspect()

MinimockGetImageInspect logs each unmet expectation

func (*RegistryClientMock) MinimockGetManifestDone

func (m *RegistryClientMock) MinimockGetManifestDone() bool

MinimockGetManifestDone returns true if the count of the GetManifest invocations corresponds the number of defined expectations

func (*RegistryClientMock) MinimockGetManifestInspect

func (m *RegistryClientMock) MinimockGetManifestInspect()

MinimockGetManifestInspect logs each unmet expectation

func (*RegistryClientMock) MinimockGetRegistryDone

func (m *RegistryClientMock) MinimockGetRegistryDone() bool

MinimockGetRegistryDone returns true if the count of the GetRegistry invocations corresponds the number of defined expectations

func (*RegistryClientMock) MinimockGetRegistryInspect

func (m *RegistryClientMock) MinimockGetRegistryInspect()

MinimockGetRegistryInspect logs each unmet expectation

func (*RegistryClientMock) MinimockListRepositoriesDone

func (m *RegistryClientMock) MinimockListRepositoriesDone() bool

MinimockListRepositoriesDone returns true if the count of the ListRepositories invocations corresponds the number of defined expectations

func (*RegistryClientMock) MinimockListRepositoriesInspect

func (m *RegistryClientMock) MinimockListRepositoriesInspect()

MinimockListRepositoriesInspect logs each unmet expectation

func (*RegistryClientMock) MinimockListTagsDone

func (m *RegistryClientMock) MinimockListTagsDone() bool

MinimockListTagsDone returns true if the count of the ListTags invocations corresponds the number of defined expectations

func (*RegistryClientMock) MinimockListTagsInspect

func (m *RegistryClientMock) MinimockListTagsInspect()

MinimockListTagsInspect logs each unmet expectation

func (*RegistryClientMock) MinimockPushImageDone added in v0.20.12

func (m *RegistryClientMock) MinimockPushImageDone() bool

MinimockPushImageDone returns true if the count of the PushImage invocations corresponds the number of defined expectations

func (*RegistryClientMock) MinimockPushImageInspect added in v0.20.12

func (m *RegistryClientMock) MinimockPushImageInspect()

MinimockPushImageInspect logs each unmet expectation

func (*RegistryClientMock) MinimockWait

func (m *RegistryClientMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

func (*RegistryClientMock) MinimockWithSegmentDone added in v0.21.2

func (m *RegistryClientMock) MinimockWithSegmentDone() bool

MinimockWithSegmentDone returns true if the count of the WithSegment invocations corresponds the number of defined expectations

func (*RegistryClientMock) MinimockWithSegmentInspect added in v0.21.2

func (m *RegistryClientMock) MinimockWithSegmentInspect()

MinimockWithSegmentInspect logs each unmet expectation

func (*RegistryClientMock) PushImage added in v0.20.12

func (mmPushImage *RegistryClientMock) PushImage(ctx context.Context, tag string, img mm_pkg.RegistryImage) (err error)

PushImage implements mm_pkg.RegistryClient

func (*RegistryClientMock) PushImageAfterCounter added in v0.20.12

func (mmPushImage *RegistryClientMock) PushImageAfterCounter() uint64

PushImageAfterCounter returns a count of finished RegistryClientMock.PushImage invocations

func (*RegistryClientMock) PushImageBeforeCounter added in v0.20.12

func (mmPushImage *RegistryClientMock) PushImageBeforeCounter() uint64

PushImageBeforeCounter returns a count of RegistryClientMock.PushImage invocations

func (*RegistryClientMock) WithSegment added in v0.21.2

func (mmWithSegment *RegistryClientMock) WithSegment(segments ...string) (r1 mm_pkg.RegistryClient)

WithSegment implements mm_pkg.RegistryClient

func (*RegistryClientMock) WithSegmentAfterCounter added in v0.21.2

func (mmWithSegment *RegistryClientMock) WithSegmentAfterCounter() uint64

WithSegmentAfterCounter returns a count of finished RegistryClientMock.WithSegment invocations

func (*RegistryClientMock) WithSegmentBeforeCounter added in v0.21.2

func (mmWithSegment *RegistryClientMock) WithSegmentBeforeCounter() uint64

WithSegmentBeforeCounter returns a count of RegistryClientMock.WithSegment invocations

type RegistryClientMockCheckImageExistsExpectation added in v0.21.3

type RegistryClientMockCheckImageExistsExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RegistryClientMockCheckImageExistsExpectation specifies expectation struct of the RegistryClient.CheckImageExists

func (*RegistryClientMockCheckImageExistsExpectation) Then added in v0.21.3

Then sets up RegistryClient.CheckImageExists return parameters for the expectation previously defined by the When method

type RegistryClientMockCheckImageExistsExpectationOrigins added in v0.21.3

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

RegistryClientMockCheckImageExistsOrigins contains origins of expectations of the RegistryClient.CheckImageExists

type RegistryClientMockCheckImageExistsParamPtrs added in v0.21.3

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

RegistryClientMockCheckImageExistsParamPtrs contains pointers to parameters of the RegistryClient.CheckImageExists

type RegistryClientMockCheckImageExistsParams added in v0.21.3

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

RegistryClientMockCheckImageExistsParams contains parameters of the RegistryClient.CheckImageExists

type RegistryClientMockCheckImageExistsResults added in v0.21.3

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

RegistryClientMockCheckImageExistsResults contains results of the RegistryClient.CheckImageExists

type RegistryClientMockGetDigestExpectation added in v0.20.13

type RegistryClientMockGetDigestExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RegistryClientMockGetDigestExpectation specifies expectation struct of the RegistryClient.GetDigest

func (*RegistryClientMockGetDigestExpectation) Then added in v0.20.13

Then sets up RegistryClient.GetDigest return parameters for the expectation previously defined by the When method

type RegistryClientMockGetDigestExpectationOrigins added in v0.20.13

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

RegistryClientMockGetDigestOrigins contains origins of expectations of the RegistryClient.GetDigest

type RegistryClientMockGetDigestParamPtrs added in v0.20.13

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

RegistryClientMockGetDigestParamPtrs contains pointers to parameters of the RegistryClient.GetDigest

type RegistryClientMockGetDigestParams added in v0.20.13

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

RegistryClientMockGetDigestParams contains parameters of the RegistryClient.GetDigest

type RegistryClientMockGetDigestResults added in v0.20.13

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

RegistryClientMockGetDigestResults contains results of the RegistryClient.GetDigest

type RegistryClientMockGetImageConfigExpectation

type RegistryClientMockGetImageConfigExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RegistryClientMockGetImageConfigExpectation specifies expectation struct of the RegistryClient.GetImageConfig

func (*RegistryClientMockGetImageConfigExpectation) Then

Then sets up RegistryClient.GetImageConfig return parameters for the expectation previously defined by the When method

type RegistryClientMockGetImageConfigExpectationOrigins

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

RegistryClientMockGetImageConfigOrigins contains origins of expectations of the RegistryClient.GetImageConfig

type RegistryClientMockGetImageConfigParamPtrs

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

RegistryClientMockGetImageConfigParamPtrs contains pointers to parameters of the RegistryClient.GetImageConfig

type RegistryClientMockGetImageConfigParams

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

RegistryClientMockGetImageConfigParams contains parameters of the RegistryClient.GetImageConfig

type RegistryClientMockGetImageConfigResults

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

RegistryClientMockGetImageConfigResults contains results of the RegistryClient.GetImageConfig

type RegistryClientMockGetImageExpectation

type RegistryClientMockGetImageExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RegistryClientMockGetImageExpectation specifies expectation struct of the RegistryClient.GetImage

func (*RegistryClientMockGetImageExpectation) Then

Then sets up RegistryClient.GetImage return parameters for the expectation previously defined by the When method

type RegistryClientMockGetImageExpectationOrigins

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

RegistryClientMockGetImageOrigins contains origins of expectations of the RegistryClient.GetImage

type RegistryClientMockGetImageParamPtrs

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

RegistryClientMockGetImageParamPtrs contains pointers to parameters of the RegistryClient.GetImage

type RegistryClientMockGetImageParams

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

RegistryClientMockGetImageParams contains parameters of the RegistryClient.GetImage

type RegistryClientMockGetImageResults

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

RegistryClientMockGetImageResults contains results of the RegistryClient.GetImage

type RegistryClientMockGetManifestExpectation

type RegistryClientMockGetManifestExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RegistryClientMockGetManifestExpectation specifies expectation struct of the RegistryClient.GetManifest

func (*RegistryClientMockGetManifestExpectation) Then

Then sets up RegistryClient.GetManifest return parameters for the expectation previously defined by the When method

type RegistryClientMockGetManifestExpectationOrigins

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

RegistryClientMockGetManifestOrigins contains origins of expectations of the RegistryClient.GetManifest

type RegistryClientMockGetManifestParamPtrs

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

RegistryClientMockGetManifestParamPtrs contains pointers to parameters of the RegistryClient.GetManifest

type RegistryClientMockGetManifestParams

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

RegistryClientMockGetManifestParams contains parameters of the RegistryClient.GetManifest

type RegistryClientMockGetManifestResults

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

RegistryClientMockGetManifestResults contains results of the RegistryClient.GetManifest

type RegistryClientMockGetRegistryExpectation

type RegistryClientMockGetRegistryExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RegistryClientMockGetRegistryExpectation specifies expectation struct of the RegistryClient.GetRegistry

type RegistryClientMockGetRegistryResults

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

RegistryClientMockGetRegistryResults contains results of the RegistryClient.GetRegistry

type RegistryClientMockListRepositoriesExpectation

type RegistryClientMockListRepositoriesExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RegistryClientMockListRepositoriesExpectation specifies expectation struct of the RegistryClient.ListRepositories

func (*RegistryClientMockListRepositoriesExpectation) Then

Then sets up RegistryClient.ListRepositories return parameters for the expectation previously defined by the When method

type RegistryClientMockListRepositoriesExpectationOrigins

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

RegistryClientMockListRepositoriesOrigins contains origins of expectations of the RegistryClient.ListRepositories

type RegistryClientMockListRepositoriesParamPtrs

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

RegistryClientMockListRepositoriesParamPtrs contains pointers to parameters of the RegistryClient.ListRepositories

type RegistryClientMockListRepositoriesParams

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

RegistryClientMockListRepositoriesParams contains parameters of the RegistryClient.ListRepositories

type RegistryClientMockListRepositoriesResults

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

RegistryClientMockListRepositoriesResults contains results of the RegistryClient.ListRepositories

type RegistryClientMockListTagsExpectation

type RegistryClientMockListTagsExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RegistryClientMockListTagsExpectation specifies expectation struct of the RegistryClient.ListTags

func (*RegistryClientMockListTagsExpectation) Then

Then sets up RegistryClient.ListTags return parameters for the expectation previously defined by the When method

type RegistryClientMockListTagsExpectationOrigins

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

RegistryClientMockListTagsOrigins contains origins of expectations of the RegistryClient.ListTags

type RegistryClientMockListTagsParamPtrs

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

RegistryClientMockListTagsParamPtrs contains pointers to parameters of the RegistryClient.ListTags

type RegistryClientMockListTagsParams

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

RegistryClientMockListTagsParams contains parameters of the RegistryClient.ListTags

type RegistryClientMockListTagsResults

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

RegistryClientMockListTagsResults contains results of the RegistryClient.ListTags

type RegistryClientMockPushImageExpectation added in v0.20.12

type RegistryClientMockPushImageExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RegistryClientMockPushImageExpectation specifies expectation struct of the RegistryClient.PushImage

func (*RegistryClientMockPushImageExpectation) Then added in v0.20.12

Then sets up RegistryClient.PushImage return parameters for the expectation previously defined by the When method

type RegistryClientMockPushImageExpectationOrigins added in v0.20.12

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

RegistryClientMockPushImageOrigins contains origins of expectations of the RegistryClient.PushImage

type RegistryClientMockPushImageParamPtrs added in v0.20.12

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

RegistryClientMockPushImageParamPtrs contains pointers to parameters of the RegistryClient.PushImage

type RegistryClientMockPushImageParams added in v0.20.12

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

RegistryClientMockPushImageParams contains parameters of the RegistryClient.PushImage

type RegistryClientMockPushImageResults added in v0.20.12

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

RegistryClientMockPushImageResults contains results of the RegistryClient.PushImage

type RegistryClientMockWithSegmentExpectation added in v0.21.2

type RegistryClientMockWithSegmentExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RegistryClientMockWithSegmentExpectation specifies expectation struct of the RegistryClient.WithSegment

func (*RegistryClientMockWithSegmentExpectation) Then added in v0.21.2

Then sets up RegistryClient.WithSegment return parameters for the expectation previously defined by the When method

type RegistryClientMockWithSegmentExpectationOrigins added in v0.21.2

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

RegistryClientMockWithSegmentOrigins contains origins of expectations of the RegistryClient.WithSegment

type RegistryClientMockWithSegmentParamPtrs added in v0.21.2

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

RegistryClientMockWithSegmentParamPtrs contains pointers to parameters of the RegistryClient.WithSegment

type RegistryClientMockWithSegmentParams added in v0.21.2

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

RegistryClientMockWithSegmentParams contains parameters of the RegistryClient.WithSegment

type RegistryClientMockWithSegmentResults added in v0.21.2

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

RegistryClientMockWithSegmentResults contains results of the RegistryClient.WithSegment

type RegistryImageMock added in v0.21.2

type RegistryImageMock struct {
	ConfigFileMock mRegistryImageMockConfigFile

	ConfigNameMock mRegistryImageMockConfigName

	DigestMock mRegistryImageMockDigest

	ExtractMock mRegistryImageMockExtract

	LayerByDiffIDMock mRegistryImageMockLayerByDiffID

	LayerByDigestMock mRegistryImageMockLayerByDigest

	LayersMock mRegistryImageMockLayers

	ManifestMock mRegistryImageMockManifest

	MediaTypeMock mRegistryImageMockMediaType

	RawConfigFileMock mRegistryImageMockRawConfigFile

	RawManifestMock mRegistryImageMockRawManifest

	SizeMock mRegistryImageMockSize
	// contains filtered or unexported fields
}

RegistryImageMock implements mm_pkg.RegistryImage

func NewRegistryImageMock added in v0.21.2

func NewRegistryImageMock(t minimock.Tester) *RegistryImageMock

NewRegistryImageMock returns a mock for mm_pkg.RegistryImage

func (*RegistryImageMock) ConfigFile added in v0.21.2

func (mmConfigFile *RegistryImageMock) ConfigFile() (cp1 *v1.ConfigFile, err error)

ConfigFile implements mm_pkg.RegistryImage

func (*RegistryImageMock) ConfigFileAfterCounter added in v0.21.2

func (mmConfigFile *RegistryImageMock) ConfigFileAfterCounter() uint64

ConfigFileAfterCounter returns a count of finished RegistryImageMock.ConfigFile invocations

func (*RegistryImageMock) ConfigFileBeforeCounter added in v0.21.2

func (mmConfigFile *RegistryImageMock) ConfigFileBeforeCounter() uint64

ConfigFileBeforeCounter returns a count of RegistryImageMock.ConfigFile invocations

func (*RegistryImageMock) ConfigName added in v0.21.2

func (mmConfigName *RegistryImageMock) ConfigName() (h1 v1.Hash, err error)

ConfigName implements mm_pkg.RegistryImage

func (*RegistryImageMock) ConfigNameAfterCounter added in v0.21.2

func (mmConfigName *RegistryImageMock) ConfigNameAfterCounter() uint64

ConfigNameAfterCounter returns a count of finished RegistryImageMock.ConfigName invocations

func (*RegistryImageMock) ConfigNameBeforeCounter added in v0.21.2

func (mmConfigName *RegistryImageMock) ConfigNameBeforeCounter() uint64

ConfigNameBeforeCounter returns a count of RegistryImageMock.ConfigName invocations

func (*RegistryImageMock) Digest added in v0.21.2

func (mmDigest *RegistryImageMock) Digest() (h1 v1.Hash, err error)

Digest implements mm_pkg.RegistryImage

func (*RegistryImageMock) DigestAfterCounter added in v0.21.2

func (mmDigest *RegistryImageMock) DigestAfterCounter() uint64

DigestAfterCounter returns a count of finished RegistryImageMock.Digest invocations

func (*RegistryImageMock) DigestBeforeCounter added in v0.21.2

func (mmDigest *RegistryImageMock) DigestBeforeCounter() uint64

DigestBeforeCounter returns a count of RegistryImageMock.Digest invocations

func (*RegistryImageMock) Extract added in v0.21.2

func (mmExtract *RegistryImageMock) Extract() (r1 io.ReadCloser)

Extract implements mm_pkg.RegistryImage

func (*RegistryImageMock) ExtractAfterCounter added in v0.21.2

func (mmExtract *RegistryImageMock) ExtractAfterCounter() uint64

ExtractAfterCounter returns a count of finished RegistryImageMock.Extract invocations

func (*RegistryImageMock) ExtractBeforeCounter added in v0.21.2

func (mmExtract *RegistryImageMock) ExtractBeforeCounter() uint64

ExtractBeforeCounter returns a count of RegistryImageMock.Extract invocations

func (*RegistryImageMock) LayerByDiffID added in v0.21.2

func (mmLayerByDiffID *RegistryImageMock) LayerByDiffID(h1 v1.Hash) (l1 v1.Layer, err error)

LayerByDiffID implements mm_pkg.RegistryImage

func (*RegistryImageMock) LayerByDiffIDAfterCounter added in v0.21.2

func (mmLayerByDiffID *RegistryImageMock) LayerByDiffIDAfterCounter() uint64

LayerByDiffIDAfterCounter returns a count of finished RegistryImageMock.LayerByDiffID invocations

func (*RegistryImageMock) LayerByDiffIDBeforeCounter added in v0.21.2

func (mmLayerByDiffID *RegistryImageMock) LayerByDiffIDBeforeCounter() uint64

LayerByDiffIDBeforeCounter returns a count of RegistryImageMock.LayerByDiffID invocations

func (*RegistryImageMock) LayerByDigest added in v0.21.2

func (mmLayerByDigest *RegistryImageMock) LayerByDigest(h1 v1.Hash) (l1 v1.Layer, err error)

LayerByDigest implements mm_pkg.RegistryImage

func (*RegistryImageMock) LayerByDigestAfterCounter added in v0.21.2

func (mmLayerByDigest *RegistryImageMock) LayerByDigestAfterCounter() uint64

LayerByDigestAfterCounter returns a count of finished RegistryImageMock.LayerByDigest invocations

func (*RegistryImageMock) LayerByDigestBeforeCounter added in v0.21.2

func (mmLayerByDigest *RegistryImageMock) LayerByDigestBeforeCounter() uint64

LayerByDigestBeforeCounter returns a count of RegistryImageMock.LayerByDigest invocations

func (*RegistryImageMock) Layers added in v0.21.2

func (mmLayers *RegistryImageMock) Layers() (la1 []v1.Layer, err error)

Layers implements mm_pkg.RegistryImage

func (*RegistryImageMock) LayersAfterCounter added in v0.21.2

func (mmLayers *RegistryImageMock) LayersAfterCounter() uint64

LayersAfterCounter returns a count of finished RegistryImageMock.Layers invocations

func (*RegistryImageMock) LayersBeforeCounter added in v0.21.2

func (mmLayers *RegistryImageMock) LayersBeforeCounter() uint64

LayersBeforeCounter returns a count of RegistryImageMock.Layers invocations

func (*RegistryImageMock) Manifest added in v0.21.2

func (mmManifest *RegistryImageMock) Manifest() (mp1 *v1.Manifest, err error)

Manifest implements mm_pkg.RegistryImage

func (*RegistryImageMock) ManifestAfterCounter added in v0.21.2

func (mmManifest *RegistryImageMock) ManifestAfterCounter() uint64

ManifestAfterCounter returns a count of finished RegistryImageMock.Manifest invocations

func (*RegistryImageMock) ManifestBeforeCounter added in v0.21.2

func (mmManifest *RegistryImageMock) ManifestBeforeCounter() uint64

ManifestBeforeCounter returns a count of RegistryImageMock.Manifest invocations

func (*RegistryImageMock) MediaType added in v0.21.2

func (mmMediaType *RegistryImageMock) MediaType() (m1 types.MediaType, err error)

MediaType implements mm_pkg.RegistryImage

func (*RegistryImageMock) MediaTypeAfterCounter added in v0.21.2

func (mmMediaType *RegistryImageMock) MediaTypeAfterCounter() uint64

MediaTypeAfterCounter returns a count of finished RegistryImageMock.MediaType invocations

func (*RegistryImageMock) MediaTypeBeforeCounter added in v0.21.2

func (mmMediaType *RegistryImageMock) MediaTypeBeforeCounter() uint64

MediaTypeBeforeCounter returns a count of RegistryImageMock.MediaType invocations

func (*RegistryImageMock) MinimockConfigFileDone added in v0.21.2

func (m *RegistryImageMock) MinimockConfigFileDone() bool

MinimockConfigFileDone returns true if the count of the ConfigFile invocations corresponds the number of defined expectations

func (*RegistryImageMock) MinimockConfigFileInspect added in v0.21.2

func (m *RegistryImageMock) MinimockConfigFileInspect()

MinimockConfigFileInspect logs each unmet expectation

func (*RegistryImageMock) MinimockConfigNameDone added in v0.21.2

func (m *RegistryImageMock) MinimockConfigNameDone() bool

MinimockConfigNameDone returns true if the count of the ConfigName invocations corresponds the number of defined expectations

func (*RegistryImageMock) MinimockConfigNameInspect added in v0.21.2

func (m *RegistryImageMock) MinimockConfigNameInspect()

MinimockConfigNameInspect logs each unmet expectation

func (*RegistryImageMock) MinimockDigestDone added in v0.21.2

func (m *RegistryImageMock) MinimockDigestDone() bool

MinimockDigestDone returns true if the count of the Digest invocations corresponds the number of defined expectations

func (*RegistryImageMock) MinimockDigestInspect added in v0.21.2

func (m *RegistryImageMock) MinimockDigestInspect()

MinimockDigestInspect logs each unmet expectation

func (*RegistryImageMock) MinimockExtractDone added in v0.21.2

func (m *RegistryImageMock) MinimockExtractDone() bool

MinimockExtractDone returns true if the count of the Extract invocations corresponds the number of defined expectations

func (*RegistryImageMock) MinimockExtractInspect added in v0.21.2

func (m *RegistryImageMock) MinimockExtractInspect()

MinimockExtractInspect logs each unmet expectation

func (*RegistryImageMock) MinimockFinish added in v0.21.2

func (m *RegistryImageMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*RegistryImageMock) MinimockLayerByDiffIDDone added in v0.21.2

func (m *RegistryImageMock) MinimockLayerByDiffIDDone() bool

MinimockLayerByDiffIDDone returns true if the count of the LayerByDiffID invocations corresponds the number of defined expectations

func (*RegistryImageMock) MinimockLayerByDiffIDInspect added in v0.21.2

func (m *RegistryImageMock) MinimockLayerByDiffIDInspect()

MinimockLayerByDiffIDInspect logs each unmet expectation

func (*RegistryImageMock) MinimockLayerByDigestDone added in v0.21.2

func (m *RegistryImageMock) MinimockLayerByDigestDone() bool

MinimockLayerByDigestDone returns true if the count of the LayerByDigest invocations corresponds the number of defined expectations

func (*RegistryImageMock) MinimockLayerByDigestInspect added in v0.21.2

func (m *RegistryImageMock) MinimockLayerByDigestInspect()

MinimockLayerByDigestInspect logs each unmet expectation

func (*RegistryImageMock) MinimockLayersDone added in v0.21.2

func (m *RegistryImageMock) MinimockLayersDone() bool

MinimockLayersDone returns true if the count of the Layers invocations corresponds the number of defined expectations

func (*RegistryImageMock) MinimockLayersInspect added in v0.21.2

func (m *RegistryImageMock) MinimockLayersInspect()

MinimockLayersInspect logs each unmet expectation

func (*RegistryImageMock) MinimockManifestDone added in v0.21.2

func (m *RegistryImageMock) MinimockManifestDone() bool

MinimockManifestDone returns true if the count of the Manifest invocations corresponds the number of defined expectations

func (*RegistryImageMock) MinimockManifestInspect added in v0.21.2

func (m *RegistryImageMock) MinimockManifestInspect()

MinimockManifestInspect logs each unmet expectation

func (*RegistryImageMock) MinimockMediaTypeDone added in v0.21.2

func (m *RegistryImageMock) MinimockMediaTypeDone() bool

MinimockMediaTypeDone returns true if the count of the MediaType invocations corresponds the number of defined expectations

func (*RegistryImageMock) MinimockMediaTypeInspect added in v0.21.2

func (m *RegistryImageMock) MinimockMediaTypeInspect()

MinimockMediaTypeInspect logs each unmet expectation

func (*RegistryImageMock) MinimockRawConfigFileDone added in v0.21.2

func (m *RegistryImageMock) MinimockRawConfigFileDone() bool

MinimockRawConfigFileDone returns true if the count of the RawConfigFile invocations corresponds the number of defined expectations

func (*RegistryImageMock) MinimockRawConfigFileInspect added in v0.21.2

func (m *RegistryImageMock) MinimockRawConfigFileInspect()

MinimockRawConfigFileInspect logs each unmet expectation

func (*RegistryImageMock) MinimockRawManifestDone added in v0.21.2

func (m *RegistryImageMock) MinimockRawManifestDone() bool

MinimockRawManifestDone returns true if the count of the RawManifest invocations corresponds the number of defined expectations

func (*RegistryImageMock) MinimockRawManifestInspect added in v0.21.2

func (m *RegistryImageMock) MinimockRawManifestInspect()

MinimockRawManifestInspect logs each unmet expectation

func (*RegistryImageMock) MinimockSizeDone added in v0.21.2

func (m *RegistryImageMock) MinimockSizeDone() bool

MinimockSizeDone returns true if the count of the Size invocations corresponds the number of defined expectations

func (*RegistryImageMock) MinimockSizeInspect added in v0.21.2

func (m *RegistryImageMock) MinimockSizeInspect()

MinimockSizeInspect logs each unmet expectation

func (*RegistryImageMock) MinimockWait added in v0.21.2

func (m *RegistryImageMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

func (*RegistryImageMock) RawConfigFile added in v0.21.2

func (mmRawConfigFile *RegistryImageMock) RawConfigFile() (ba1 []byte, err error)

RawConfigFile implements mm_pkg.RegistryImage

func (*RegistryImageMock) RawConfigFileAfterCounter added in v0.21.2

func (mmRawConfigFile *RegistryImageMock) RawConfigFileAfterCounter() uint64

RawConfigFileAfterCounter returns a count of finished RegistryImageMock.RawConfigFile invocations

func (*RegistryImageMock) RawConfigFileBeforeCounter added in v0.21.2

func (mmRawConfigFile *RegistryImageMock) RawConfigFileBeforeCounter() uint64

RawConfigFileBeforeCounter returns a count of RegistryImageMock.RawConfigFile invocations

func (*RegistryImageMock) RawManifest added in v0.21.2

func (mmRawManifest *RegistryImageMock) RawManifest() (ba1 []byte, err error)

RawManifest implements mm_pkg.RegistryImage

func (*RegistryImageMock) RawManifestAfterCounter added in v0.21.2

func (mmRawManifest *RegistryImageMock) RawManifestAfterCounter() uint64

RawManifestAfterCounter returns a count of finished RegistryImageMock.RawManifest invocations

func (*RegistryImageMock) RawManifestBeforeCounter added in v0.21.2

func (mmRawManifest *RegistryImageMock) RawManifestBeforeCounter() uint64

RawManifestBeforeCounter returns a count of RegistryImageMock.RawManifest invocations

func (*RegistryImageMock) Size added in v0.21.2

func (mmSize *RegistryImageMock) Size() (i1 int64, err error)

Size implements mm_pkg.RegistryImage

func (*RegistryImageMock) SizeAfterCounter added in v0.21.2

func (mmSize *RegistryImageMock) SizeAfterCounter() uint64

SizeAfterCounter returns a count of finished RegistryImageMock.Size invocations

func (*RegistryImageMock) SizeBeforeCounter added in v0.21.2

func (mmSize *RegistryImageMock) SizeBeforeCounter() uint64

SizeBeforeCounter returns a count of RegistryImageMock.Size invocations

type RegistryImageMockConfigFileExpectation added in v0.21.2

type RegistryImageMockConfigFileExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RegistryImageMockConfigFileExpectation specifies expectation struct of the RegistryImage.ConfigFile

type RegistryImageMockConfigFileResults added in v0.21.2

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

RegistryImageMockConfigFileResults contains results of the RegistryImage.ConfigFile

type RegistryImageMockConfigNameExpectation added in v0.21.2

type RegistryImageMockConfigNameExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RegistryImageMockConfigNameExpectation specifies expectation struct of the RegistryImage.ConfigName

type RegistryImageMockConfigNameResults added in v0.21.2

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

RegistryImageMockConfigNameResults contains results of the RegistryImage.ConfigName

type RegistryImageMockDigestExpectation added in v0.21.2

type RegistryImageMockDigestExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RegistryImageMockDigestExpectation specifies expectation struct of the RegistryImage.Digest

type RegistryImageMockDigestResults added in v0.21.2

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

RegistryImageMockDigestResults contains results of the RegistryImage.Digest

type RegistryImageMockExtractExpectation added in v0.21.2

type RegistryImageMockExtractExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RegistryImageMockExtractExpectation specifies expectation struct of the RegistryImage.Extract

type RegistryImageMockExtractResults added in v0.21.2

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

RegistryImageMockExtractResults contains results of the RegistryImage.Extract

type RegistryImageMockLayerByDiffIDExpectation added in v0.21.2

type RegistryImageMockLayerByDiffIDExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RegistryImageMockLayerByDiffIDExpectation specifies expectation struct of the RegistryImage.LayerByDiffID

func (*RegistryImageMockLayerByDiffIDExpectation) Then added in v0.21.2

Then sets up RegistryImage.LayerByDiffID return parameters for the expectation previously defined by the When method

type RegistryImageMockLayerByDiffIDExpectationOrigins added in v0.21.2

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

RegistryImageMockLayerByDiffIDOrigins contains origins of expectations of the RegistryImage.LayerByDiffID

type RegistryImageMockLayerByDiffIDParamPtrs added in v0.21.2

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

RegistryImageMockLayerByDiffIDParamPtrs contains pointers to parameters of the RegistryImage.LayerByDiffID

type RegistryImageMockLayerByDiffIDParams added in v0.21.2

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

RegistryImageMockLayerByDiffIDParams contains parameters of the RegistryImage.LayerByDiffID

type RegistryImageMockLayerByDiffIDResults added in v0.21.2

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

RegistryImageMockLayerByDiffIDResults contains results of the RegistryImage.LayerByDiffID

type RegistryImageMockLayerByDigestExpectation added in v0.21.2

type RegistryImageMockLayerByDigestExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RegistryImageMockLayerByDigestExpectation specifies expectation struct of the RegistryImage.LayerByDigest

func (*RegistryImageMockLayerByDigestExpectation) Then added in v0.21.2

Then sets up RegistryImage.LayerByDigest return parameters for the expectation previously defined by the When method

type RegistryImageMockLayerByDigestExpectationOrigins added in v0.21.2

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

RegistryImageMockLayerByDigestOrigins contains origins of expectations of the RegistryImage.LayerByDigest

type RegistryImageMockLayerByDigestParamPtrs added in v0.21.2

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

RegistryImageMockLayerByDigestParamPtrs contains pointers to parameters of the RegistryImage.LayerByDigest

type RegistryImageMockLayerByDigestParams added in v0.21.2

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

RegistryImageMockLayerByDigestParams contains parameters of the RegistryImage.LayerByDigest

type RegistryImageMockLayerByDigestResults added in v0.21.2

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

RegistryImageMockLayerByDigestResults contains results of the RegistryImage.LayerByDigest

type RegistryImageMockLayersExpectation added in v0.21.2

type RegistryImageMockLayersExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RegistryImageMockLayersExpectation specifies expectation struct of the RegistryImage.Layers

type RegistryImageMockLayersResults added in v0.21.2

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

RegistryImageMockLayersResults contains results of the RegistryImage.Layers

type RegistryImageMockManifestExpectation added in v0.21.2

type RegistryImageMockManifestExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RegistryImageMockManifestExpectation specifies expectation struct of the RegistryImage.Manifest

type RegistryImageMockManifestResults added in v0.21.2

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

RegistryImageMockManifestResults contains results of the RegistryImage.Manifest

type RegistryImageMockMediaTypeExpectation added in v0.21.2

type RegistryImageMockMediaTypeExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RegistryImageMockMediaTypeExpectation specifies expectation struct of the RegistryImage.MediaType

type RegistryImageMockMediaTypeResults added in v0.21.2

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

RegistryImageMockMediaTypeResults contains results of the RegistryImage.MediaType

type RegistryImageMockRawConfigFileExpectation added in v0.21.2

type RegistryImageMockRawConfigFileExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RegistryImageMockRawConfigFileExpectation specifies expectation struct of the RegistryImage.RawConfigFile

type RegistryImageMockRawConfigFileResults added in v0.21.2

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

RegistryImageMockRawConfigFileResults contains results of the RegistryImage.RawConfigFile

type RegistryImageMockRawManifestExpectation added in v0.21.2

type RegistryImageMockRawManifestExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RegistryImageMockRawManifestExpectation specifies expectation struct of the RegistryImage.RawManifest

type RegistryImageMockRawManifestResults added in v0.21.2

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

RegistryImageMockRawManifestResults contains results of the RegistryImage.RawManifest

type RegistryImageMockSizeExpectation added in v0.21.2

type RegistryImageMockSizeExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RegistryImageMockSizeExpectation specifies expectation struct of the RegistryImage.Size

type RegistryImageMockSizeResults added in v0.21.2

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

RegistryImageMockSizeResults contains results of the RegistryImage.Size

Jump to

Keyboard shortcuts

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