mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-06 00:17:00 +08:00
major move of all glib specific bindings and extendable objects from go runtime to go-glib package
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
)
|
||||
|
||||
const (
|
||||
accessKeyIDEnvVar = "MINIO_ACCESS_KEY_ID"
|
||||
secretAccessKeyEnvVar = "MINIO_SECRET_ACCESS_KEY"
|
||||
)
|
||||
|
||||
var (
|
||||
defaultEndpoint = "play.min.io"
|
||||
defaultUseTLS = true
|
||||
defaultRegion = "us-east-1"
|
||||
)
|
||||
|
||||
type settings struct {
|
||||
endpoint string
|
||||
useTLS bool
|
||||
region string
|
||||
bucket string
|
||||
key string
|
||||
accessKeyID string
|
||||
secretAccessKey string
|
||||
}
|
||||
|
||||
func defaultSettings() *settings {
|
||||
return &settings{
|
||||
endpoint: defaultEndpoint,
|
||||
useTLS: defaultUseTLS,
|
||||
region: defaultRegion,
|
||||
accessKeyID: os.Getenv(accessKeyIDEnvVar),
|
||||
secretAccessKey: os.Getenv(secretAccessKeyEnvVar),
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user