util

package
v0.0.0-...-f1e3e95 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2018 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

vim: set tabstop=4 softtabstop=4 shiftwidth=4 noexpandtab :

vim: set tabstop=4 softtabstop=4 shiftwidth=4 noexpandtab :

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Options2Map

func Options2Map(args []string) map[string]string

func Setv2Handlers

func Setv2Handlers(svc *s3.S3)

func Sign

func Sign(req *request.Request)

Sign requests with signature version 2.

Will sign the requests with the service config's Credentials object Signing is skipped if the credentials is the credentials.AnonymousCredentials object.

Types

type Conf

type Conf struct {
	S3  ConnectionParams
	Hsm HsmInfo
}

func GetConfig

func GetConfig(file string) *Conf

type ConnectionParams

type ConnectionParams struct {
	Endpoint  string `yaml:"endpoint"`
	Region    string `yaml:"region"`
	AccessKey string `yaml:"access_key"`
	SecretKey string `yaml:"secret_key"`
	UseSSL    bool   `yaml:"ssl"`
	UseEnc    bool   `yaml:"enc"`
	Trace     bool   `yaml:"trace"`
	S3Version uint64 `yaml:"s3version"`
}

type HsmInfo

type HsmInfo struct {
	Instance string `yaml:"instance"`
	Type     string `yaml:"type"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL