document

package
v0.50.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadURLName added in v0.45.0

func DownloadURLName(url repositoryhost.URL) string

DownloadURLName create resource name that will be dowloaded from a resource link

Types

type Processor

type Processor interface {
	ProcessNode(node *manifest.Node) bool
}

Processor represents document processor

func New

func New(workerCount int, failFast bool, wg *sync.WaitGroup, structure []*manifest.Node, resourcesRoot string, downloadJob resourcedownloader.Interface, validator linkvalidator.Interface, rhs registry.Interface, hugo hugo.Hugo, writer writers.Writer, skipLinkValidation bool) (Processor, taskqueue.QueueController, error)

New creates a new Worker

type Worker

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

Worker represents document worker

func NewDocumentWorker

func NewDocumentWorker(resourcesRoot string, downloader resourcedownloader.Interface, validator linkvalidator.Interface, linkResolver linkresolver.Interface, rh registry.Interface, hugo hugo.Hugo, writer writers.Writer, skipLinkValidation bool) *Worker

NewDocumentWorker creates Worker objects

func (*Worker) ProcessNode

func (d *Worker) ProcessNode(ctx context.Context, node *manifest.Node) error

ProcessNode processes a node and writes its content

Directories

Path Synopsis
frontmatterfakes
SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and Gardener contributors
SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and Gardener contributors

Jump to

Keyboard shortcuts

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