lib

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2018 License: BSD-2-Clause Imports: 23 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AccessKey string
	SecretKey string

	SourcePath string
	BucketName string

	// To have multiple sites in one bucket.
	BucketPath string

	RegionName string

	// Optional configFile
	ConfigFile string

	NumberOfWorkers int

	Verbose bool
	Force   bool

	// CLI state
	PrintVersion bool

	Help bool
	// contains filtered or unexported fields
}

func FlagsToConfig

func FlagsToConfig() (*Config, error)

Reads command-line flags from os.Args[1:] into Config. Note that flag.Parse is not called.

type DeployStats

type DeployStats struct {
	Deleted  []string
	Uploaded []string
	Skipped  []string
}

func Deploy

func Deploy(cfg *Config) (DeployStats, error)

func (DeployStats) AllChanged

func (d DeployStats) AllChanged() []string

func (DeployStats) FileCount

func (d DeployStats) FileCount() int

func (DeployStats) FileCountChanged

func (d DeployStats) FileCountChanged() int

func (DeployStats) PercentageChanged

func (d DeployStats) PercentageChanged() float32

func (DeployStats) Summary

func (d DeployStats) Summary() string

type Deployer

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

Jump to

Keyboard shortcuts

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