ctcccloudcms

package
v0.3.18 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UploaderConfig

type UploaderConfig struct {
	// 天翼云 AccessKeyId。
	AccessKeyId string `json:"accessKeyId"`
	// 天翼云 SecretAccessKey。
	SecretAccessKey string `json:"secretAccessKey"`
}

type UploaderProvider

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

func NewUploader

func NewUploader(config *UploaderConfig) (*UploaderProvider, error)

func (*UploaderProvider) Upload

func (u *UploaderProvider) Upload(ctx context.Context, certPEM string, privkeyPEM string) (*uploader.UploadResult, error)

func (*UploaderProvider) WithLogger

func (u *UploaderProvider) WithLogger(logger *slog.Logger) uploader.Uploader

Jump to

Keyboard shortcuts

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