Documentation ¶
Index ¶
- func Build(args BuildArgs) (string, error)
- func CreatePackage(spec PackageSpec) error
- func CreateSHA512File(file string) error
- func CreateTarball(baseFolderName string, outputTarballFilePath string, filePaths []string) error
- func GenerateDependencyReport(overrides, rules, dependencyReportTemplate string, isSnapshot bool) error
- func GenerateNotice(overrides, rules, noticeTemplate string) error
- func GetDefaultExtraFiles() []string
- func GetPackageArch(goarch string) string
- func GetPackageTypes() []string
- type BuildArgs
- type PackageSpec
- type Platform
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
Build builds assetbeat using the defined BuildArgs and returns the executable file path.
func CreatePackage ¶
func CreatePackage(spec PackageSpec) error
CreatePackage assetbeat for distribution. It generates packages based on the provided PackageSpec/
func CreateSHA512File ¶
CreateSHA512File computes the sha512 sum of the specified file the writes a sidecar file containing the hash and filename.
func CreateTarball ¶
CreateTarball creates a tar.gz compressed archive from a list of files.
func GenerateNotice ¶
func GetDefaultExtraFiles ¶
func GetDefaultExtraFiles() []string
GetDefaultExtraFiles returns the default list of files to include in an assetbeat package, in addition to assetbeat's executable
func GetPackageArch ¶
func GetPackageTypes ¶
func GetPackageTypes() []string
GetPackageTypes returns the list of package types to use for packaging/release distribution. By default, it returns the list of supported package types. It can be overridden by setting the TYPES environment variable.
Types ¶
type BuildArgs ¶
type BuildArgs struct {
// contains filtered or unexported fields
}
func DefaultBuildArgs ¶
func DefaultBuildArgs() BuildArgs
DefaultBuildArgs returns the default BuildArgs for use in builds.
func DefaultCrossBuildArgs ¶
DefaultCrossBuildArgs returns the default BuildArgs for cross-builds of a specific Platform.
type PackageSpec ¶
type Platform ¶
func GetPlatforms ¶
func GetPlatforms() []Platform
GetPlatforms return the list of Platform to use for cross-builds. By default, it returns the list of supported platforms. It can be overridden by setting the PLATFORMS environment variable.