diffop

package
v1.2.3-0...-0b8789f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionType

type ActionType int
const (
	ActionSaveLocal ActionType = iota
	ActionSaveRemote
	ActionDeleteLocal
	ActionDeleteRemote
)

type Plan

type Plan struct {
	// contains filtered or unexported fields
}

Plan is based on the diff results.

func NewPlan

func NewPlan(name string) *Plan

func (*Plan) Add

func (p *Plan) Add(result *diff.Result, actionType ActionType)

func (*Plan) AllowRemoteDelete

func (p *Plan) AllowRemoteDelete()

func (*Plan) Empty

func (p *Plan) Empty() bool

func (*Plan) Invoke

func (p *Plan) Invoke(logger log.Logger, ctx context.Context, localManager *local.Manager, remoteManager *remote.Manager, changeDescription string) error

func (*Plan) Log

func (p *Plan) Log(w io.Writer)

func (*Plan) Name

func (p *Plan) Name() string

func (*Plan) Validate

func (p *Plan) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL