deploytask

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildDeploy

type BuildDeploy struct {
	ShouldRun    func() error
	GetUploader  func() (cbdeploy.Uploader, error)
	Log          cbdeploy.Logger
	ErrorHandler cbdeploy.ErrorHandler
	PublicUpload bool
	Bucket       string
	Files        []FileUpload
}

func (BuildDeploy) GetGroup

func (c BuildDeploy) GetGroup() string

func (BuildDeploy) GetName

func (c BuildDeploy) GetName() string

func (BuildDeploy) GetSchedule

func (c BuildDeploy) GetSchedule() string

func (BuildDeploy) Run

func (c BuildDeploy) Run() error

type BuildUpdate

type BuildUpdate struct {
	GetDownloader         func() (cbdeploy.Downloader, error)
	Log                   cbdeploy.Logger
	ErrorHandler          cbdeploy.ErrorHandler
	CurrentVersion        string
	VersionFileRemotePath string
	Bucket                string
	Files                 []FileDownload
	InitScriptRemotePath  string
	CheckInterval         time.Duration
}

func (BuildUpdate) GetGroup

func (c BuildUpdate) GetGroup() string

func (BuildUpdate) GetName

func (c BuildUpdate) GetName() string

func (BuildUpdate) GetSchedule

func (c BuildUpdate) GetSchedule() string

func (BuildUpdate) Run

func (c BuildUpdate) Run() error

type FileDownload

type FileDownload struct {
	RemotePath string
	LocalPath  string
}

type FileUpload

type FileUpload struct {
	LocalPath  string
	RemotePath string
}

Jump to

Keyboard shortcuts

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