ossc

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Name = "oss"

Functions

func GetCfg

func GetCfg() map[string]ClientCfg

func Update

func Update(name string, cfg ClientCfg) (err error)

Types

type Client

type Client struct {
	*oss.Client
}

func Get

func Get(names ...string) *Client

func (*Client) Bucket

func (t *Client) Bucket(name string) (*oss.Bucket, error)

func (*Client) Close

func (t *Client) Close() error

func (*Client) Kind

func (t *Client) Kind() string

func (*Client) UpdateResObj

func (t *Client) UpdateResObj(val interface{})

type ClientCfg

type ClientCfg struct {
	Endpoint        string
	AccessKeyID     string
	AccessKeySecret string
	Bucket          string
}

func GetDefaultCfg

func GetDefaultCfg() ClientCfg

Jump to

Keyboard shortcuts

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