oss

package
v0.0.0-...-f9607cf Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Upload

func Upload(c Config)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(c Config) *Client

type Config

type Config struct {
	AK       string `yaml:"AK"`
	SK       string `yaml:"SK"`
	Region   string `yaml:"region"`
	Bucket   string `yaml:"bucket"`
	Endpoint string `yaml:"endpoint"`
	Source   string `yaml:"source"`
	Target   string `yaml:"target"`
}

func ConfigFromFile

func ConfigFromFile(path string) Config

Jump to

Keyboard shortcuts

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