publish

package module
v0.0.0-...-4529c10 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: MIT Imports: 14 Imported by: 0

README

gha-publish-release-assets

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubConfig

type GithubConfig struct {
	Auth       string
	ReleaseID  string
	Repository string
	Token      string
	Workspace  string
}

type GithubEvent

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

func NewGithubEvent

func NewGithubEvent(file string) (*GithubEvent, error)

func (*GithubEvent) ReleaseID

func (ge *GithubEvent) ReleaseID() (string, error)

type Publisher

type Publisher struct {
	Github GithubConfig
	// contains filtered or unexported fields
}

func NewPublisher

func NewPublisher(req *Request) *Publisher

func (*Publisher) AddExclude

func (p *Publisher) AddExclude(ex string) error

func (*Publisher) AddInclude

func (p *Publisher) AddInclude(in string) error

func (*Publisher) Publish

func (p *Publisher) Publish() error

type Request

type Request struct {
	Transport http.RoundTripper
	// contains filtered or unexported fields
}

func NewRequest

func NewRequest(baseURL string) (*Request, error)

func (*Request) ProcessPost

func (r *Request) ProcessPost(urlpath string, query map[string]string, headers map[string]string, body io.Reader) (io.ReadCloser, error)

ProcessPost will send an HTTP POST request to the baseURL and query with the provided body.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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