Documentation
¶
Index ¶
- type Gitea
- func (g *Gitea) Changelog(from, to string) *result.Changelogs
- func (g *Gitea) Condition(source string, scm scm.ScmHandler) (pass bool, message string, err error)
- func (g *Gitea) ReportConfig() interface{}
- func (g *Gitea) SearchReleases() ([]string, error)
- func (g *Gitea) Source(workingDir string, resultSource *result.Source) error
- func (g Gitea) Target(source string, scm scm.ScmHandler, dryRun bool, resultTarget *result.Target) error
- type Spec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gitea ¶
type Gitea struct {
// contains filtered or unexported fields
}
Gitea contains information to interact with Gitea api
func (*Gitea) Changelog ¶
func (g *Gitea) Changelog(from, to string) *result.Changelogs
Changelog returns the changelog for this resource, or an empty string if not supported
func (*Gitea) ReportConfig ¶ added in v0.99.0
func (g *Gitea) ReportConfig() interface{}
ReportConfig returns a new configuration with only the necessary configuration fields to identify the resource without any sensitive information
func (*Gitea) SearchReleases ¶
Retrieve git tags from a remote gitea repository
type Spec ¶
type Spec struct {
client.Spec `yaml:",inline,omitempty"`
// [S][C][T] owner specifies the repository owner
Owner string `yaml:",omitempty" jsonschema:"required"`
// [S][C][T] repository specifies the name of a repository for a specific owner
Repository string `yaml:",omitempty" jsonschema:"required"`
// [S] versionfilter provides parameters to specify version pattern and its type like regex, semver, or just latest.
VersionFilter version.Filter `yaml:",omitempty"`
// [T] title defines the Gitea release title.
Title string `yaml:",omitempty"`
// [C][T] tag defines the Gitea release tag.
Tag string `yaml:",omitempty"`
// [T] commitish defines the commit-ish such as `main`
Commitish string `yaml:",omitempty"`
// [T] description defines if the new release description
Description string `yaml:",omitempty"`
// [T] draft defines if the release is a draft release
Draft bool `yaml:",omitempty"`
// [T] prerelease defines if the release is a pre-release release
Prerelease bool `yaml:",omitempty"`
}
Spec defines settings used to interact with Gitea release
Click to show internal directories.
Click to hide internal directories.