directexport

package
v3.1.12+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgentDelegateFactory

func AgentDelegateFactory(logger hclog.Logger, delegate AgentDelegate) func(exp expin.Export) rpcdef.Agent

Types

type AgentDelegate

type AgentDelegate interface {
	OAuthNewAccessToken(ind expin.Export) (token string, _ error)
	ExportGitRepo(fetch rpcdef.GitRepoFetch) error
}

type ObjectsWriter

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

func NewObjectsWriter

func NewObjectsWriter() *ObjectsWriter

func (*ObjectsWriter) Done

func (s *ObjectsWriter) Done(id expsessions.ID, lastProcessed interface{}) error

func (*ObjectsWriter) GetData

func (s *ObjectsWriter) GetData() rpcdef.MutatedObjects

func (*ObjectsWriter) Session

func (s *ObjectsWriter) Session(modelType string, parentSessionID expsessions.ID, parentObjectID, parentObjectName string) (_ expsessions.ID, lastProcessed interface{}, _ error)

func (*ObjectsWriter) Write

func (s *ObjectsWriter) Write(id expsessions.ID, objs []map[string]interface{}) error

type RepoExporter

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

func NewRepoExporter

func NewRepoExporter(opts RepoExporterOpts) *RepoExporter

func (*RepoExporter) Done

func (s *RepoExporter) Done()

func (RepoExporter) ExportGitRepo

func (s RepoExporter) ExportGitRepo(fetch rpcdef.GitRepoFetch) error

func (RepoExporter) Run

func (s RepoExporter) Run() (res RepoExporterRes)

easier to return struct here to sync we call this async and want result back in chan

type RepoExporterOpts

type RepoExporterOpts struct {
	Logger        hclog.Logger
	AgentConfig   cmdintegration.AgentConfig
	LastProcessed *jsonstore.Store
	Locs          fsconf.Locs
}

type RepoExporterRes

type RepoExporterRes struct {
	Data rpcdef.MutatedObjects
	Err  error
}

Jump to

Keyboard shortcuts

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