bundle

package
v1.78.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package bundle is a module intent rule: Enable when the active bundle of the active edition enables the module, a soft Disable otherwise. It never Forbids, so a later intent (Module.spec.enabled) overrides it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BundleChecker

type BundleChecker func(license edition.Licensing) bool

BundleChecker reports whether the active bundle enables a package with this licensing (edition.Edition.IsEnabled of the active edition).

type Rule

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

Rule is the bundle rule of one module.

func NewRule

func NewRule(bundleChecker BundleChecker, licensing edition.Licensing) *Rule

NewRule builds the bundle rule of a package's licensing.

func (*Rule) Decide

func (r *Rule) Decide() rule.Decision

Decide returns Enable, or Disable with DisabledByBundle.

Jump to

Keyboard shortcuts

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