github

package
v0.0.0-...-f238219 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(c codes.Code, s string) error

func Errorf

func Errorf(c codes.Code, s string, args ...interface{}) error

func Unmarshal

func Unmarshal(in map[string]interface{}) (*pb.Config, error)

Types

type Interceptor

type Interceptor interface {
	Execute(ctx context.Context, client *github.Client, cfg *pb.Config, req *v1alpha1.InterceptorRequest) (*v1alpha1.InterceptorResponse, error)
}

type IssueComment

type IssueComment struct{}

func (*IssueComment) Execute

type PullRequest

type PullRequest struct{}

func (*PullRequest) Execute

type Push

type Push struct{}

func (*Push) Execute

type Server

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

func New

func New(c *http.Client, webhookSecret []byte) *Server

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type StatusError

type StatusError struct {
	v1alpha1.Status
}

func (StatusError) Error

func (s StatusError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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