Documentation
¶
Index ¶
- Constants
- Variables
- type Config
- type Releaser
- func (r *Releaser) ScanAndUpdate(ctx context.Context) error
- func (r *Releaser) ScanAndUpdateWithRule(ctx context.Context, rule Rule) error
- func (r *Releaser) UpdateDocument(ctx context.Context, doc *gabs.Container) (*gabs.Container, error)
- func (r *Releaser) UpdateFile(ctx context.Context, entry *github.TreeEntry, ref *github.Reference) error
- type ReleaserConfig
- type Rule
- type RuleConfig
- type Service
- func (s *Service) FullScan(ctx context.Context) ([]*github.Repository, error)
- func (s *Service) GetReleasers(ctx context.Context, installation *github.Installation, l logrus.FieldLogger) ([]*Releaser, error)
- func (s *Service) ListInstallations(ctx context.Context) ([]*github.Installation, error)
- func (s *Service) NewReleaser(ctx context.Context, client *github.Client, repo *github.Repository, ...) (*Releaser, error)
- func (s *Service) ScanInstallation(ctx context.Context, client *github.Client) ([]*github.Repository, error)
- func (s *Service) ScheduleImageUpdates(ctx context.Context, l logrus.FieldLogger) error
Constants ¶
View Source
const ( StrategyPullRequest = "pull-request" StrategyDirect = "direct" )
Variables ¶
View Source
var ErrFileMissing = errors.New("File missing in repository")
View Source
var ErrNotAutomated = errors.New("Not an automated release")
Functions ¶
This section is empty.
Types ¶
type Releaser ¶
type Releaser struct {
Client *github.Client
Repository *github.Repository
Rules []Rule
// contains filtered or unexported fields
}
Releaser is a configured client for updating files in a repository
func (*Releaser) ScanAndUpdateWithRule ¶
func (*Releaser) UpdateDocument ¶
type ReleaserConfig ¶
type ReleaserConfig struct {
Rules []RuleConfig `yaml:"rules"`
}
type RuleConfig ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) GetReleasers ¶
func (s *Service) GetReleasers(ctx context.Context, installation *github.Installation, l logrus.FieldLogger) ([]*Releaser, error)
func (*Service) ListInstallations ¶
func (*Service) NewReleaser ¶
func (*Service) ScanInstallation ¶
func (*Service) ScheduleImageUpdates ¶
Click to show internal directories.
Click to hide internal directories.