Documentation
¶
Index ¶
- func AsStrings(deps []DepInfo) []string
- func Contains(s []DepInfo, name string) bool
- func DetermineJenkinsVersionFromDockerfile(reader io.Reader) (string, error)
- func ExtractExactVersion(jenkinsVersion string) string
- func IsLTS(version string) bool
- type Config
- type CoreInfo
- type DepInfo
- type Dependency
- type DeprecationInfo
- type GitHub
- type PluginInfo
- type ReleaseInfo
- type Updater
- func (u *Updater) Client() api.Client
- func (u *Updater) GetWarnings(plugins []DepInfo) ([]WarningInfo, error)
- func (u *Updater) IncludeDependencies()
- func (u *Updater) LatestVersions(plugins []DepInfo) ([]DepInfo, error)
- func (u *Updater) SecurityUpdates()
- func (u *Updater) SetClient(client *api.Client)
- func (u *Updater) SetVersion(version string)
- type VersionInfo
- type WarningInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractExactVersion ¶
Types ¶
type Config ¶
type Config struct { ConnectionCheckURL string `json:"connectionCheckUrl"` Core CoreInfo `json:"core"` Deprecations map[string]DeprecationInfo `json:"deprecations"` ID string `json:"id"` Plugins map[string]PluginInfo `json:"plugins"` UpdateCenterVersion string `json:"updateCenterVersion"` Warnings []WarningInfo `json:"warnings"` }
Config struct to store the update center config representation.
type CoreInfo ¶
type CoreInfo struct { BuildDate string `json:"buildDate"` Name string `json:"core"` Sha1 string `json:"sha1"` Sha256 string `json:"sha256"` URL string `json:"url"` Version string `json:"version"` }
CoreInfo struct to store the update center core representation.
type DepInfo ¶
func FromString ¶
func FromStrings ¶
func (*DepInfo) ShouldUpdate ¶
func (*DepInfo) SkipUpdate ¶
type Dependency ¶
type Dependency struct { Name string `json:"name"` Optional bool `json:"optional"` Version string `json:"version"` }
Dependency struct to store the update center dependency representation.
type DeprecationInfo ¶
type DeprecationInfo struct {
URL string `json:"url"`
}
DeprecationInfo struct to store the update center deprecation representation.
type GitHub ¶
type GitHub struct {
// contains filtered or unexported fields
}
func (*GitHub) GetLatestLTSRelease ¶
type PluginInfo ¶
type PluginInfo struct { BuildDate string `json:"buildDate"` Name string `json:"name"` Sha1 string `json:"sha1"` Sha256 string `json:"sha256"` URL string `json:"url"` Version string `json:"version"` RequiredCore string `json:"requiredCore"` Dependencies []Dependency `json:"dependencies"` }
PluginInfo struct to store the update center plugin representation.
type ReleaseInfo ¶
type Updater ¶
type Updater struct {
// contains filtered or unexported fields
}
func (*Updater) GetWarnings ¶
func (u *Updater) GetWarnings(plugins []DepInfo) ([]WarningInfo, error)
func (*Updater) IncludeDependencies ¶
func (u *Updater) IncludeDependencies()
func (*Updater) LatestVersions ¶
func (*Updater) SecurityUpdates ¶
func (u *Updater) SecurityUpdates()
func (*Updater) SetVersion ¶
type VersionInfo ¶
VersionInfo struct to store the update center version representation.
func (*VersionInfo) Matches ¶
func (v *VersionInfo) Matches(in string) bool
type WarningInfo ¶
type WarningInfo struct { ID string `json:"id"` Message string `json:"message"` Name string `json:"name"` Type string `json:"type"` URL string `json:"url"` Versions []VersionInfo `json:"versions"` }
WarningInfo struct to store the update center warning representation.
func (*WarningInfo) Matches ¶
func (w *WarningInfo) Matches(in string) bool
Click to show internal directories.
Click to hide internal directories.