cfg

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ProgramName for use wherever needed.
	ProgramName = "s3"
	// ConfigPath to store settings in.
	ConfigPath = "net.grimdork.s3"
)

Variables

This section is empty.

Functions

func S3Client

func S3Client(profile, url string) (*s3.Client, error)

S3Client builder.

func Save

func Save() error

Save saves the configuration.

Types

type Configuration

type Configuration struct {
	// Default profile to use when the -p option is not set.
	Default string `json:"default"`
	// Profiles to URLs mapping to make non-AWS storage easier.
	Profiles map[string]string `json:"profiles"`
}

Configuration for s3.

var Config Configuration

Config is the program configuration.

Jump to

Keyboard shortcuts

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