renderer

package
v2.12.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupRenderer

type GroupRenderer struct {
	Renderers   []Renderer
	HookRunners []hooks.RenderHookRunner
}

GroupRenderer maintains the slice of all `Renderer`s and their respective lifecycle hooks defined in a single Skaffold config.

func New

func New(ctx context.Context, cfg render.Config, renderCfg latest.RenderConfig, hydrationDir string, labels map[string]string, configName string, manifestOverrides map[string]string) (GroupRenderer, error)

New creates a new Renderer object from the latestV2 API schema.

type RenderMux

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

RenderMux forwards all method calls to the renderers it contains. When encountering an error, it aborts and returns the error. Otherwise, it collects the results and returns all the manifests.

func (RenderMux) ManifestDeps

func (r RenderMux) ManifestDeps() ([]string, error)

func (RenderMux) Render

func (r RenderMux) Render(ctx context.Context, out io.Writer, artifacts []graph.Artifact, offline bool) (manifest.ManifestListByConfig, error)

type Renderer

type Renderer interface {
	Render(ctx context.Context, out io.Writer, artifacts []graph.Artifact, offline bool) (manifest.ManifestListByConfig, error)
	// ManifestDeps returns the user kubernetes manifests to file watcher. In dev mode, a "redeploy" will be triggered
	// if any of the "Dependencies" manifest is changed.
	ManifestDeps() ([]string, error)
}

func NewRenderMux

func NewRenderMux(renderers GroupRenderer) Renderer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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