package compiler

import "sigs.k8s.io/kustomize/api/internal/plugins/compiler"

Index

Types

type Compiler

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

Compiler creates Go plugin object files.

func NewCompiler

func NewCompiler(root string) *Compiler

NewCompiler returns a new compiler instance.

func (*Compiler) Compile

func (b *Compiler) Compile() error

Compile changes its working directory to ${pluginRoot}/${g}/${v}/$lower(${k} and places object code next to source code.

func (*Compiler) ObjPath

func (b *Compiler) ObjPath() string

Absolute path to the compiler output (the .so file).

func (*Compiler) SetGVK

func (b *Compiler) SetGVK(g, v, k string)

Set GVK converts g,v,k tuples to file path components.

Source Files

compiler.go

Version
v0.20.1 (latest)
Published
Jul 23, 2025
Platform
linux/amd64
Imports
9 packages
Last checked
1 day ago

Tools for package owners.