ossconf

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	Type           string `yaml:"type"`
	Addr           string `yaml:"addr"`
	Secure         bool   `yaml:"secure"`
	AccessKey      string `yaml:"access_key"`
	SecretKey      string `yaml:"secret_key"`
	ExpiryDuration int    `yaml:"expiry_duration"`
	BucketName     string `yaml:"bucket_name"`
}

func FromEnv

func FromEnv() Conf

type GetObjectOption added in v0.0.6

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

func (*GetObjectOption) GetRange added in v0.0.6

func (opt *GetObjectOption) GetRange() *Range

func (*GetObjectOption) SetRange added in v0.0.6

func (opt *GetObjectOption) SetRange(start, end int64)

type ObjectInfo

type ObjectInfo struct {
	Size int64 `json:"size"`
}

type Range added in v0.0.6

type Range struct {
	Start int64
	End   int64
}

Jump to

Keyboard shortcuts

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