release

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTarGzFromDir

func CreateTarGzFromDir(sourceDir, targzPath string) error

CreateTarGzFromDir creates a .tar.gz archive from a directory.

func CreateTarGzFromSymlink(sourceDir, targetFile string) error

CreateTarGzFromSymlink creates a tar.gz file from the specified directory.

func OciRelease

func OciRelease(params OCIParams) error

OciRelease releases the artifacts to OCI

func WalkDir

func WalkDir(dir string) ([]string, error)

WalkDir recursively walks through the directory and notes down all the file names.

Types

type GHParams

type GHParams struct {
	Repo        string
	Owner       string
	Version     string
	Platform    string
	Dir         string
	AccessToken string
}

GHParams holds release parameters for GitHub release

type GHRelease

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

GHRelease holds the Github release

func NewGHRelease

func NewGHRelease(params GHParams) *GHRelease

NewGHRelease creates a new GHRelease

func (*GHRelease) Flake

func (gh *GHRelease) Flake(tmpDir, artifactName string) error

Flake generates a flake.nix file for the release

func (*GHRelease) GHReleaseCreate

func (gh *GHRelease) GHReleaseCreate(params GHParams) error

GHReleaseCreate uploads the artifacts to Github

func (*GHRelease) UploadFileToRelease

func (gh *GHRelease) UploadFileToRelease(ctx context.Context, name, filePath string) error

UploadFileToRelease uploads a file to a GitHub release

type OCIParams

type OCIParams struct {
	Name     string
	Version  string
	Platform string
	Dir      string
	ImageLoc string
}

OCIParams holds release parameters

Jump to

Keyboard shortcuts

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