ossconfigs

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: BSD-3-Clause Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeOSSOptions

func DecodeOSSOptions(ossType OSSType, optionsJSON []byte) (any, error)

func IsOSSProtocol

func IsOSSProtocol(protocol string) bool

Types

type OSSBucketParam

type OSSBucketParam = string

type OSSConfig

type OSSConfig struct {
}

func NewOSSConfig

func NewOSSConfig() *OSSConfig

func (*OSSConfig) Init

func (this *OSSConfig) Init() error

func (*OSSConfig) Summary

func (this *OSSConfig) Summary() string

type OSSOptions

type OSSOptions interface {
	Init() error // 初始化
}

type OSSType

type OSSType = string

type OSSTypeDefinition

type OSSTypeDefinition struct {
	Name             string `json:"name"`
	Code             string `json:"code"`
	BucketOptionName string `json:"bucketOptionName"`
	BucketIgnored    bool   `json:"bucketIgnored"` // 是否忽略Bucket名称
}

func FindAllOSSTypes

func FindAllOSSTypes() []*OSSTypeDefinition

func FindOSSType

func FindOSSType(code string) *OSSTypeDefinition

Jump to

Keyboard shortcuts

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