providers

package
v0.0.0-...-74a0df4 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoEventFound = fmt.Errorf("no GitHub event data found")
)

Functions

This section is empty.

Types

type GithubProvider

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

func NewDefaultGithubProvider

func NewDefaultGithubProvider(logger *slog.Logger) GithubProvider

NewDefaultGithubProvider returns a new default GitHub provider.

func NewGithubProvider

func NewGithubProvider(fs afero.Fs, logger *slog.Logger, store *secrets.SecretStore) GithubProvider

NewGithubProvider returns a new GitHub provider.

func (*GithubProvider) GetEventPayload

func (g *GithubProvider) GetEventPayload() (any, error)

GetEventPayload returns the GitHub event payload.

func (*GithubProvider) GetEventType

func (g *GithubProvider) GetEventType() string

GetEventType returns the GitHub event type.

func (*GithubProvider) HasEvent

func (g *GithubProvider) HasEvent() bool

HasEvent returns whether a GitHub event payload exists.

func (*GithubProvider) NewClient

func (g *GithubProvider) NewClient(secret *schema.Secret) *github.Client

NewClient returns a new GitHub client.

Jump to

Keyboard shortcuts

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