Documentation
¶
Index ¶
- func FormatBulkResults(results []BulkResult, format OutputFormat) (string, error)
- func FormatHistoryResults(results []HistoryResult, format OutputFormat) (string, error)
- func FormatRelease(release *github.Release, format OutputFormat) (string, error)
- type BulkResult
- type HistoryResult
- type OutputFormat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatBulkResults ¶
func FormatBulkResults(results []BulkResult, format OutputFormat) (string, error)
FormatBulkResults formats bulk results based on the output format
func FormatHistoryResults ¶
func FormatHistoryResults(results []HistoryResult, format OutputFormat) (string, error)
FormatHistoryResults formats history results based on the output format
func FormatRelease ¶
func FormatRelease(release *github.Release, format OutputFormat) (string, error)
FormatRelease formats a single release based on the output format
Types ¶
type BulkResult ¶
type BulkResult struct {
Repository string `json:"repository"`
Tag string `json:"tag,omitempty"`
Error string `json:"error,omitempty"`
}
BulkResult represents the result of processing a single repository in bulk operations
type HistoryResult ¶
type HistoryResult struct {
Repository string `json:"repository"`
HistoricalVersion string `json:"historical_version"`
CurrentVersion string `json:"current_version,omitempty"`
HasUpdate bool `json:"has_update"`
Error string `json:"error,omitempty"`
}
HistoryResult represents the result of comparing historical version with current release
type OutputFormat ¶
type OutputFormat string
OutputFormat represents the output format type
const ( // FormatText outputs in plain text format (default) FormatText OutputFormat = "text" // FormatJSON outputs in JSON format FormatJSON OutputFormat = "json" )
Click to show internal directories.
Click to hide internal directories.