Documentation ¶
Index ¶
- func New() auacornapi.Acorn
- type Impl
- func (r *Impl) AcornName() string
- func (r *Impl) AssembleAcorn(registry auacornapi.AcornRegistry) error
- func (r *Impl) Clone(ctx context.Context) error
- func (r *Impl) Commit(ctx context.Context, message string) (repository.CommitInfo, error)
- func (r *Impl) DeleteFile(filename string) error
- func (r *Impl) Discard(ctx context.Context)
- func (r *Impl) IsCommitKnown(hash string) bool
- func (r *Impl) IsMetadata() bool
- func (r *Impl) LastUpdated() time.Time
- func (r *Impl) MkdirAll(path string) error
- func (r *Impl) NewPulledCommits() []repository.CommitInfo
- func (r *Impl) Pull(ctx context.Context) error
- func (r *Impl) Push(ctx context.Context) error
- func (r *Impl) ReadContents(filename string) string
- func (r *Impl) ReadDir(path string) ([]os.FileInfo, error)
- func (r *Impl) ReadFile(filename string) ([]byte, repository.CommitInfo, error)
- func (r *Impl) Reset()
- func (r *Impl) SetupAcorn(registry auacornapi.AcornRegistry) error
- func (r *Impl) Stat(filename string) (os.FileInfo, error)
- func (r *Impl) TeardownAcorn(registry auacornapi.AcornRegistry) error
- func (r *Impl) WriteFile(filename string, contents []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Impl ¶
type Impl struct { Fs billy.Filesystem Now func() time.Time FilesWritten map[string]bool FilesCommitted map[string]bool Pushed bool SimulateRemoteFailure bool SimulateConcurrencyFailure bool SimulateUnchangedFailure bool }
func (*Impl) AssembleAcorn ¶
func (*Impl) Commit ¶
func (r *Impl) Commit(ctx context.Context, message string) (repository.CommitInfo, error)
func (*Impl) DeleteFile ¶
func (*Impl) IsCommitKnown ¶
func (*Impl) IsMetadata ¶
func (*Impl) LastUpdated ¶
func (*Impl) NewPulledCommits ¶
func (r *Impl) NewPulledCommits() []repository.CommitInfo
func (*Impl) ReadContents ¶
func (*Impl) ReadFile ¶
func (r *Impl) ReadFile(filename string) ([]byte, repository.CommitInfo, error)
func (*Impl) SetupAcorn ¶
func (*Impl) TeardownAcorn ¶
Click to show internal directories.
Click to hide internal directories.