Documentation ¶
Overview ¶
The publish package implements a simple library and clients for document publish tool to web services.
Publish do Publish method each publishers. Support context and concurrent execution. Count goroutines and return when all jobs has done.
Index ¶
- func InitConfAwsS3(as3 *PublishAwsS3, c *viper.Viper) (err error)
- func InitConfGitHub(gh *PublishGitHub, c *viper.Viper) (err error)
- func Publish(publishers []Publisher) error
- func SetLogger(l *log.Logger)
- func SetReader(r io.Reader)
- func SetTimeout(t time.Duration)
- type PublishAwsS3
- type PublishAwsS3Opts
- type PublishGitHub
- type PublishGitHubOpts
- type Publisher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitConfAwsS3 ¶
func InitConfAwsS3(as3 *PublishAwsS3, c *viper.Viper) (err error)
InitConfAwsS3 initialize config and set option to PublishAwsS3.
func InitConfGitHub ¶
func InitConfGitHub(gh *PublishGitHub, c *viper.Viper) (err error)
InitConfGitHub initialize config and set option to PublishGitHub.
Types ¶
type PublishAwsS3 ¶
type PublishAwsS3 struct { Publisher Svc *s3.S3 AwsS3 *PublishAwsS3Opts AwsS3POI *s3.PutObjectInput }
PublishAwsS3 is Publisher for aws s3.
func (*PublishAwsS3) String ¶
func (p *PublishAwsS3) String() string
String return name of PublishAwsS3.
type PublishAwsS3Opts ¶
type PublishAwsS3Opts struct { Bucket string Key string Accesskey string Secretkey string Token string Region string }
PublishAwsS3Opts is option for PublishAwsS3.
type PublishGitHub ¶
type PublishGitHub struct { Publisher GitHub *PublishGitHubOpts }
PublishGitHub is Publisher for github.com
func (*PublishGitHub) String ¶
func (gh *PublishGitHub) String() string
String return name of PublishGitHub.
Directories ¶
Path | Synopsis |
---|---|
The publish/cmd package implement command line interface for publish.
|
The publish/cmd package implement command line interface for publish. |
The publish package implements a simple library and clients for document publish tool to web services.
|
The publish package implements a simple library and clients for document publish tool to web services. |
cmd
The publish/cmd package implement command line interface for publish.
|
The publish/cmd package implement command line interface for publish. |
Click to show internal directories.
Click to hide internal directories.