cst

package
v0.0.0-...-d1e1776 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// PolicyDirPrivate represents private policy for dir.
	PolicyDirPrivate = 0
	// PolicyDirPublic represents public readonly policy for dir.
	PolicyDirPublic = 1
	// PolicyDirPublicReadWrite represents public read and write policy for dir.
	PolicyDirPublicReadWrite = 2
	// PolicyBucketPublic represents public policy for bucket.
	PolicyBucketPublic = 1
	// PolicyBucketPrivate represents private policy for bucket.
	PolicyBucketPrivate = 2
	// PolicyBucketPublicReadWrite represents public read and write policy for bucket.
	PolicyBucketPublicReadWrite = 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthKey

type AuthKey struct {
	AccessKey, SecretKey string
}

AuthKey 访问密钥结构体

func (AuthKey) Key

func (ak AuthKey) Key(uri string, method string, timedelta int64) string

Key 生成访问密钥 param uri: 未编码的原始全路径(path?query)字符串 param method: 请求方法 GET POST PUT PATCH等 param timedelta: 安全凭证的有效期时间增量(基于当前时间戳),单位为秒s

type CST

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

CST implements Gateway.

func (*CST) Name

func (g *CST) Name() string

Name implements Gateway interface.

func (*CST) NewGatewayLayer

func (g *CST) NewGatewayLayer(creds auth.Credentials) (minio.ObjectLayer, error)

NewGatewayLayer implements Gateway interface and returns OSS ObjectLayer.

func (*CST) Production

func (g *CST) Production() bool

Production - hdfs gateway is production ready.

type CSTClient

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

CSTClient implements cst client

Jump to

Keyboard shortcuts

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