Documentation ¶
Index ¶
- func ContextWithReleaseParams(ctx context.Context, segment semver.Segment, comment string) context.Context
- func ContextWithSpec(ctx context.Context, s spec.Spec) context.Context
- func ReleaseParamsFromContext(ctx context.Context) (segment semver.Segment, comment string)
- func SpecFromContext(ctx context.Context) spec.Spec
- type Action
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithReleaseParams ¶
func ContextWithReleaseParams(ctx context.Context, segment semver.Segment, comment string) context.Context
ContextWithReleaseParams returns a new context that has input parameters for Release action.
func ContextWithSpec ¶
ContextWithSpec returns a new context that has a copy of spec.
func ReleaseParamsFromContext ¶
ReleaseParamsFromContext retrieves input parameters for Release action from a context. If a parameter is not found, a default value will be returned.
Types ¶
type Action ¶
type Action interface { Dry(context.Context) error Run(context.Context) error Revert(context.Context) error }
Action is an ordered list of steps that can be reverted.
func NewRelease ¶
NewRelease creates an instance of Release action.
Click to show internal directories.
Click to hide internal directories.