bazel

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBzlfileRPMs

func AddBzlfileRPMs(bzlfile *build.File, defName string, pkgs []*api.Package, arch string) error

func AddTar2Files

func AddTar2Files(name string, rpmtree string, buildfile *build.File, files []string, public bool)

func AddTree

func AddTree(name string, buildfile *build.File, pkgs []*api.Package, arch string, public bool)

func AddWorkspaceRPMs

func AddWorkspaceRPMs(workspace *build.File, pkgs []*api.Package, arch string) error

func LoadBuild

func LoadBuild(path string) (*build.File, error)

func LoadBzl

func LoadBzl(path string) (*build.File, error)

func LoadWorkspace

func LoadWorkspace(path string) (*build.File, error)

func ParseMacro

func ParseMacro(macro string) (bzlfile, defname string, err error)

ParseMacro parses a macro expression of the form macroFile%defName and returns the bzl file and the def name.

func PruneBzlfileRPMs

func PruneBzlfileRPMs(buildfile *build.File, bzlfile *build.File, defName string)

func PruneWorkspaceRPMs

func PruneWorkspaceRPMs(buildfile *build.File, workspace *build.File)

func WriteBuild

func WriteBuild(dryRun bool, buildfile *build.File, path string) error

func WriteBzl

func WriteBzl(dryRun bool, bzl *build.File, path string) error

func WriteWorkspace

func WriteWorkspace(dryRun bool, workspace *build.File, path string) error

Types

type Artifact

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

type RPMRule

type RPMRule struct {
	*build.Rule
}

func GetBzlfileRPMs

func GetBzlfileRPMs(bzlfile *build.File, defName string) (rpms []*RPMRule)

func GetWorkspaceRPMs

func GetWorkspaceRPMs(workspace *build.File) (rpms []*RPMRule)

func (*RPMRule) SHA256

func (r *RPMRule) SHA256() string

func (*RPMRule) SetName

func (r *RPMRule) SetName(name string)

func (*RPMRule) SetSHA256

func (r *RPMRule) SetSHA256(sha256 string)

func (*RPMRule) SetURLs

func (r *RPMRule) SetURLs(mirrors []string, href string) error

func (*RPMRule) URLs

func (r *RPMRule) URLs() []string

Jump to

Keyboard shortcuts

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