releaser

package
v1.0.13064-eee01fa Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package releaser aids with publishing your Go binaries efficiently and in a consistent way.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PublishParameters

type PublishParameters struct {
	Path    string
	Bucket  string
	App     string
	Version string

	// IncludeFilter optionally allows filtering the files to be uploaded
	IncludeFilter func(path string, info os.FileInfo) bool

	// Tags optionally allows bucket tags to be applied
	Tags map[string]string
}

type ReleaseParameters

type ReleaseParameters struct {
	Bucket  string
	App     string
	Version string

	// Environment optionally allows specifying the environment, defaults to "release"
	Environment string

	// Tags optionally allows bucket tags to be applied
	Tags map[string]string
}

type Releaser

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

func New

func New(ctx context.Context) (*Releaser, error)

func NewWithClient

func NewWithClient(client *s3.Client) *Releaser

func (*Releaser) Publish

func (r *Releaser) Publish(ctx context.Context, params PublishParameters) error

func (*Releaser) Release

func (r *Releaser) Release(ctx context.Context, params ReleaseParameters) error

Jump to

Keyboard shortcuts

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