internal

package
v0.0.0-...-e697f9a Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DelayWithContext

func DelayWithContext(ctx context.Context, d time.Duration)

DelayWithContext returns nil after the specified duration or error if interrupted.

func ValidateGithubName

func ValidateGithubName(name string) bool

ValidateGithubName validates a GitHub username/organization name

Types

type Backup

type Backup struct {
	Config *Config
}

func NewBackupSchedule

func NewBackupSchedule(config *Config) *Backup

func (*Backup) Start

func (b *Backup) Start()

type Config

type Config struct {
	Owners        []string `json:"owners"`
	Token         string   `json:"token"`
	Directory     string   `json:"directory"`
	Concurrency   int      `json:"concurrency"`
	PeriodSeconds int      `json:"period_seconds"`
}

Jump to

Keyboard shortcuts

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