operations

package
v2.16.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDeadline = 3600
)

Variables

This section is empty.

Functions

func BatchAsyncFetch

func BatchAsyncFetch(cfg *iqshell.Config, info BatchAsyncFetchInfo)

func BatchChangeLifecycle added in v2.11.0

func BatchChangeLifecycle(cfg *iqshell.Config, info BatchChangeLifecycleInfo)

func BatchChangeMime

func BatchChangeMime(cfg *iqshell.Config, info BatchChangeMimeInfo)

func BatchChangeStatus

func BatchChangeStatus(cfg *iqshell.Config, info BatchChangeStatusInfo)

func BatchChangeType

func BatchChangeType(cfg *iqshell.Config, info BatchChangeTypeInfo)

func BatchCopy

func BatchCopy(cfg *iqshell.Config, info BatchCopyInfo)

func BatchDelete

func BatchDelete(cfg *iqshell.Config, info BatchDeleteInfo)

BatchDelete 批量删除,由于和批量删除的输入读取逻辑不同,所以分开

func BatchDeleteAfter

func BatchDeleteAfter(cfg *iqshell.Config, info BatchDeleteInfo)

func BatchFetch

func BatchFetch(cfg *iqshell.Config, info BatchFetchInfo)

func BatchMatch added in v2.8.0

func BatchMatch(cfg *iqshell.Config, info BatchMatchInfo)

func BatchMove

func BatchMove(cfg *iqshell.Config, info BatchMoveInfo)

func BatchPrivateUrl

func BatchPrivateUrl(cfg *iqshell.Config, info BatchPrivateUrlInfo)

func BatchRename

func BatchRename(cfg *iqshell.Config, info BatchRenameInfo)

func BatchRestoreArchive

func BatchRestoreArchive(cfg *iqshell.Config, info BatchRestoreArchiveInfo)

func BatchStatus

func BatchStatus(cfg *iqshell.Config, info BatchStatusInfo)

func ChangeLifecycle added in v2.11.0

func ChangeLifecycle(cfg *iqshell.Config, info *ChangeLifecycleInfo)

func ChangeMime

func ChangeMime(cfg *iqshell.Config, info ChangeMimeInfo)

func ChangeType

func ChangeType(cfg *iqshell.Config, info ChangeTypeInfo)

func CheckAsyncFetchStatus

func CheckAsyncFetchStatus(cfg *iqshell.Config, info CheckAsyncFetchStatusInfo)

func Copy

func Copy(cfg *iqshell.Config, info CopyInfo)

func CopyShare added in v2.16.0

func CopyShare(cfg *iqshell.Config, info CopyShareInfo)

func CreateShare added in v2.16.0

func CreateShare(cfg *iqshell.Config, info CreateShareInfo)

func Delete

func Delete(cfg *iqshell.Config, info DeleteInfo)

func DeleteAfter

func DeleteAfter(cfg *iqshell.Config, info DeleteAfterInfo)

func Fetch

func Fetch(cfg *iqshell.Config, info FetchInfo)

func ForbiddenObject

func ForbiddenObject(cfg *iqshell.Config, info ForbiddenInfo)

func ListShare added in v2.16.0

func ListShare(cfg *iqshell.Config, info ListShareInfo)

func Match added in v2.8.0

func Match(cfg *iqshell.Config, info MatchInfo)

func MirrorUpdate

func MirrorUpdate(cfg *iqshell.Config, info MirrorUpdateInfo)

func Move

func Move(cfg *iqshell.Config, info MoveInfo)

func Pfop added in v2.16.0

func Pfop(cfg *iqshell.Config, info PfopInfo)

func PreFopStatus

func PreFopStatus(cfg *iqshell.Config, info PreFopStatusInfo)

func PrivateUrl

func PrivateUrl(cfg *iqshell.Config, info PrivateUrlInfo)

func Rename

func Rename(cfg *iqshell.Config, info RenameInfo)

func RestoreArchive

func RestoreArchive(cfg *iqshell.Config, info RestoreArchiveInfo)

func SaveAs

func SaveAs(cfg *iqshell.Config, info SaveAsInfo)

func Status

func Status(cfg *iqshell.Config, info StatusInfo)

Types

type BatchAsyncFetchInfo

type BatchAsyncFetchInfo struct {
	BatchInfo               batch.Info
	Bucket                  string // fetch 的目的 bucket
	Host                    string // 从指定URL下载时指定的HOST
	CallbackUrl             string // 抓取成功的回调地址
	CallbackBody            string //
	CallbackBodyType        string //
	CallbackHost            string // 回调时使用的HOST
	FileType                int    // 文件存储类型, 0 标准存储, 1 低频存储
	Overwrite               bool   //
	DisableCheckFetchResult bool   // 不检测是否 fetch 成功
}

func (*BatchAsyncFetchInfo) Check

func (info *BatchAsyncFetchInfo) Check() *data.CodeError

type BatchChangeLifecycleInfo added in v2.11.0

type BatchChangeLifecycleInfo struct {
	BatchInfo              batch.Info //
	Bucket                 string     //
	ToIAAfterDays          int        // 转换到 低频存储类型,设置为 -1 表示取消
	ToArchiveIRAfterDays   int        // 转换到 归档直读存储类型, 设置为 -1 表示取消
	ToArchiveAfterDays     int        // 转换到 归档存储类型, 设置为 -1 表示取消
	ToDeepArchiveAfterDays int        // 转换到 深度归档存储类型, 设置为 -1 表示取消
	DeleteAfterDays        int        // 过期删除,删除后不可恢复,设置为 -1 表示取消
}

func (*BatchChangeLifecycleInfo) Check added in v2.11.0

func (info *BatchChangeLifecycleInfo) Check() *data.CodeError

type BatchChangeMimeInfo

type BatchChangeMimeInfo struct {
	BatchInfo batch.Info
	Bucket    string
}

func (*BatchChangeMimeInfo) Check

func (info *BatchChangeMimeInfo) Check() *data.CodeError

type BatchChangeStatusInfo

type BatchChangeStatusInfo struct {
	BatchInfo   batch.Info
	Bucket      string
	UnForbidden bool
}

func (*BatchChangeStatusInfo) Check

func (info *BatchChangeStatusInfo) Check() *data.CodeError

type BatchChangeTypeInfo

type BatchChangeTypeInfo struct {
	BatchInfo batch.Info
	Bucket    string
}

func (*BatchChangeTypeInfo) Check

func (info *BatchChangeTypeInfo) Check() *data.CodeError

type BatchCopyInfo

type BatchCopyInfo struct {
	BatchInfo    batch.Info
	SourceBucket string
	DestBucket   string
}

func (*BatchCopyInfo) Check

func (info *BatchCopyInfo) Check() *data.CodeError

type BatchDeleteInfo

type BatchDeleteInfo struct {
	BatchInfo batch.Info
	Bucket    string
}

func (*BatchDeleteInfo) Check

func (info *BatchDeleteInfo) Check() *data.CodeError

type BatchFetchInfo

type BatchFetchInfo struct {
	BatchInfo batch.Info
	Bucket    string
}

func (*BatchFetchInfo) Check

func (info *BatchFetchInfo) Check() *data.CodeError

type BatchMatchInfo added in v2.8.0

type BatchMatchInfo struct {
	BatchInfo    batch.Info
	Bucket       string
	LocalFileDir string
}

func (*BatchMatchInfo) Check added in v2.8.0

func (info *BatchMatchInfo) Check() *data.CodeError

type BatchMoveInfo

type BatchMoveInfo struct {
	BatchInfo    batch.Info
	SourceBucket string
	DestBucket   string
}

func (*BatchMoveInfo) Check

func (info *BatchMoveInfo) Check() *data.CodeError

type BatchPrivateUrlInfo

type BatchPrivateUrlInfo struct {
	BatchInfo batch.Info
	Deadline  string
}

func (*BatchPrivateUrlInfo) Check

func (info *BatchPrivateUrlInfo) Check() *data.CodeError

type BatchRenameInfo

type BatchRenameInfo struct {
	BatchInfo batch.Info
	Bucket    string
}

func (*BatchRenameInfo) Check

func (info *BatchRenameInfo) Check() *data.CodeError

type BatchRestoreArchiveInfo

type BatchRestoreArchiveInfo struct {
	BatchInfo       batch.Info
	Bucket          string
	FreezeAfterDays string
	// contains filtered or unexported fields
}

func (*BatchRestoreArchiveInfo) Check

func (info *BatchRestoreArchiveInfo) Check() *data.CodeError

type BatchStatusInfo

type BatchStatusInfo struct {
	BatchInfo batch.Info
	Bucket    string
}

func (*BatchStatusInfo) Check

func (info *BatchStatusInfo) Check() *data.CodeError

type ChangeLifecycleInfo added in v2.11.0

type ChangeLifecycleInfo object.ChangeLifecycleApiInfo

func (*ChangeLifecycleInfo) Check added in v2.11.0

func (info *ChangeLifecycleInfo) Check() *data.CodeError

type ChangeMimeInfo

type ChangeMimeInfo object.ChangeMimeApiInfo

func (*ChangeMimeInfo) Check

func (info *ChangeMimeInfo) Check() *data.CodeError

type ChangeTypeInfo

type ChangeTypeInfo struct {
	Bucket string
	Key    string
	Type   string
}

func (*ChangeTypeInfo) Check

func (info *ChangeTypeInfo) Check() *data.CodeError

type CheckAsyncFetchStatusInfo

type CheckAsyncFetchStatusInfo struct {
	Bucket string
	Id     string
}

func (*CheckAsyncFetchStatusInfo) Check

func (info *CheckAsyncFetchStatusInfo) Check() *data.CodeError

type CopyInfo

type CopyInfo object.CopyApiInfo

func (*CopyInfo) Check

func (info *CopyInfo) Check() *data.CodeError

type CopyShareInfo added in v2.16.0

type CopyShareInfo struct {
	FromPath    string
	ToPath      string
	LinkURL     string
	ExtractCode string
	Recursive   bool
}

func (*CopyShareInfo) Check added in v2.16.0

func (info *CopyShareInfo) Check() *data.CodeError

type CreateShareInfo added in v2.16.0

type CreateShareInfo struct {
	apis.CreateShareRequest

	OutputPath string
}

func (*CreateShareInfo) Check added in v2.16.0

func (info *CreateShareInfo) Check() *data.CodeError

type DeleteAfterInfo

type DeleteAfterInfo struct {
	Bucket    string
	Key       string
	AfterDays string
}

func (*DeleteAfterInfo) Check

func (info *DeleteAfterInfo) Check() *data.CodeError

type DeleteInfo

type DeleteInfo struct {
	Bucket string
	Key    string
}

func (*DeleteInfo) Check

func (info *DeleteInfo) Check() *data.CodeError

type FetchInfo

type FetchInfo object.FetchApiInfo

func (*FetchInfo) Check

func (info *FetchInfo) Check() *data.CodeError

type ForbiddenInfo

type ForbiddenInfo struct {
	Bucket      string
	Key         string
	UnForbidden bool
}

func (*ForbiddenInfo) Check

func (info *ForbiddenInfo) Check() *data.CodeError

type ListShareInfo added in v2.16.0

type ListShareInfo struct {
	LinkURL     string
	ExtractCode string
	Prefix      string
	Limit       int64
	Marker      string
}

func (*ListShareInfo) Check added in v2.16.0

func (info *ListShareInfo) Check() *data.CodeError

type MatchInfo added in v2.8.0

type MatchInfo object.MatchApiInfo

func (*MatchInfo) Check added in v2.8.0

func (info *MatchInfo) Check() *data.CodeError

type MirrorUpdateInfo

type MirrorUpdateInfo storage.PrefetchApiInfo

func (*MirrorUpdateInfo) Check

func (info *MirrorUpdateInfo) Check() *data.CodeError

type MoveInfo

type MoveInfo object.MoveApiInfo

func (*MoveInfo) Check

func (info *MoveInfo) Check() *data.CodeError

type PfopInfo added in v2.16.0

type PfopInfo object.PfopApiInfo

func (*PfopInfo) Check added in v2.16.0

func (info *PfopInfo) Check() *data.CodeError

type PreFopStatusInfo

type PreFopStatusInfo struct {
	Id     string
	Bucket string // 用于查询 region,私有云必须,公有云可选
}

func (*PreFopStatusInfo) Check

func (info *PreFopStatusInfo) Check() *data.CodeError

type PrivateUrlInfo

type PrivateUrlInfo struct {
	PublicUrl string
	Deadline  string
}

func (*PrivateUrlInfo) Check

func (p *PrivateUrlInfo) Check() *data.CodeError

func (PrivateUrlInfo) WorkId

func (p PrivateUrlInfo) WorkId() string

type RenameInfo

type RenameInfo object.MoveApiInfo

func (*RenameInfo) Check

func (info *RenameInfo) Check() *data.CodeError

type RestoreArchiveInfo

type RestoreArchiveInfo struct {
	Bucket          string
	Key             string
	FreezeAfterDays string
	// contains filtered or unexported fields
}

func (*RestoreArchiveInfo) Check

func (info *RestoreArchiveInfo) Check() *data.CodeError

type SaveAsInfo

type SaveAsInfo object.SaveAsApiInfo

func (*SaveAsInfo) Check

func (info *SaveAsInfo) Check() *data.CodeError

type StatusInfo

type StatusInfo object.StatusApiInfo

func (*StatusInfo) Check

func (info *StatusInfo) Check() *data.CodeError

Jump to

Keyboard shortcuts

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