releaser

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//OriginNameUpstream is upstream
	OriginNameUpstream = "upstream"

	//OriginNameLocal is local
	OriginNameLocal = "local"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Releaser

type Releaser struct {
	Token                         string
	TokenEmail                    string
	TokenUserHandle               string
	TokenUsername                 string
	UpstreamKrewIndexRepo         string
	UpstreamKrewIndexRepoOwner    string
	UpstreamKrewIndexRepoCloneURL string
	LocalKrewIndexRepo            string
	LocalKrewIndexRepoOwner       string
	LocalKrewIndexRepoCloneURL    string
}

Releaser is what opens PR

func New

func New(ghToken string) *Releaser

New returns new releaser object

func (*Releaser) HandleActionLambdaWebhook

func (releaser *Releaser) HandleActionLambdaWebhook(request handler.Request) (*handler.Response, error)

HandleActionLambdaWebhook handles requests from github actions

func (*Releaser) HandleActionWebhook

func (releaser *Releaser) HandleActionWebhook(w http.ResponseWriter, r *http.Request)

HandleActionWebhook handles requests from github actions

func (*Releaser) Release

func (releaser *Releaser) Release(request *source.ReleaseRequest) (string, error)

Release releases

Jump to

Keyboard shortcuts

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