Help us shape the future of Go! Take the 2026 Go Developer Survey

publish

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2014 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Publish

type Publish struct {
	S3 *S3 `yaml:"s3,omitempty"`
}

Publish stores the configuration details for publishing build artifacts when a Build has succeeded

func (*Publish) Write

func (p *Publish) Write(f *buildfile.Buildfile)

type S3

type S3 struct {
	Key    string `yaml:"access_key,omitempty"`
	Secret string `yaml:"secret_key,omitempty"`
	Bucket string `yaml:"bucket,omitempty"`

	// us-east-1
	// us-west-1
	// us-west-2
	// eu-west-1
	// ap-southeast-1
	// ap-southeast-2
	// ap-northeast-1
	// sa-east-1
	Region string `yaml:"region,omitempty"`

	// Indicates the files ACL, which should be one
	// of the following:
	//     private
	//     public-read
	//     public-read-write
	//     authenticated-read
	//     bucket-owner-read
	//     bucket-owner-full-control
	Access string `yaml:"acl,omitempty"`

	// Copies the files from the specified directory.
	// Regexp matching will apply to match multiple
	// files
	//
	// Examples:
	//    /path/to/file
	//    /path/to/*.txt
	//    /path/to/*/*.txt
	//    /path/to/**
	Source string `yaml:"source,omitempty"`
	Target string `yaml:"target,omitempty"`

	// Recursive uploads
	Recursive bool `yaml:"recursive"`

	Branch string `yaml:"branch,omitempty"`
}

func (*S3) Write

func (s *S3) Write(f *buildfile.Buildfile)

Jump to

Keyboard shortcuts

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