iam

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*iamsdk.Client
	Config       *Config
	Prefix       string
	CustomDomain string
	// contains filtered or unexported fields
}

func New

func New(config *Config) *Client

func (Client) Delete

func (client Client) Delete(path string) error

func (Client) Get

func (client Client) Get(path string) (file *os.File, err error)

func (Client) GetEndpoint

func (client Client) GetEndpoint() string

func (Client) GetStream

func (client Client) GetStream(path string) (io.ReadCloser, error)

func (Client) GetURL

func (client Client) GetURL(path string) (url string, err error)

func (Client) List

func (client Client) List(rawPath string) ([]*oss.Object, error)

func (Client) Put

func (client Client) Put(urlPath string, reader io.Reader) (r *oss.Object, err error)

type Config

type Config struct {
	AccessID         string
	AccessKey        string
	Endpoint         string
	Certificate      string
	ApplicationName  string
	OrganizationName string
	Provider         string
}

Jump to

Keyboard shortcuts

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