Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 840 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 840 Bytes

A library for Dart developers.

Created from templates made available by Stagehand under a BSD-style license.

Usage

A simple usage example:

import 'package:cloud_storage_signer/cloud_storage_signer.dart';

main() {
  var credential = ServiceAccountCredentials.fromJson(json);
  
  var cloudStorageSigner = CloudStorageSigner(
    serviceAccountCredentials: credential,
  );

  var url = await cloudStorageSigner.generateSignedUrl(
    httpVerb: HTTPVerb.Get,
    bucketName: 'your-backet',
    filePath: 'file-path',
    region: 'auto',
    from: DateTime.now(),
    expires: Duration(hours: 1),
  );

  print(url);
}

Features and bugs

Please file feature requests and bugs at the issue tracker.