Documentation
¶
Index ¶
- func BuildLdflags(version string) string
- func DefaultBuildOutput(rootDir string, goos string) string
- func FormatSHA256Checksum(checksum string, fileName string) (string, error)
- func LinuxSandboxHelperArtifactName(goos string) string
- func LinuxSeccompHelperArtifactName(goos string) string
- func PackageVersion(rootDir string) (string, error)
- func ReleaseArch(goarch string) (string, error)
- func ReleaseArchiveExtension(goos string) string
- func ReleaseArchiveName(version string, goos string, goarch string) (string, error)
- func ReleasePackageName(version string, goos string, goarch string) (string, error)
- func ReleasePlatform(goos string) (string, error)
- func SHA256File(path string) (string, error)
- func WindowsSandboxCommandRunnerArtifactName(goos string) string
- func WindowsSandboxSetupArtifactName(goos string) string
- func ZeroArtifactName(goos string) string
- type BuildOptions
- type BuildResult
- type PackageOptions
- type PackageResult
- type ParsedChecksum
- type SmokeOptions
- type SmokeResult
- type VerifiedChecksum
- type VerifyOptions
- type WrittenChecksum
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildLdflags ¶
func DefaultBuildOutput ¶
func FormatSHA256Checksum ¶
func PackageVersion ¶
func ReleaseArch ¶
func ReleaseArchiveExtension ¶
func ReleaseArchiveName ¶
func ReleasePackageName ¶
func ReleasePlatform ¶
func SHA256File ¶
func ZeroArtifactName ¶
Types ¶
type BuildOptions ¶
type BuildResult ¶
func Build ¶
func Build(ctx context.Context, options BuildOptions) (BuildResult, error)
type PackageOptions ¶
type PackageResult ¶
type PackageResult struct {
PackageName string
ArchiveName string
ArchivePath string
Checksum WrittenChecksum
Version string
GOOS string
GOARCH string
}
func Package ¶
func Package(ctx context.Context, options PackageOptions) (PackageResult, error)
type ParsedChecksum ¶
func ParseSHA256Checksum ¶
func ParseSHA256Checksum(text string) (ParsedChecksum, error)
type SmokeOptions ¶
type SmokeResult ¶
func Smoke ¶
func Smoke(ctx context.Context, options SmokeOptions) (SmokeResult, error)
type VerifiedChecksum ¶
type VerifiedChecksum struct {
WrittenChecksum
ExpectedChecksum string
ActualChecksum string
}
func VerifyReleaseChecksums ¶
func VerifyReleaseChecksums(options VerifyOptions) ([]VerifiedChecksum, error)
func VerifySHA256Checksum ¶
func VerifySHA256Checksum(checksumPath string) (VerifiedChecksum, error)
type VerifyOptions ¶
type VerifyOptions struct {
ReleaseDir string
}
type WrittenChecksum ¶
type WrittenChecksum struct {
ArchivePath string
ChecksumPath string
ArchiveName string
Checksum string
}
func WriteSHA256Checksum ¶
func WriteSHA256Checksum(archivePath string) (WrittenChecksum, error)
Click to show internal directories.
Click to hide internal directories.