package release
Import Path
go.pact.im/x/goship/internal/release (on go.dev )
Dependency Relation
imports 19 packages , and imported by 2 packages
Package-Level Type Names (total 20, all are exported)
/* sort exporteds by: alphabet | popularity */
type ExecuteOptions (struct)
ExecuteOptions configures execution of a validated Plan.
Fields (total 4, all are exported )
OnStep func(event StepEvent )
Push bool
Remote string
VCS vcs .VCS
As Outputs Of (at least one unexported )
/* at least one unexported ... */ /* at least one unexported: */
func go.pact.im/x/goship/internal/cli.buildPlan (ctx context .Context , env *cli .runtimeEnv , cf *cli .commonFlags , rf *cli .releaseFlags , posArgs []string ) (*Plan , ExecuteOptions , error )
As Inputs Of (at least one exported )
func Execute (ctx context .Context , plan *Plan , opts ExecuteOptions ) (*Result , error )
type Inspection (struct)
Inspection holds the result of inspecting a repository’s Go modules.
Fields (total 5, all are exported )
Discovery string
Layers [][]ModuleStatus
Revision vcs .Revision
Skipped []SkippedInfo
VCS string
As Outputs Of (at least 2, both are exported )
func Inspect (ctx context .Context , opts InspectOptions ) (*Inspection , error )
func InspectSnapshot (snap *Snapshot , filter modgraph .FilterOptions ) (*Inspection , error )
As Inputs Of (at least 8, in which 3 are exported )
func go.pact.im/x/goship/internal/ui.(*Renderer ).RenderDiff (ins *Inspection , format ui .Format ) error
func go.pact.im/x/goship/internal/ui.(*Renderer ).RenderGraph (ins *Inspection , format ui .Format ) error
func go.pact.im/x/goship/internal/ui.(*Renderer ).RenderList (ins *Inspection , format ui .Format ) error
/* 5+ unexporteds ... */ /* 5+ unexporteds: */
func go.pact.im/x/goship/internal/ui.renderGraphDOT (w io .Writer , ins *Inspection ) error
func go.pact.im/x/goship/internal/ui.renderGraphMermaid (w io .Writer , ins *Inspection ) error
func go.pact.im/x/goship/internal/ui.(*Renderer ).renderDiffText (ins *Inspection ) error
func go.pact.im/x/goship/internal/ui.(*Renderer ).renderGraphText (ins *Inspection ) error
func go.pact.im/x/goship/internal/ui.(*Renderer ).renderListText (ins *Inspection ) error
type LayerPlan (struct)
LayerPlan describes a single topological layer of a release.
Fields (total 3, all are exported )
CommitMessage string
Index int
Modules []ModulePlan
As Outputs Of (at least one unexported )
/* at least one unexported ... */ /* at least one unexported: */
func buildLayerPlan (index int , layer []*modgraph .Module , snap *Snapshot , graph *modgraph .Graph , resolvedVer, resolvedTag map[string ]string , modWarnings map[string ][]string , commitTmpl, tagTmpl *template .Template ) (LayerPlan , error )
As Inputs Of (at least one unexported )
/* at least one unexported ... */ /* at least one unexported: */
func commitLayerUpdates (ctx context .Context , sess vcs .Session , layer LayerPlan , checksums map[string ]modsum .Checksums ) (*CommitRecord , error )
type Plan (struct)
Plan is the immutable, validated release execution plan.
Fields (total 9, all are exported )
Discovery string
Layers []LayerPlan
Revision vcs .Revision
Skipped []SkippedInfo
TotalCommits int
TotalModules int
TotalTags int
VCS string
Warnings []string
As Outputs Of (at least 3, in which 2 are exported )
func BuildPlan (ctx context .Context , opts PlanOptions ) (*Plan , error )
func PlanFromSnapshot (snap *Snapshot , opts PlanSpec ) (*Plan , error )
/* at least one unexported ... */ /* at least one unexported: */
func go.pact.im/x/goship/internal/cli.buildPlan (ctx context .Context , env *cli .runtimeEnv , cf *cli .commonFlags , rf *cli .releaseFlags , posArgs []string ) (*Plan , ExecuteOptions , error )
As Inputs Of (at least 5, in which 3 are exported )
func Execute (ctx context .Context , plan *Plan , opts ExecuteOptions ) (*Result , error )
func go.pact.im/x/goship/internal/ui.(*Renderer ).RenderPlan (plan *Plan , format ui .Format ) error
func go.pact.im/x/goship/internal/ui.(*Renderer ).RenderResult (plan *Plan , res *Result , format ui .Format ) error
/* 2+ unexporteds ... */ /* 2+ unexporteds: */
func go.pact.im/x/goship/internal/ui.(*Renderer ).renderPlanText (plan *Plan ) error
func go.pact.im/x/goship/internal/ui.(*Renderer ).renderResultText (plan *Plan , res *Result ) error
type SkippedInfo (struct)
SkippedInfo records a module excluded from inspection or release.
Fields (total 3, all are exported )
Dir string
Path string
Reason string
As Outputs Of (at least 2, neither is exported )
/* 2+ unexporteds ... */ /* 2+ unexporteds: */
func filterChanged (snap *Snapshot , graph *modgraph .Graph , withDependents bool , skipped []SkippedInfo ) (*modgraph .Graph , []SkippedInfo , error )
func toSkippedInfo (skipped []modgraph .SkippedModule ) []SkippedInfo
As Inputs Of (at least 2, neither is exported )
/* 2+ unexporteds ... */ /* 2+ unexporteds: */
func filterChanged (snap *Snapshot , graph *modgraph .Graph , withDependents bool , skipped []SkippedInfo ) (*modgraph .Graph , []SkippedInfo , error )
func go.pact.im/x/goship/internal/ui.(*Renderer ).renderSkipped (skipped []SkippedInfo )
type Snapshot (struct)
Snapshot is an immutable, I/O-free capture of repository state at a revision.
Fields (total 6, all are exported )
Changes map[string ]ModuleChange
// keyed by module path
Discovery string
Modules []*modgraph .Module
Revision vcs .Revision
Tags []string
VCS string
As Outputs Of (at least one exported )
func CollectSnapshot (ctx context .Context , opts SnapshotOptions ) (*Snapshot , error )
As Inputs Of (at least 5, in which 2 are exported )
func InspectSnapshot (snap *Snapshot , filter modgraph .FilterOptions ) (*Inspection , error )
func PlanFromSnapshot (snap *Snapshot , opts PlanSpec ) (*Plan , error )
/* 3+ unexporteds ... */ /* 3+ unexporteds: */
func buildLayerPlan (index int , layer []*modgraph .Module , snap *Snapshot , graph *modgraph .Graph , resolvedVer, resolvedTag map[string ]string , modWarnings map[string ][]string , commitTmpl, tagTmpl *template .Template ) (LayerPlan , error )
func changeFor (snap *Snapshot , m *modgraph .Module ) ModuleChange
func filterChanged (snap *Snapshot , graph *modgraph .Graph , withDependents bool , skipped []SkippedInfo ) (*modgraph .Graph , []SkippedInfo , error )
Package-Level Constants (total 5, all are exported)