cipd

package
v0.0.0-...-19f3ddf Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CIPD

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

func NewCIPDClient

func NewCIPDClient(ctx context.Context) *CIPD

func (*CIPD) Describe

func (c *CIPD) Describe(cipdPackageProto *api.CIPDPackage, describeTags, describeRefs bool) (*cipd.InstanceDescription, error)

Describe returns information about CIPD package instances.

func (*CIPD) FetchInstanceTo

func (c *CIPD) FetchInstanceTo(cipdPackageProto *api.CIPDPackage, packageName, instanceId, filePath string) error

FetchInstanceTo downloads CIPD package to a given location.

type CIPDClient

type CIPDClient interface {
	Describe(cipdPackageProto *api.CIPDPackage, describeTags, describeRefs bool) (*cipd.InstanceDescription, error)
	FetchInstanceTo(cipdPackageProto *api.CIPDPackage, packageName, instanceId, filePath string) error
}

type MockCIPDClientInterface

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

MockCIPDClientInterface is a mock of CIPDClient interface.

func NewMockCIPDClientInterface

func NewMockCIPDClientInterface(ctrl *gomock.Controller) *MockCIPDClientInterface

NewMockCIPDClientInterface creates a new mock instance.

func (*MockCIPDClientInterface) Describe

func (m *MockCIPDClientInterface) Describe(cipdPackageProto *api.CIPDPackage, describeTags, describeRefs bool) (*cipd.InstanceDescription, error)

Describe mocks base method.

func (*MockCIPDClientInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCIPDClientInterface) FetchInstanceTo

func (m *MockCIPDClientInterface) FetchInstanceTo(cipdPackageProto *api.CIPDPackage, packageName, instanceId, filePath string) error

FetchInstanceTo mocks base method.

type MockCIPDClientInterfaceMockRecorder

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

MockCIPDClientInterfaceMockRecorder is the mock recorder for CIPDClient.

func (*MockCIPDClientInterfaceMockRecorder) Describe

func (mr *MockCIPDClientInterfaceMockRecorder) Describe(cipdPackageProto, describeTags, describeRefs interface{}) *gomock.Call

Describe indicates an expected call of Describe.

func (*MockCIPDClientInterfaceMockRecorder) FetchInstanceTo

func (mr *MockCIPDClientInterfaceMockRecorder) FetchInstanceTo(cipdPackageProto, packageName, instanceId, filePath interface{}) *gomock.Call

FetchInstanceTo indicates an expected call of FetchInstanceTo.

Jump to

Keyboard shortcuts

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