common

package
v0.14.6 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocalType            = "local"
	HDFSType             = "hdfs"
	HDFSWithKerberosType = "hdfsWithKerberos"
	S3Type               = "s3"
	SFTPType             = "sftp"
	MockType             = "mock"
	CFSType              = "cfs"
	GlusterFSType        = "glusterfs"
	AFSType              = "afs"
	BosType              = "bos"

	// common
	Owner = "owner"
	Group = "group"

	// local properties and root path
	RootKey = "root"
	SubPath = "subpath"
	Type    = "type"

	// HDFS properties
	NameNodeAddress = "dfs.namenode.address"
	UserKey         = "user"
	BlockSizeKey    = "blockSize"
	ReplicationKey  = "replication"

	Sts             = "sts"
	StsServer       = "stsServer"
	Token           = "token"
	FsName          = "fsname"
	UserName        = "userName"
	StsDuration     = "duration"
	StsACL          = "acl"
	BosSessionToken = "sessionToken"

	// AFS properties
	AFSUser     = "username"
	AFSPassword = "password"

	// HDFS Kerbers properties
	Realm                  = "kerberos.realm"
	Kdc                    = "kerberos.kdc"
	NameNodePrincipal      = "kerberos.namenode.principal"
	Principal              = "kerberos.principal"
	DataTransferProtection = "kerberos.data.transfer.protection"
	KeyTabData             = "kerberos.keytab.data"

	// S3 properties
	AccessKey          = "accessKey"
	SecretKey          = "secretKey"
	Endpoint           = "endpoint"
	Bucket             = "bucket"
	Region             = "region"
	InsecureSkipVerify = "insecureSkipVerify"
	S3ForcePathStyle   = "s3ForcePathStyle"
	DirMode            = "dirMode"
	FileMode           = "fileMode"

	// sftp properties
	Address  = "address"
	Password = "password"

	// mock properties
	PVC       = "pvc"
	Namespace = "namespace"

	// FSMeta类型
	FSType   = "fs"
	LinkType = "link"

	// Link操作
	ADD    = "ADD"
	DELETE = "DELETE"

	// Link Meta
	LinkMetaDir  = ".config"
	LinkMetaFile = "links_meta"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FSMeta

type FSMeta struct {
	ID            string
	Name          string
	UfsType       string
	ServerAddress string
	SubPath       string
	Properties    map[string]string
	// type: fs 表示是默认的后端存储;link 表示是外部存储
	Type string
}

Jump to

Keyboard shortcuts

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