releaser

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 21 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 v1.4.1

type DefaultHTTPClient struct{}

func (*DefaultHTTPClient) Get added in v1.4.1

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
	Pull(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 added in v1.4.1

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