This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/binary" | |
"fmt" | |
"log" | |
"net" | |
"strconv" | |
"strings" | |
"sync" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cloudsigning | |
import ( | |
"fmt" | |
"net/http" | |
"github.com/GoogleCloudPlatform/functions-framework-go/functions" | |
"github.com/aws/aws-sdk-go/aws" | |
"github.com/aws/aws-sdk-go/aws/credentials" | |
"github.com/aws/aws-sdk-go/aws/session" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from uplink_python.uplink import Uplink | |
from uplink_python.module_classes import Permission, SharePrefix | |
API_KEY = "..." | |
ENC_PASSWORD = "..." | |
SATELLITE_HOST = "12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S@us1.storj.io:7777" | |
CUSTOMER_NAME = "clientA" | |
BUCKET = "client-data" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
ACCESS_KEY = "..." | |
SECRET_KEY = "..." | |
BUCKET_NAME = "..." | |
PATH_WITHIN_BUCKET = "example/path" | |
EXPIRES = 3600 # seconds | |
URL = "https://gateway.storjshare.io" | |
session = boto3.session.Session() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
ACCESS_KEY = "..." | |
SECRET_KEY = "..." | |
BUCKET_NAME = "..." | |
PATH_WITHIN_BUCKET = "example/path" | |
EXPIRES = 3600 # seconds | |
URL = "https://gateway.storjshare.io" | |
session = boto3.session.Session() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"time" | |
"github.com/aws/aws-lambda-go/lambda" | |
"github.com/aws/aws-sdk-go/aws" | |
"github.com/aws/aws-sdk-go/aws/credentials" | |
"github.com/aws/aws-sdk-go/aws/request" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cloudsigning | |
import ( | |
"fmt" | |
"net/http" | |
"time" | |
"github.com/GoogleCloudPlatform/functions-framework-go/functions" | |
"github.com/aws/aws-sdk-go/aws" | |
"github.com/aws/aws-sdk-go/aws/credentials" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (C) 2022 Storj Labs, Inc. | |
// See LICENSE for copying information. | |
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"io/ioutil" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (C) 2022 Storj Labs, Inc. | |
// See LICENSE for copying information. | |
package main | |
import ( | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"net/http" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
import os | |
from boto3.s3.transfer import TransferConfig | |
# Set the desired multipart threshold to an arbitrarily large value. | |
EB = 1024 ** 6 | |
config = TransferConfig(multipart_threshold=EB) | |
session = boto3.session.Session() | |
s3_client = session.client( |
NewerOlder