Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "dev"
Version is the crofty CLI version and the single source the rest of the code reads. Releases inject the git tag at build time: wharfy builds with -ldflags "-X main.version=…", and main() copies that into Version (see main.go). Plain `go build` from source leaves it as "dev".
Functions ¶
Types ¶
type Deployer ¶
type Deployer interface {
// Carries reports the non-asset parts this provider can deliver (every
// provider delivers the assets themselves). The common layer assembles a
// bundle without knowing the destination, so this is how it learns what a
// destination can and cannot take.
Carries() []deployPart
// Deploy sends the bundle to the destination. progress receives short
// human-readable lines so the caller can print them. It returns the site's
// live URL when the provider knows it ("" when it can't — e.g. an SFTP/FTPS
// host whose public URL depends on the owner's domain).
Deploy(b deployBundle, progress func(string)) (url string, err error)
}
A Deployer publishes a built site to one destination. Each deploy provider (Cloudflare Pages, SFTP, FTPS) implements it, so deploy.go can dispatch on the configured provider without knowing the wire details. The build and output- contract steps run once, before any Deployer is constructed — a Deployer only uploads an already-verified build.
Source Files
¶
- access.go
- account.go
- add.go
- agent.go
- agents_guide.go
- analytics.go
- analytics_setup.go
- build.go
- cfdeploy.go
- cloudflare.go
- config.go
- configure.go
- credit.go
- deploy.go
- deploybundle.go
- deployer.go
- deployready.go
- doctor.go
- features.go
- fragment.go
- ftpsdeploy.go
- hints.go
- init.go
- lang.go
- preview.go
- preview_unix.go
- root.go
- serverdeploy.go
- sftpdeploy.go
- share.go
- stubs.go
- theme.go
- update.go
- updatecmd.go
- validate.go
- workerbundle.go
Click to show internal directories.
Click to hide internal directories.