mocks

package
v0.0.0-...-e0ff526 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CIPDClient

type CIPDClient struct {
	mock.Mock
}

CIPDClient is an autogenerated mock type for the CIPDClient type

func NewCIPDClient

func NewCIPDClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *CIPDClient

NewCIPDClient creates a new instance of CIPDClient. 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 (*CIPDClient) Attach

func (_m *CIPDClient) Attach(ctx context.Context, pin common.Pin, refs []string, tags []string, metadata map[string]string) error

Attach provides a mock function with given fields: ctx, pin, refs, tags, metadata

func (*CIPDClient) AttachMetadataWhenReady

func (_m *CIPDClient) AttachMetadataWhenReady(ctx context.Context, pin common.Pin, md []clientcipd.Metadata) error

AttachMetadataWhenReady provides a mock function with given fields: ctx, pin, md

func (*CIPDClient) AttachTagsWhenReady

func (_m *CIPDClient) AttachTagsWhenReady(ctx context.Context, pin common.Pin, tags []string) error

AttachTagsWhenReady provides a mock function with given fields: ctx, pin, tags

func (*CIPDClient) BeginBatch

func (_m *CIPDClient) BeginBatch(ctx context.Context)

BeginBatch provides a mock function with given fields: ctx

func (*CIPDClient) Close

func (_m *CIPDClient) Close(ctx context.Context)

Close provides a mock function with given fields: ctx

func (*CIPDClient) Create

func (_m *CIPDClient) Create(ctx context.Context, name string, dir string, installMode pkg.InstallMode, excludeMatchingFiles []*regexp.Regexp, refs []string, tags []string, metadata map[string]string) (common.Pin, error)

Create provides a mock function with given fields: ctx, name, dir, installMode, excludeMatchingFiles, refs, tags, metadata

func (*CIPDClient) Describe

func (_m *CIPDClient) Describe(ctx context.Context, _a1 string, instance string, includeMetadata bool) (*clientcipd.InstanceDescription, error)

Describe provides a mock function with given fields: ctx, _a1, instance, includeMetadata

func (*CIPDClient) DescribeClient

func (_m *CIPDClient) DescribeClient(ctx context.Context, pin common.Pin) (*clientcipd.ClientDescription, error)

DescribeClient provides a mock function with given fields: ctx, pin

func (*CIPDClient) DescribeInstance

DescribeInstance provides a mock function with given fields: ctx, pin, opts

func (*CIPDClient) EndBatch

func (_m *CIPDClient) EndBatch(ctx context.Context)

EndBatch provides a mock function with given fields: ctx

func (*CIPDClient) Ensure

func (_m *CIPDClient) Ensure(ctx context.Context, forceCopyInstallMode bool, packages ...*cipd.Package) error

Ensure provides a mock function with given fields: ctx, forceCopyInstallMode, packages

func (*CIPDClient) EnsurePackages

EnsurePackages provides a mock function with given fields: ctx, pkgs, opts

func (*CIPDClient) FetchACL

func (_m *CIPDClient) FetchACL(ctx context.Context, prefix string) ([]clientcipd.PackageACL, error)

FetchACL provides a mock function with given fields: ctx, prefix

func (*CIPDClient) FetchInstance

func (_m *CIPDClient) FetchInstance(ctx context.Context, pin common.Pin) (pkg.Source, error)

FetchInstance provides a mock function with given fields: ctx, pin

func (*CIPDClient) FetchInstanceTo

func (_m *CIPDClient) FetchInstanceTo(ctx context.Context, pin common.Pin, output io.WriteSeeker) error

FetchInstanceTo provides a mock function with given fields: ctx, pin, output

func (*CIPDClient) FetchPackageRefs

func (_m *CIPDClient) FetchPackageRefs(ctx context.Context, packageName string) ([]clientcipd.RefInfo, error)

FetchPackageRefs provides a mock function with given fields: ctx, packageName

func (*CIPDClient) FetchRoles

func (_m *CIPDClient) FetchRoles(ctx context.Context, prefix string) ([]string, error)

FetchRoles provides a mock function with given fields: ctx, prefix

func (*CIPDClient) FindDeployed

func (_m *CIPDClient) FindDeployed(ctx context.Context) (common.PinSliceBySubdir, error)

FindDeployed provides a mock function with given fields: ctx

func (*CIPDClient) ListInstances

func (_m *CIPDClient) ListInstances(ctx context.Context, packageName string) (clientcipd.InstanceEnumerator, error)

ListInstances provides a mock function with given fields: ctx, packageName

func (*CIPDClient) ListPackages

func (_m *CIPDClient) ListPackages(ctx context.Context, prefix string, recursive bool, includeHidden bool) ([]string, error)

ListPackages provides a mock function with given fields: ctx, prefix, recursive, includeHidden

func (*CIPDClient) ModifyACL

func (_m *CIPDClient) ModifyACL(ctx context.Context, prefix string, changes []clientcipd.PackageACLChange) error

ModifyACL provides a mock function with given fields: ctx, prefix, changes

func (*CIPDClient) Options

func (_m *CIPDClient) Options() clientcipd.ClientOptions

Options provides a mock function with given fields:

func (*CIPDClient) RegisterInstance

func (_m *CIPDClient) RegisterInstance(ctx context.Context, pin common.Pin, src pkg.Source, timeout time.Duration) error

RegisterInstance provides a mock function with given fields: ctx, pin, src, timeout

func (*CIPDClient) ResolveVersion

func (_m *CIPDClient) ResolveVersion(ctx context.Context, packageName string, version string) (common.Pin, error)

ResolveVersion provides a mock function with given fields: ctx, packageName, version

func (*CIPDClient) SearchInstances

func (_m *CIPDClient) SearchInstances(ctx context.Context, packageName string, tags []string) (common.PinSlice, error)

SearchInstances provides a mock function with given fields: ctx, packageName, tags

func (*CIPDClient) SetRefWhenReady

func (_m *CIPDClient) SetRefWhenReady(ctx context.Context, ref string, pin common.Pin) error

SetRefWhenReady provides a mock function with given fields: ctx, ref, pin

Jump to

Keyboard shortcuts

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