A library for Dart developers.
Created from templates made available by Stagehand under a BSD-style license.
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);
}
Please file feature requests and bugs at the issue tracker.