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.
Click to show internal directories.
Click to hide internal directories.