Documentation
¶
Overview ¶
Copyright 2016 Mender Software AS
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- type ImagesModel
- func (_m *ImagesModel) CreateImage(ctx context.Context, multipartUploadMsg *controller.MultipartUploadMsg) (string, error)
- func (_m *ImagesModel) DeleteImage(ctx context.Context, imageID string) error
- func (_m *ImagesModel) DownloadLink(ctx context.Context, imageID string, expire time.Duration) (*images.Link, error)
- func (_m *ImagesModel) EditImage(ctx context.Context, id string, ...) (bool, error)
- func (_m *ImagesModel) GetImage(ctx context.Context, id string) (*images.SoftwareImage, error)
- func (_m *ImagesModel) ListImages(ctx context.Context, filters map[string]string) ([]*images.SoftwareImage, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImagesModel ¶
ImagesModel is an autogenerated mock type for the ImagesModel type
func (*ImagesModel) CreateImage ¶
func (_m *ImagesModel) CreateImage(ctx context.Context, multipartUploadMsg *controller.MultipartUploadMsg) (string, error)
CreateImage provides a mock function with given fields: ctx, multipartUploadMsg
func (*ImagesModel) DeleteImage ¶
func (_m *ImagesModel) DeleteImage(ctx context.Context, imageID string) error
DeleteImage provides a mock function with given fields: ctx, imageID
func (*ImagesModel) DownloadLink ¶
func (_m *ImagesModel) DownloadLink(ctx context.Context, imageID string, expire time.Duration) (*images.Link, error)
DownloadLink provides a mock function with given fields: ctx, imageID, expire
func (*ImagesModel) EditImage ¶
func (_m *ImagesModel) EditImage(ctx context.Context, id string, constructorData *images.SoftwareImageMetaConstructor) (bool, error)
EditImage provides a mock function with given fields: ctx, id, constructorData
func (*ImagesModel) GetImage ¶
func (_m *ImagesModel) GetImage(ctx context.Context, id string) (*images.SoftwareImage, error)
GetImage provides a mock function with given fields: ctx, id
func (*ImagesModel) ListImages ¶
func (_m *ImagesModel) ListImages(ctx context.Context, filters map[string]string) ([]*images.SoftwareImage, error)
ListImages provides a mock function with given fields: ctx, filters
Click to show internal directories.
Click to hide internal directories.