tos

package
v0.0.0-...-b285d58 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 7 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 interface {
	PutObject(ctx context.Context, object string, size int64, r io.Reader) ([]string, error)
}

type Config

type Config struct {
	Host     string
	Port     string
	Url      []string
	Dst      string
	Username string
	KeyPath  string

	Type string

	Bucket   string
	Ak       string
	Sk       string
	Endpoint string
}

type NginxClient

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

func NewNginxClient

func NewNginxClient(domain string, url []string, path string, user, passwd string) (*NginxClient, error)

func (*NginxClient) PutObject

func (c *NginxClient) PutObject(ctx context.Context, object string, size int64, r io.Reader) ([]string, error)

type PlacehloderClient

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

func (*PlacehloderClient) PutObject

func (c *PlacehloderClient) PutObject(ctx context.Context, object string, size int64, r io.Reader) ([]string, error)

type ScpClient

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

func (*ScpClient) PutObject

func (c *ScpClient) PutObject(ctx context.Context, object string, size int64, r io.Reader) ([]string, error)

Jump to

Keyboard shortcuts

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