Class ServiceConfig.Cos
- All Implemented Interfaces:
ServiceConfig
- Enclosing interface:
ServiceConfig
-
Nested Class Summary
Nested classes/interfaces inherited from interface ServiceConfig
ServiceConfig.AliyunDrive, ServiceConfig.Alluxio, ServiceConfig.Azblob, ServiceConfig.Azdls, ServiceConfig.Azfile, ServiceConfig.B2, ServiceConfig.Cacache, ServiceConfig.CloudflareKv, ServiceConfig.Compfs, ServiceConfig.Cos, ServiceConfig.D1, ServiceConfig.Dashmap, ServiceConfig.Dbfs, ServiceConfig.Dropbox, ServiceConfig.Etcd, ServiceConfig.Foyer, ServiceConfig.Fs, ServiceConfig.Gcs, ServiceConfig.Gdrive, ServiceConfig.Ghac, ServiceConfig.Github, ServiceConfig.Goosefs, ServiceConfig.Gridfs, ServiceConfig.HdfsNative, ServiceConfig.Hf, ServiceConfig.Http, ServiceConfig.Ipfs, ServiceConfig.Ipmfs, ServiceConfig.Koofr, ServiceConfig.Lakefs, ServiceConfig.Memcached, ServiceConfig.Memory, ServiceConfig.MiniMoka, ServiceConfig.Moka, ServiceConfig.Mongodb, ServiceConfig.Monoiofs, ServiceConfig.Mysql, ServiceConfig.Obs, ServiceConfig.Onedrive, ServiceConfig.Opfs, ServiceConfig.Oss, ServiceConfig.Pcloud, ServiceConfig.Persy, ServiceConfig.Postgresql, ServiceConfig.Redb, ServiceConfig.Redis, ServiceConfig.S3, ServiceConfig.Seafile, ServiceConfig.Sftp, ServiceConfig.Sled, ServiceConfig.Sqlite, ServiceConfig.Surrealdb, ServiceConfig.Swift, ServiceConfig.Tos, ServiceConfig.Upyun, ServiceConfig.VercelArtifacts, ServiceConfig.VercelBlob, ServiceConfig.Webdav, ServiceConfig.Webhdfs, ServiceConfig.YandexDisk -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringBucket of this backend.final BooleanDisable config load so that opendal will not load config fromfinal BooleanDeprecated.COS versioning capability is enabled by default and this option is no longer needed.final StringEndpoint of this backend.final StringRoot of this backend.final StringSecret ID of this backend.final StringSecret key of this backend.final StringSecurity token (a.k.a. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
bucket
Bucket of this backend.
-
disableConfigLoad
Disable config load so that opendal will not load config from
-
enableVersioning
Deprecated.COS versioning capability is enabled by default and this option is no longer needed.Deprecated: COS versioning capability is enabled by default.
-
endpoint
Endpoint of this backend.
-
root
Root of this backend.
-
secretId
Secret ID of this backend.
-
secretKey
Secret key of this backend.
-
securityToken
Security token (a.k.a. session token) of this backend.
This is used for temporary credentials issued by Tencent Cloud STS (e.g.
GetFederationToken/AssumeRole). Whensecurity_tokenis provided, it will be used together withsecret_idandsecret_keyto sign requests, and thex-cos-security-tokenheader will be attached automatically by the signer.If this field is not set, OpenDAL will also fall back to reading the token from environment variables
TENCENTCLOUD_TOKEN,TENCENTCLOUD_SECURITY_TOKENorQCLOUD_SECRET_TOKEN(unlessdisable_config_loadis enabled).
-
-
Constructor Details
-
Cos
public Cos()
-
-
Method Details
-
scheme
Description copied from interface:ServiceConfigThe scheme of the service.- Specified by:
schemein interfaceServiceConfig- Returns:
- the scheme
-
configMap
Description copied from interface:ServiceConfigConvert the structured config to a type erased config map.- Specified by:
configMapin interfaceServiceConfig- Returns:
- the config map
-