gitlab.com/evatix-go/core@v1.3.55/coreinterface/all-changes-related.go (about)

     1  package coreinterface
     2  
     3  import "gitlab.com/evatix-go/core/internal/internalinterface"
     4  
     5  type ChangesCommitter interface {
     6  	HasChangesChecker
     7  	ChangeAccepter
     8  	ChangeRejecter
     9  	RemindLaterChangeSkipper
    10  	Commit(option AcceptRejectOrSkipper) error
    11  	CommitMust(option AcceptRejectOrSkipper)
    12  }
    13  
    14  type ChangeAccepter interface {
    15  	AcceptChanges() error
    16  	AcceptChangesMust()
    17  }
    18  
    19  type ChangeRejecter interface {
    20  	RejectChanges() error
    21  	RejectChangesMust()
    22  }
    23  
    24  type RemindLaterChangeSkipper interface {
    25  	SkipChangesRemindLater() error
    26  	SkipChangesRemindLaterMust()
    27  }
    28  
    29  type CountStateTracker interface {
    30  	internalinterface.CountStateTracker
    31  }
    32  
    33  type DynamicDiffChangesGetter interface {
    34  	internalinterface.DynamicDiffChangesGetter
    35  }
    36  
    37  type HasChangesChecker interface {
    38  	internalinterface.HasChangesChecker
    39  }
    40  
    41  type DynamicChangeStateDetector interface {
    42  	internalinterface.DynamicChangeStateDetector
    43  }
    44  
    45  type ChangesLogger interface {
    46  	internalinterface.ChangesLogger
    47  }
    48  
    49  type MustChangesLogger interface {
    50  	internalinterface.MustChangesLogger
    51  }
    52  
    53  type YesNoAsker interface {
    54  	internalinterface.YesNoAsker
    55  }
    56  
    57  type AcceptRejectOrSkipper interface {
    58  	internalinterface.AcceptRejectOrSkipper
    59  }
    60  
    61  type YesNoAcceptRejecter interface {
    62  	internalinterface.YesNoAcceptRejecter
    63  }
    64  
    65  type EnhanceYesNoAcceptRejecter interface {
    66  	YesNoAcceptRejecter
    67  	IsAcceptOrReject() bool
    68  	IsNotAcceptOrReject() bool
    69  	IsDefinedAccepted() bool
    70  }
    71  
    72  type IsReviewChecker interface {
    73  	IsReview() bool
    74  }