Documentation ¶
Index ¶
- type CIPDClient
- func (_m *CIPDClient) Attach(ctx context.Context, pin common.Pin, refs []string, tags []string, ...) error
- func (_m *CIPDClient) AttachMetadataWhenReady(ctx context.Context, pin common.Pin, md []clientcipd.Metadata) error
- func (_m *CIPDClient) AttachTagsWhenReady(ctx context.Context, pin common.Pin, tags []string) error
- func (_m *CIPDClient) BeginBatch(ctx context.Context)
- func (_m *CIPDClient) Close(ctx context.Context)
- func (_m *CIPDClient) Create(ctx context.Context, name string, dir string, installMode pkg.InstallMode, ...) (common.Pin, error)
- func (_m *CIPDClient) Describe(ctx context.Context, _a1 string, instance string, includeMetadata bool) (*clientcipd.InstanceDescription, error)
- func (_m *CIPDClient) DescribeClient(ctx context.Context, pin common.Pin) (*clientcipd.ClientDescription, error)
- func (_m *CIPDClient) DescribeInstance(ctx context.Context, pin common.Pin, opts *clientcipd.DescribeInstanceOpts) (*clientcipd.InstanceDescription, error)
- func (_m *CIPDClient) EndBatch(ctx context.Context)
- func (_m *CIPDClient) Ensure(ctx context.Context, forceCopyInstallMode bool, packages ...*cipd.Package) error
- func (_m *CIPDClient) EnsurePackages(ctx context.Context, pkgs common.PinSliceBySubdir, ...) (clientcipd.ActionMap, error)
- func (_m *CIPDClient) FetchACL(ctx context.Context, prefix string) ([]clientcipd.PackageACL, error)
- func (_m *CIPDClient) FetchInstance(ctx context.Context, pin common.Pin) (pkg.Source, error)
- func (_m *CIPDClient) FetchInstanceTo(ctx context.Context, pin common.Pin, output io.WriteSeeker) error
- func (_m *CIPDClient) FetchPackageRefs(ctx context.Context, packageName string) ([]clientcipd.RefInfo, error)
- func (_m *CIPDClient) FetchRoles(ctx context.Context, prefix string) ([]string, error)
- func (_m *CIPDClient) FindDeployed(ctx context.Context) (common.PinSliceBySubdir, error)
- func (_m *CIPDClient) ListInstances(ctx context.Context, packageName string) (clientcipd.InstanceEnumerator, error)
- func (_m *CIPDClient) ListPackages(ctx context.Context, prefix string, recursive bool, includeHidden bool) ([]string, error)
- func (_m *CIPDClient) ModifyACL(ctx context.Context, prefix string, changes []clientcipd.PackageACLChange) error
- func (_m *CIPDClient) Options() clientcipd.ClientOptions
- func (_m *CIPDClient) RegisterInstance(ctx context.Context, pin common.Pin, src pkg.Source, timeout time.Duration) error
- func (_m *CIPDClient) ResolveVersion(ctx context.Context, packageName string, version string) (common.Pin, error)
- func (_m *CIPDClient) SearchInstances(ctx context.Context, packageName string, tags []string) (common.PinSlice, error)
- func (_m *CIPDClient) SetRefWhenReady(ctx context.Context, ref string, pin common.Pin) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CIPDClient ¶
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 ¶
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 ¶
func (_m *CIPDClient) DescribeInstance(ctx context.Context, pin common.Pin, opts *clientcipd.DescribeInstanceOpts) (*clientcipd.InstanceDescription, error)
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 ¶
func (_m *CIPDClient) EnsurePackages(ctx context.Context, pkgs common.PinSliceBySubdir, opts *clientcipd.EnsureOptions) (clientcipd.ActionMap, error)
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 ¶
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 ¶
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 ¶
SetRefWhenReady provides a mock function with given fields: ctx, ref, pin