common

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 3 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"

	// 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"

	// 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

func GetFsNameAndUserNameByFsID

func GetFsNameAndUserNameByFsID(fsID string) (userName, fsName string, err error)

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