module

package
v0.0.0-...-c64101a Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const GoReleaserChecksums = "checksums.txt"

GoReleaserChecksums checksums file

View Source
const GoReleaserConfig = ".goreleaser.yml"

GoReleaserConfig config file for go releaser

View Source
const GoReleaserConfigTemplate = `` /* 656-byte string literal not displayed */

GoReleaserConfigTemplate config file template

View Source
const ReleasesData = "releases_data"

ReleasesData hash map name

View Source
const ReleasesURLLookup = "url_to_uuid_lookup"

ReleasesURLLookup hash map name

View Source
const ReleasesUUIDLookup = "uuid_to_url_lookup"

ReleasesUUIDLookup hash map name

Variables

This section is empty.

Functions

func CreateReleaserConfig

func CreateReleaserConfig(path, projectName, releaseName string) (bool, error)

CreateReleaserConfig creates a .goreleaser.yml config file

func DeleteReleaserConfig

func DeleteReleaserConfig(path string) error

DeleteReleaserConfig deletes .goreleaser.yml config file

Types

type GithubWebhook

type GithubWebhook struct {
}

GithubWebhook struct

type RedisDataStore

type RedisDataStore struct {
	Client *hippo.Redis
}

RedisDataStore struct

func (*RedisDataStore) Connect

func (r *RedisDataStore) Connect() (bool, error)

Connect establishes a connection

func (*RedisDataStore) DeleteProjectByURL

func (r *RedisDataStore) DeleteProjectByURL(url string) (bool, error)

DeleteProjectByURL deletes a project data by url

func (*RedisDataStore) DeleteProjectByUUID

func (r *RedisDataStore) DeleteProjectByUUID(uuid string) (bool, error)

DeleteProjectByUUID deletes a project data by uuid

func (*RedisDataStore) GetProjectByURL

func (r *RedisDataStore) GetProjectByURL(url string) (*model.Project, error)

GetProjectByURL gets a project data by url

func (*RedisDataStore) GetProjectByUUID

func (r *RedisDataStore) GetProjectByUUID(uuid string) (*model.Project, error)

GetProjectByUUID gets a project data by uuid

func (*RedisDataStore) GetProjects

func (r *RedisDataStore) GetProjects() ([]*model.Project, error)

GetProjects gets projects list

func (*RedisDataStore) ProjectExistsByURL

func (r *RedisDataStore) ProjectExistsByURL(url string) (bool, error)

ProjectExistsByURL check if project exists by URL

func (*RedisDataStore) ProjectExistsByUUID

func (r *RedisDataStore) ProjectExistsByUUID(uuid string) (bool, error)

ProjectExistsByUUID check if project exists by UUID

func (*RedisDataStore) StoreProject

func (r *RedisDataStore) StoreProject(project *model.Project) (bool, error)

StoreProject stores the project data

type Releaser

type Releaser struct {
	ID          string
	ProjectName string
	ProjectURL  string
	Version     string
	LastCommit  string
	BuildPath   string
	LastTag     string
	Binaries    map[string]string
}

Releaser struct

func NewReleaser

func NewReleaser(projectName, projectURL, version string) (*Releaser, error)

NewReleaser returns a new instance of Releaser

func (*Releaser) Build

func (r *Releaser) Build() (bool, error)

Build builds the project

func (*Releaser) Cleanup

func (r *Releaser) Cleanup() (bool, error)

Cleanup remove the build dir

func (*Releaser) Clone

func (r *Releaser) Clone() (bool, error)

Clone clones a repository

func (*Releaser) Release

func (r *Releaser) Release() (bool, error)

Release build & release all binaries

func (*Releaser) Store

func (r *Releaser) Store() (bool, error)

Store stores the project

Jump to

Keyboard shortcuts

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