aliyunservice

package
v0.0.0-...-139547c Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	AssetType string `form:"asset_type" binding:"required"`
}

type Directory

type Directory struct {
	DirectoryName string `uri:"directory_name" binding:"required,oss_directory"`
}

type OSSCallback

type OSSCallback struct {
	Bucket         string `json:"bucket"`
	Object         string `json:"object"`
	XDirectoryName string `json:"x:directory_name"`
	XUserID        string `json:"x:user_id"`
}

type PutObjectInfo

type PutObjectInfo struct {
	aliyun.OSSRoleResponse
	Bucket    string `json:"bucket"`
	ObjectKey string `json:"object_key"`
}

func PutObject

func PutObject(dirReq Directory, assetReq Asset, uID uint) (PutObjectInfo, error)

Jump to

Keyboard shortcuts

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