provider

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudflareCleanupConfig

type CloudflareCleanupConfig struct {
	OlderThanDays int
	KeepLast      int
}

CloudflareCleanupConfig contains deployment cleanup settings. Cleanup is automatically enabled when OlderThanDays or KeepLast is set (> 0).

type PagesProvider

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

PagesProvider implements the provider.Provider interface for Cloudflare Pages. It handles deployment using the Cloudflare Direct Upload API.

func NewCloudflare

func NewCloudflare(apiToken, accountID, projectName string, cleanup CloudflareCleanupConfig, repositories []*config.RepositoryConfig, poolMode string) (*PagesProvider, error)

New creates a new Cloudflare Pages provider.

func (*PagesProvider) GetURL

func (p *PagesProvider) GetURL() string

GetURL returns the production URL for the project.

func (*PagesProvider) Publish

func (p *PagesProvider) Publish(ctx context.Context, outputDir string) error

Publish uploads files to Cloudflare Pages using Direct Upload API.

type Provider

type Provider interface {
	// Publish uploads the repository contents to the provider
	// outputDir is the path to the directory containing the files to publish
	Publish(ctx context.Context, outputDir string) error
}

Provider defines the interface for deployment providers

Jump to

Keyboard shortcuts

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