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 ¶
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
Click to show internal directories.
Click to hide internal directories.