releaser

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultHttpClient added in v0.2.2

type DefaultHttpClient struct{}

func (*DefaultHttpClient) Get added in v0.2.2

func (c *DefaultHttpClient) Get(url string) (resp *http.Response, err error)

type Git added in v1.1.0

type Git interface {
	AddWorktree(workingDir string, committish string) (string, error)
	RemoveWorktree(workingDir string, path string) error
	Add(workingDir string, args ...string) error
	Commit(workingDir string, message string) error
	Push(workingDir string, args ...string) error
}

type GitHub

type GitHub interface {
	CreateRelease(ctx context.Context, input *github.Release) error
	GetRelease(ctx context.Context, tag string) (*github.Release, error)
	CreatePullRequest(owner string, repo string, message string, head string, base string) (string, error)
}

GitHub contains the functions necessary for interacting with GitHub release objects

type HttpClient added in v0.2.2

type HttpClient interface {
	Get(url string) (*http.Response, error)
}

type Releaser

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

func NewReleaser

func NewReleaser(config *config.Options, github GitHub, git Git) *Releaser

func (*Releaser) CreateReleases

func (r *Releaser) CreateReleases() error

CreateReleases finds and uploads Helm chart packages to GitHub

func (*Releaser) UpdateIndexFile

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

UpdateIndexFile updates the index.yaml file for a given Git repo

Jump to

Keyboard shortcuts

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