releaser

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultHttpClient

type DefaultHttpClient struct{}

func (*DefaultHttpClient) Get

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

func (*DefaultHttpClient) GetWithToken added in v0.4.4

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

type Git

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
	GetPushURL(remote string, token string) (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

type HttpClient interface {
	Get(url string) (*http.Response, error)
	GetWithToken(url string, token 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