bcr

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BazelRegistry

type BazelRegistry struct {
	Config         BazelRegistryConfig
	RepositoryPath string
	// contains filtered or unexported fields
}

func CheckoutBazelRegistry

func CheckoutBazelRegistry(config BazelRegistryConfig) (BazelRegistry, error)

func (*BazelRegistry) ResolveModuleInfo

func (bcr *BazelRegistry) ResolveModuleInfo(moduleName string, version string) ResolveModuleInfoResult

type BazelRegistryConfig

type BazelRegistryConfig struct {
	CacheDir     string
	Verbose      bool
	KeepSources  bool
	RecomputeBad bool
	CacheBad     bool
}

func NewBazelRegistryConfig

func NewBazelRegistryConfig() BazelRegistryConfig

type ModuleInfo

type ModuleInfo struct {
	Module  ModuleVersion  `json:"module"`
	Targets []ModuleTarget `json:"targets"`
}

func (ModuleInfo) ToIndexerModule

func (m ModuleInfo) ToIndexerModule() indexer.Module

type ModuleTarget

type ModuleTarget struct {
	Name               label.Label   `json:"name"`
	Alias              *label.Label  `json:"alias,omitempty"`
	Hdrs               []label.Label `json:"hdrs"`
	Includes           []string      `json:"includes"`
	StripIncludePrefix *string       `json:"strip_include_prefix,omitempty"`
	IncludePrefix      *string       `json:"include_prefix,omitempty"`
	Deps               []label.Label `json:"deps"`
}

type ModuleVersion

type ModuleVersion struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

func (ModuleVersion) String

func (m ModuleVersion) String() string

type ResolveModuleInfoResult

type ResolveModuleInfoResult struct {
	Info       *ModuleInfo `json:"info,omitempty"`
	Unresolved *struct {
		Module ModuleVersion `json:"module"`
		Reason string        `json:"reason"`
	} `json:"unresolved,omitempty"`
}

func (ResolveModuleInfoResult) IsResolved

func (r ResolveModuleInfoResult) IsResolved() bool

func (ResolveModuleInfoResult) IsUnresolved

func (r ResolveModuleInfoResult) IsUnresolved() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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