Documentation ¶
Index ¶
- type Job
- type Manager
- func (m *Manager) Close() error
- func (m *Manager) Get(repo *core.Repository) (*Repository, error)
- func (m *Manager) JobPath(repo *core.Repository) string
- func (m *Manager) List() ([]*Repository, error)
- func (m *Manager) Remove(repo *core.Repository) error
- func (m *Manager) RepoDir(repo *core.Repository) string
- func (m *Manager) Save(repoJob *Repository) error
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Job ¶
type Job struct { Name string `yaml:"name"` Checkout string `yaml:"checkout"` Exec []string `yaml:"exec"` // contains filtered or unexported fields }
func (*Job) TemplateRebase ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) Get ¶
func (m *Manager) Get(repo *core.Repository) (*Repository, error)
func (*Manager) List ¶
func (m *Manager) List() ([]*Repository, error)
func (*Manager) Save ¶
func (m *Manager) Save(repoJob *Repository) error
type Repository ¶
type Repository struct { Every string `yaml:"every"` Jobs []*Job `yaml:"jobs"` NextRun int64 `yaml:"next_run"` // contains filtered or unexported fields }
func New ¶
func New(repo *core.Repository) *Repository
func (*Repository) NeedRun ¶
func (r *Repository) NeedRun() bool
func (*Repository) Normalize ¶
func (r *Repository) Normalize() error
func (*Repository) Repo ¶
func (r *Repository) Repo() *core.Repository
Click to show internal directories.
Click to hide internal directories.