Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsBazelFile ¶
IsBazelFile returns true if the filename looks like a Bazel file.
func ParseDeps ¶
func ParseDeps(content string) (map[DependencyID]Dependency, error)
ParseDeps parses the file contents and returns all dependencies, keyed by ID.
Types ¶
type Dependency ¶
type Dependency struct { ID DependencyID Version string SHA256 string // contains filtered or unexported fields }
Dependency represents one dependency version pin.
func GetDep ¶
func GetDep(content string, dep DependencyID) (Dependency, error)
GetDep parses the file contents and returns the given dependency.
func (Dependency) Validate ¶
func (d Dependency) Validate() error
Validate returns an error if the Dependency is not valid.
type DependencyID ¶
type DependencyID string
DependencyID represents the unique identifier for a dependency.
Click to show internal directories.
Click to hide internal directories.