repo

package
v0.0.0-...-ad6da6f Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	User     string
	Client   *github.Client
	Exclude  []string
	Timeout  time.Duration
	Register chan *github.Repository
}

Service struct type

func (*Service) Delete

func (svc *Service) Delete(ctx context.Context)

Delete removes the repository if it is a forked and not in the whitelist.

func (*Service) Done

func (svc *Service) Done() chan bool

Done returns channel of bool indicating the status of the deletion.

func (*Service) Fetch

func (svc *Service) Fetch(ctx context.Context)

Fetch retrieves all Github repositories of the user.

Jump to

Keyboard shortcuts

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