Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DaemonPlanner ¶
type DaemonPlanner struct { Logger log.Logger Daemon daemontypes.Daemon }
DaemonPlanner interfaces with the Daemon to perform interactions with the end user
func (*DaemonPlanner) ConfirmPlan ¶
func (d *DaemonPlanner) ConfirmPlan( ctx context.Context, formmatedTerraformPlan string, release api.Release, confirmedChan chan bool, ) (bool, error)
ConfirmPlan presents the plan to the user. returns true if the plan should be applied
func (*DaemonPlanner) WithStatusReceiver ¶
func (d *DaemonPlanner) WithStatusReceiver(daemontypes.StatusReceiver) PlanConfirmer
WithStatusReceiver is a no-op for the daemon version of PlanConfirmer
type DaemonlessPlanner ¶
type DaemonlessPlanner struct { Logger log.Logger Status daemontypes.StatusReceiver }
func (*DaemonlessPlanner) ConfirmPlan ¶
func (*DaemonlessPlanner) WithStatusReceiver ¶
func (d *DaemonlessPlanner) WithStatusReceiver(statusReceiver daemontypes.StatusReceiver) PlanConfirmer
type PlanConfirmer ¶
type PlanConfirmer interface { ConfirmPlan( ctx context.Context, formmatedTerraformPlan string, release api.Release, confirmedChan chan bool, ) (bool, error) WithStatusReceiver(daemontypes.StatusReceiver) PlanConfirmer }
func NewDaemonlessPlanner ¶
func NewDaemonlessPlanner( logger log.Logger, ) PlanConfirmer
func NewPlanner ¶
func NewPlanner( logger log.Logger, daemon daemontypes.Daemon, ) PlanConfirmer
Click to show internal directories.
Click to hide internal directories.