netsourcetos3

package
v0.0.0-...-fc17aaa Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitS3

func InitS3(conf S3Config) error

func Netsourcetos3ByGet

func Netsourcetos3ByGet(url, bucket, path string, fn func(str string) string) (string, error)

Types

type S3Config

type S3Config struct {
	AccessKey string `json:"access_key,omitempty" yaml:"access_key"`
	SecretKey string `json:"secret_key,omitempty" yaml:"secret_key"`
	Token     string `json:"token,omitempty" yaml:"token"`
	EndPoint  string `json:"end_point,omitempty" yaml:"end_point"`
	Region    string `json:"region,omitempty" yaml:"region"`
}

Jump to

Keyboard shortcuts

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