image

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

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

Image Image 操作封装

func New

func New(options ...Option) *Image

New 新建 Image 实例,操作 Image 资源

func (*Image) Create

func (i *Image) Create(req *apistructs.ImageCreateRequest) (int64, error)

Create 创建镜像

func (*Image) Get

func (i *Image) Get(imageIDOrImage string) (*dbclient.Image, error)

Get 获取镜像

func (*Image) List

func (i *Image) List(orgID, pageNo, pageSize int64) (*apistructs.ImageListResponseData, error)

func (*Image) Update

func (i *Image) Update(ImageIDOrImage string, req *apistructs.ImageUpdateRequest) error

Update 更新镜像

type Option

type Option func(*Image)

Option 定义 Image 对象的配置选项

func WithBundle

func WithBundle(bdl *bundle.Bundle) Option

WithBundle 配置 bundle

func WithDBClient

func WithDBClient(db *dbclient.DBClient) Option

WithDBClient 配置 db client

Jump to

Keyboard shortcuts

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