Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GsClient ¶
type GsClient interface { // Upload uploads an apk to the Fleet Services caching service. Upload(ctx context.Context, apkLocalPath string, apkName string) error // ListFiles lists objects using prefix and delimeter. ListFiles(ctx context.Context, prefix, delim string) ([]string, error) }
GsClient specifies the APIs between provisioning service and storage client. GsClient interface is used mainly for testing purpose, since storage pkg does not provide test pkg.
func NewGsClient ¶
type MockGsClient ¶
type MockGsClient struct {
// contains filtered or unexported fields
}
MockGsClient is a mock of GsClient interface.
func NewMockGsClient ¶
func NewMockGsClient(ctrl *gomock.Controller) *MockGsClient
NewMockGsClient creates a new mock instance.
func (*MockGsClient) EXPECT ¶
func (m *MockGsClient) EXPECT() *MockGsClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockGsClientMockRecorder ¶
type MockGsClientMockRecorder struct {
// contains filtered or unexported fields
}
MockGsClientMockRecorder is the mock recorder for MockGsClient.
func (*MockGsClientMockRecorder) ListFiles ¶
func (mr *MockGsClientMockRecorder) ListFiles(arg0, arg1, arg2 interface{}) *gomock.Call
ListFiles indicates an expected call of ListFiles.
func (*MockGsClientMockRecorder) Upload ¶
func (mr *MockGsClientMockRecorder) Upload(arg0, arg1, arg2 interface{}) *gomock.Call
Upload indicates an expected call of Upload.
Click to show internal directories.
Click to hide internal directories.