deploy

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetlifyOptions

type NetlifyOptions struct {
	Token  string
	APIURL string
	Client *http.Client
}

NetlifyOptions contains the credential and transport used by NetlifyPages. The token is never read from project configuration.

type Options

type Options struct {
	Token     string
	APIURL    string
	AssetsURL string
	Client    *http.Client
}

type Result

type Result struct {
	Provider    string `json:"provider"`
	Target      string `json:"target"`
	Environment string `json:"environment"`
	Deployment  string `json:"deploymentId"`
	URL         string `json:"url"`
	Uploaded    int    `json:"uploaded"`
	Reused      int    `json:"reused"`
}

func CloudflarePages

func CloudflarePages(ctx context.Context, outputDir, targetName, environment string, target config.DeployTarget, options Options) (Result, error)

func NetlifyPages

func NetlifyPages(ctx context.Context, outputDir, targetName, environment string, target config.DeployTarget, options NetlifyOptions) (Result, error)

NetlifyPages publishes the already-built static output as an atomic Netlify deploy. Preview deploys are draft deploys and do not replace production.

Jump to

Keyboard shortcuts

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