Documentation ¶
Index ¶
- Constants
- Variables
- func Exit(err error, codes ...int)
- func Run()
- type Commit
- type FileOp
- type FindField
- type Hash
- type Repository
- func (repository Repository) AddCommit(commit Commit) error
- func (repository Repository) FetchBlobHashes() (blobs []string, err error)
- func (r Repository) Init() error
- func (repository Repository) LoadCommit(commitId string) (Commit, error)
- func (repository Repository) LoadCommitFromAlias(alias string) (Commit, error)
- func (repository Repository) LoadLatestCommit() (Commit, error)
- func (repository Repository) LoadLatestCommitId() (string, error)
- func (r Repository) LoadRestoreRequest(restoreRequestAlias string) (restoreRequestId string, restoreRequest RestoreRequest, err error)
- func (repository Repository) LoadTags(commitId string) (tags []Tag, depth int, err error)
- func (repository Repository) LoadTimeline() ([]string, error)
- func (repository Repository) LoadTimestamps(commitId string) ([]Tag, error)
- func (repository Repository) ReceiveRemoteBlobs(tags []Tag) (err error)
- func (r Repository) ReceiveRemoteBlobsRequest(tags []Tag, validDays int32) (blobsRequested []string, err error)
- func (repository Repository) SendLocalBlobs(tags []Tag) (err error)
- func (repository Repository) String() string
- func (r Repository) WriteRestoreRequest(restoreRequestId string, restoreRequest RestoreRequest) error
- func (repository Repository) WriteTags(commit Commit, base *Commit) error
- func (repository Repository) WriteTimeline(timeline []string) error
- type RepositoryLocation
- type RepositoryLocationFile
- type RepositoryLocationS3
- func (r RepositoryLocationS3) ReceiveRemoteBlobs(tags []Tag) (err error)
- func (r RepositoryLocationS3) ReceiveRemoteBlobsRequest(tags []Tag, validDays int32) (blobsRequested []string, err error)
- func (r RepositoryLocationS3) SendLocalBlobs(tags []Tag) (err error)
- func (r RepositoryLocationS3) String() string
- type RestoreRequest
- type S3BucketClient
- type S3Op
- type Tag
Constants ¶
View Source
const COMMIT_EXTENSION_DEPTH_MAX = 9
Variables ¶
View Source
var ( RootCmd = &cobra.Command{ Use: "arciv", Run: func(cmd *cobra.Command, args []string) { cmd.Usage() }, } )
View Source
var RunningFromLatestRequestOption bool
View Source
var RunningFromRequestOption string
Functions ¶
Types ¶
type Repository ¶
type Repository struct { Name string Location RepositoryLocation }
func SelfRepo ¶
func SelfRepo() Repository
func (Repository) AddCommit ¶
func (repository Repository) AddCommit(commit Commit) error
func (Repository) FetchBlobHashes ¶
func (repository Repository) FetchBlobHashes() (blobs []string, err error)
func (Repository) Init ¶
func (r Repository) Init() error
func (Repository) LoadCommit ¶
func (repository Repository) LoadCommit(commitId string) (Commit, error)
func (Repository) LoadCommitFromAlias ¶
func (repository Repository) LoadCommitFromAlias(alias string) (Commit, error)
func (Repository) LoadLatestCommit ¶
func (repository Repository) LoadLatestCommit() (Commit, error)
func (Repository) LoadLatestCommitId ¶
func (repository Repository) LoadLatestCommitId() (string, error)
func (Repository) LoadRestoreRequest ¶
func (r Repository) LoadRestoreRequest(restoreRequestAlias string) (restoreRequestId string, restoreRequest RestoreRequest, err error)
func (Repository) LoadTags ¶
func (repository Repository) LoadTags(commitId string) (tags []Tag, depth int, err error)
func (Repository) LoadTimeline ¶
func (repository Repository) LoadTimeline() ([]string, error)
func (Repository) LoadTimestamps ¶
func (repository Repository) LoadTimestamps(commitId string) ([]Tag, error)
func (Repository) ReceiveRemoteBlobs ¶
func (repository Repository) ReceiveRemoteBlobs(tags []Tag) (err error)
receive to .arciv/blob
func (Repository) ReceiveRemoteBlobsRequest ¶
func (r Repository) ReceiveRemoteBlobsRequest(tags []Tag, validDays int32) (blobsRequested []string, err error)
func (Repository) SendLocalBlobs ¶
func (repository Repository) SendLocalBlobs(tags []Tag) (err error)
send from repository's root directory
func (Repository) String ¶
func (repository Repository) String() string
func (Repository) WriteRestoreRequest ¶
func (r Repository) WriteRestoreRequest(restoreRequestId string, restoreRequest RestoreRequest) error
func (Repository) WriteTags ¶
func (repository Repository) WriteTags(commit Commit, base *Commit) error
func (Repository) WriteTimeline ¶
func (repository Repository) WriteTimeline(timeline []string) error
type RepositoryLocation ¶
type RepositoryLocationFile ¶
type RepositoryLocationFile struct {
Path string
}
func (RepositoryLocationFile) ReceiveRemoteBlobs ¶
func (repositoryLocationFile RepositoryLocationFile) ReceiveRemoteBlobs(tags []Tag) (err error)
func (RepositoryLocationFile) SendLocalBlobs ¶
func (repositoryLocationFile RepositoryLocationFile) SendLocalBlobs(tags []Tag) (err error)
func (RepositoryLocationFile) String ¶
func (r RepositoryLocationFile) String() string
type RepositoryLocationS3 ¶
func (RepositoryLocationS3) ReceiveRemoteBlobs ¶
func (r RepositoryLocationS3) ReceiveRemoteBlobs(tags []Tag) (err error)
func (RepositoryLocationS3) ReceiveRemoteBlobsRequest ¶
func (r RepositoryLocationS3) ReceiveRemoteBlobsRequest(tags []Tag, validDays int32) (blobsRequested []string, err error)
func (RepositoryLocationS3) SendLocalBlobs ¶
func (r RepositoryLocationS3) SendLocalBlobs(tags []Tag) (err error)
func (RepositoryLocationS3) String ¶
func (r RepositoryLocationS3) String() string
type RestoreRequest ¶
type RestoreRequest struct { Repository Repository ValidDays int32 Commit Commit Blobs []string }
func (RestoreRequest) String ¶
func (r RestoreRequest) String() (str string)
func (RestoreRequest) Strings ¶
func (r RestoreRequest) Strings() []string
type S3BucketClient ¶
Source Files ¶
- commands.go
- commands_diff.go
- commands_init.go
- commands_log.go
- commands_repository.go
- commands_restore.go
- commands_s3lowaccess.go
- commands_stash.go
- commands_status.go
- commands_store.go
- commands_unstash.go
- commands_version.go
- commit.go
- file_op.go
- hash.go
- repository.go
- repositoryLocationFile.go
- repositoryLocationS3.go
- restore_request.go
- s3_op.go
- tag.go
Click to show internal directories.
Click to hide internal directories.