Documentation
¶
Index ¶
Constants ¶
View Source
const Version = 1
Variables ¶
This section is empty.
Functions ¶
Types ¶
type File ¶
type ImportAction ¶
type ImportAction struct {
Module Module
Status ImportStatus
Target string
DryRun bool
Error error
}
type ImportOptions ¶
type ImportStatus ¶
type ImportStatus string
const ( StatusSynced ImportStatus = "synced" StatusFallback ImportStatus = "fallback" StatusDirty ImportStatus = "dirty" StatusDivergent ImportStatus = "divergent" StatusFailed ImportStatus = "failed" )
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(svc git.GitService) *Service
func (*Service) Import ¶
func (s *Service) Import(ctx context.Context, modules []Module, opts ImportOptions) []ImportAction
Click to show internal directories.
Click to hide internal directories.