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: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64Decode

func Base64Decode(cfg *iqshell.Config, info Base64Info)

Base64Decode 解码base64编码的数据

func Base64Encode

func Base64Encode(cfg *iqshell.Config, info Base64Info)

Base64Encode base64编码数据

func CreateEtag

func CreateEtag(cfg *iqshell.Config, info EtagInfo)

CreateEtag 计算文件的hash值,使用七牛的etag算法

func CreateQBoxToken

func CreateQBoxToken(cfg *iqshell.Config, info QBoxTokenInfo)

CreateQBoxToken QBox Token, 一般bucket相关的接口需要这个token

func CreateQiniuToken

func CreateQiniuToken(cfg *iqshell.Config, info QiniuTokenInfo)

CreateQiniuToken 签名七牛token, 一般三鉴接口需要http头文件 Authorization, 这个头的值就是qiniuToken

func CreateUploadToken

func CreateUploadToken(cfg *iqshell.Config, info UploadTokenInfo)

给定上传策略,打印出上传token

func Date2Timestamp

func Date2Timestamp(cfg *iqshell.Config, info TimestampInfo)

转化时间字符串到unix时间戳

func DecodeReqId

func DecodeReqId(cfg *iqshell.Config, info ReqIdInfo)

DecodeReqId 解析reqid, 打印人工可读的字符串

func DirCache

func DirCache(cfg *iqshell.Config, info DirCacheInfo)

func FuncCall added in v2.9.0

func FuncCall(cfg *iqshell.Config, info FuncCallInfo)

func IpQuery

func IpQuery(cfg *iqshell.Config, info IpQueryInfo)

func RpcDecode

func RpcDecode(cfg *iqshell.Config, info RpcInfo)

func RpcEncode

func RpcEncode(cfg *iqshell.Config, info RpcInfo)

func Timestamp2Date

func Timestamp2Date(cfg *iqshell.Config, info TimestampInfo)

Timestamp2Date 转化unix时间戳为可读的字符串

func TimestampMilli2Date

func TimestampMilli2Date(cfg *iqshell.Config, info TimestampInfo)

TimestampMilli2Date 转化毫秒时间戳到人工可读的字符串

func TimestampNano2Date

func TimestampNano2Date(cfg *iqshell.Config, info TimestampInfo)

转化纳秒时间戳到人工可读的字符串, 百纳秒为单位,主要是对接七牛服务时间戳

func Token

func Token(cfg *iqshell.Config)

Token QBox Token, 一般bucket相关的接口需要这个token

func Unzip

func Unzip(cfg *iqshell.Config, info ZipInfo)

Unzip 解压使用mkzip压缩的文件

func UrlDecode

func UrlDecode(cfg *iqshell.Config, info UrlInfo)

func UrlEncode

func UrlEncode(cfg *iqshell.Config, info UrlInfo)

Types

type Base64Info

type Base64Info struct {
	Data    string
	UrlSafe bool
}

func (*Base64Info) Check

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

type DirCacheInfo

type DirCacheInfo struct {
	Dir        string
	SaveToFile string
}

func (*DirCacheInfo) Check

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

type EtagInfo

type EtagInfo struct {
	FilePath string
}

func (*EtagInfo) Check

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

type FuncCallInfo added in v2.9.0

type FuncCallInfo struct {
	FuncTemplate string
	ParamsJson   string
	RunTimes     string
	// contains filtered or unexported fields
}

func (*FuncCallInfo) Check added in v2.9.0

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

type IpQueryInfo

type IpQueryInfo struct {
	Ips []string
}

func (*IpQueryInfo) Check

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

type QBoxTokenInfo

type QBoxTokenInfo struct {
	TokenInfo
}

func (*QBoxTokenInfo) Check

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

type QiniuTokenInfo

type QiniuTokenInfo struct {
	TokenInfo
}

func (*QiniuTokenInfo) Check

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

type ReqIdInfo

type ReqIdInfo struct {
	ReqId string
}

func (*ReqIdInfo) Check

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

type RpcInfo

type RpcInfo struct {
	Params []string
}

func (*RpcInfo) Check

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

type TimestampInfo

type TimestampInfo struct {
	Value string
}

func (*TimestampInfo) Check

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

type TokenInfo

type TokenInfo struct {
	AccessKey   string
	SecretKey   string
	Url         string
	Method      string
	Body        string
	ContentType string
}

type UploadTokenInfo

type UploadTokenInfo struct {
	TokenInfo
	PutPolicyFilePath string
}

func (*UploadTokenInfo) Check

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

type UrlInfo

type UrlInfo struct {
	Url string
}

func (*UrlInfo) Check

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

type ZipInfo

type ZipInfo struct {
	ZipFilePath string
	UnzipPath   string
}

func (*ZipInfo) Check

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

Jump to

Keyboard shortcuts

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