s3

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	AccessKeySecret string
	// contains filtered or unexported fields
}

Provider is the structure definition of a S3 outbound service

func (*Provider) Send

func (s3p *Provider) Send(ctx context.Context, article model.Article) (*webhook.Result, error)

Send article to Webhook endpoint.

type ProviderConfig

type ProviderConfig struct {
	Endpoint    string `json:"endpoint"`
	AccessKeyID string `json:"access_key_id"`
	Region      string `json:"region"`
	Bucket      string `json:"bucket"`
	Format      string `json:"format"`
}

ProviderConfig is the structure definition of a S3 configuration

Jump to

Keyboard shortcuts

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