archiveplugin

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 5

Documentation

Index

Constants

View Source
const (
	// Version gets incremented on incompatible changes to the archive plugin or its runtime,
	// think of this as a major version increment in semver terms.
	// This should almost never happen, but if it does, the old archive plugin will probably not work as expected.
	// This will be detected on Hugoreleaser startup and the build will fail.
	// The plugin server then needs to be updated and re-tested.
	Version = 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchiveFile

type ArchiveFile struct {
	// The source filename.
	SourcePathAbs string `json:"source_path_abs"`

	// Relative target path, including the name of the file.
	TargetPath string `json:"target_path"`

	// Mode represents a file's mode and permission bits.
	Mode fs.FileMode `json:"mode"`
}

func (*ArchiveFile) Init

func (a *ArchiveFile) Init() error

type Request

type Request struct {
	GoInfo model.GoInfo `json:"go_info"`

	// Settings for the archive.
	// This is the content of archive_settings.custom_settings.
	Settings map[string]any `json:"settings"`

	Files []ArchiveFile `json:"files"`

	// Filename with extension.
	OutFilename string `json:"out_filename"`
}

Request is what is sent to an external archive tool.

func (*Request) Init

func (r *Request) Init() error

Jump to

Keyboard shortcuts

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