gosmee

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version []byte

Functions

func Run

func Run(args []string) error

Types

type GHOp added in v0.21.0

type GHOp interface {
	ListHooks(ctx context.Context, org, repo string, opt *github.ListOptions) ([]*github.Hook, *github.Response, error)
	ListHookDeliveries(ctx context.Context, org, repo string, hookID int64, opt *github.ListCursorOptions) ([]*github.HookDelivery, *github.Response, error)
	GetHookDelivery(ctx context.Context, org, repo string, hookID, deliveryID int64) (*github.HookDelivery, *github.Response, error)
	Starting()
}

type OrgOP added in v0.21.0

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

func NewOrgLister added in v0.21.0

func NewOrgLister(client *github.Client, logger *slog.Logger, org, repo string) *OrgOP

func (*OrgOP) GetHookDelivery added in v0.21.0

func (r *OrgOP) GetHookDelivery(ctx context.Context, org, _ string, hookID, deliveryID int64) (*github.HookDelivery, *github.Response, error)

func (*OrgOP) ListHookDeliveries added in v0.21.0

func (r *OrgOP) ListHookDeliveries(ctx context.Context, org, _ string, hookID int64, opt *github.ListCursorOptions) ([]*github.HookDelivery, *github.Response, error)

func (*OrgOP) ListHooks added in v0.21.0

func (r *OrgOP) ListHooks(ctx context.Context, org, _ string, opt *github.ListOptions) ([]*github.Hook, *github.Response, error)

func (*OrgOP) Starting added in v0.21.0

func (r *OrgOP) Starting()

type RepoOP added in v0.21.0

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

func NewRepoLister added in v0.21.0

func NewRepoLister(client *github.Client, logger *slog.Logger, org, repo string) *RepoOP

func (*RepoOP) GetHookDelivery added in v0.21.0

func (r *RepoOP) GetHookDelivery(ctx context.Context, org, repo string, hookID, deliveryID int64) (*github.HookDelivery, *github.Response, error)

func (*RepoOP) ListHookDeliveries added in v0.21.0

func (r *RepoOP) ListHookDeliveries(ctx context.Context, org, repo string, hookID int64, opt *github.ListCursorOptions) ([]*github.HookDelivery, *github.Response, error)

func (*RepoOP) ListHooks added in v0.21.0

func (r *RepoOP) ListHooks(ctx context.Context, org, repo string, opt *github.ListOptions) ([]*github.Hook, *github.Response, error)

func (*RepoOP) Starting added in v0.21.0

func (r *RepoOP) Starting()

Jump to

Keyboard shortcuts

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