Documentation
¶
Index ¶
- type Builder
- func (b *Builder) Build(ctx context.Context) error
- func (b *Builder) Revision() string
- func (b *Builder) WithExcluded(excluded []string) *Builder
- func (b *Builder) WithOptimizationLevel(level int) *Builder
- func (b *Builder) WithOutput(w io.Writer) *Builder
- func (b *Builder) WithRevision(revision string) *Builder
- func (b *Builder) WithRevisionFunc(fn func(fs.FS) (string, error)) *Builder
- func (b *Builder) WithSources(srcs []*Source) *Builder
- func (b *Builder) WithTarget(target string) *Builder
- type Dir
- type PackageConflictErr
- type Source
- type Transform
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) WithExcluded ¶
func (*Builder) WithOptimizationLevel ¶ added in v0.6.0
func (*Builder) WithRevision ¶
func (*Builder) WithRevisionFunc ¶ added in v0.6.0
WithRevisionFunc sets a function to compute the revision from the assembled bundle filesystem. It is called after FS assembly and before compilation.
func (*Builder) WithSources ¶
func (*Builder) WithTarget ¶
type PackageConflictErr ¶
type PackageConflictErr struct {
Requirement *Source
Package *ast.Package
// contains filtered or unexported fields
}
func (*PackageConflictErr) Error ¶
func (err *PackageConflictErr) Error() string
type Source ¶
type Source struct {
Name string
Requirements []ext_config.Requirement
Transforms []Transform
// contains filtered or unexported fields
}
Source represents a collection of policy and data files with dependencies. Sources can depend on other sources via Requirements and apply transformations to data files before building.
Click to show internal directories.
Click to hide internal directories.