deploytask

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 7 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 BuildRelease added in v0.0.4

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

func (BuildRelease) GetGroup added in v0.0.4

func (c BuildRelease) GetGroup() string

func (BuildRelease) GetName added in v0.0.4

func (c BuildRelease) GetName() string

func (BuildRelease) GetSchedule added in v0.0.4

func (c BuildRelease) GetSchedule() string

func (BuildRelease) Run added in v0.0.4

func (c BuildRelease) 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 FileRelease added in v0.0.4

type FileRelease struct {
	VersionPath string
	LivePath    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