ObjectStorage
Section titled “ObjectStorage”オブジェクトストレージサービスとやり取りするための ObjectStorage クラス。
オブジェクトストレージサービスの構成。
Constructors
Section titled “Constructors”new ObjectStorage()
Section titled “new ObjectStorage()”new ObjectStorage(config: ObjectStorageConfig): ObjectStorageParameters:
configObjectStorageConfig
Returns:
ObjectStorage
Methods
Section titled “Methods”upload()
Section titled “upload()”upload( path: string, organizationId: string,archiveBasePath: string): Promise<string>ファイルまたはディレクトリをオブジェクトストレージにアップロードします。
Parameters:
pathstring - アップロード対象のファイルまたはディレクトリのパス。organizationIdstring - アップロードに使用する組織ID。archiveBasePathstring - アーカイブで使用するベースパス。
Returns:
Promise<string>- アップロードされたファイルまたはディレクトリのハッシュ値。
ObjectStorageConfig
Section titled “ObjectStorageConfig”ObjectStorage クラスの設定。
プロパティ:
accessKeyIdstring - オブジェクトストレージサービスのアクセスキー ID。bucketName?string - 使用するバケット名。endpointUrlstring - オブジェクトストレージサービスのエンドポイント URL。secretAccessKeystring - オブジェクトストレージサービスのシークレットアクセスキー。sessionToken?string - オブジェクトストレージサービスのセッショントークン(一時的な認証情報で使用)。