Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetGlob ¶
func (*AssetGlob) UnmarshalYAML ¶
type Config ¶
type Config struct { RepoSettings `yaml:",inline"` Repositories []*Repository `yaml:"repos"` LogFile string `yaml:"log_file"` Shell string `yaml:"task_shell"` PollTime TimeSeconds `yaml:"poll_seconds"` HttpTimeout TimeSeconds `yaml:"http_timeout"` }
func LoadConfig ¶
type RepoSettings ¶
type Repository ¶
type Repository struct { RepoSettings `yaml:",inline"` Name string `yaml:"name"` // owner/repo Owner string Repo string AssetsGlobs []AssetGlob `yaml:"assets"` Tasks []*Task `yaml:"tasks"` GropeEverything bool `yaml:"grope_everything"` Client *github.Client }
func (*Repository) FeelAndGrope ¶
func (r *Repository) FeelAndGrope(ctx context.Context)
func (*Repository) GropeAsset ¶
func (r *Repository) GropeAsset(ctx context.Context, asset *github.ReleaseAsset, dst string) error
type Task ¶
type Task struct { Run string `yaml:"run"` Name string `yaml:"name"` Shell string WaitSwitch string Log *logrus.Logger }
func (*Task) ExecuteFor ¶
func (t *Task) ExecuteFor(repo *Repository, release *github.RepositoryRelease, dir, assetNameList string) bool
type TimeSeconds ¶
func (*TimeSeconds) UnmarshalYAML ¶
func (ts *TimeSeconds) UnmarshalYAML(value *yaml.Node) error
Click to show internal directories.
Click to hide internal directories.