oss

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CosProvider = "cos"
)

Variables

View Source
var SupportedProviders = []string{CosProvider}

Functions

This section is empty.

Types

type COS

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

func (*COS) HeadArtifact

func (c *COS) HeadArtifact(bucket string, region string, ossPath string) error

func (*COS) SetAccessKey

func (c *COS) SetAccessKey(accessKey string)

func (*COS) SetSecretKey

func (c *COS) SetSecretKey(secretKey string)

func (*COS) UploadArtifact

func (c *COS) UploadArtifact(bucket string, region string, storageClass string, storePath string, artifactPath string) error

func (*COS) Validate

func (c *COS) Validate(bucket string, region string) error

type Client

type Client interface {
	SetAccessKey(accessKey string)
	SetSecretKey(secretKey string)

	Validate(bucket string, region string) error

	UploadArtifact(bucket string, region string, storageClass string, storePath string, artifactPath string) error
	HeadArtifact(bucket string, region string, ossPath string) error
}

func NewCOS

func NewCOS(accessKey, secretKey string) Client

Jump to

Keyboard shortcuts

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