Documentation ¶
Overview ¶
Package otbuiltin contains all of the basic commands for creating and interacting with an ostree repository
Index ¶
- func Checkout(repoPath, destination, commit string, opts checkoutOptions) error
- func Init(path string, options initOptions) (bool, error)
- func NewCheckoutOptions() checkoutOptions
- func NewCommitOptions() commitOptions
- func NewInitOptions() initOptions
- func NewLogOptions() logOptions
- func NewPruneOptions() pruneOptions
- func Prune(repoPath string, options pruneOptions) (string, error)
- type LogEntry
- type OstreeDumpFlags
- type OstreeRepoTransactionStats
- type Repo
- func (repo *Repo) AbortTransaction() error
- func (repo *Repo) Commit(commitPath, branch string, opts commitOptions) (string, error)
- func (repo *Repo) CommitTransaction() (*OstreeRepoTransactionStats, error)
- func (repo *Repo) PrepareTransaction() (bool, error)
- func (repo *Repo) RegenerateSummary() error
- func (repo *Repo) TransactionSetRef(remote string, ref string, checksum string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Checkout ¶
Checks out a commit with the given ref from a repository at the location of repo path to to the destination. Returns an error if the checkout could not be processed
func Init ¶
Initializes a new ostree repository at the given path. Returns true if the repo exists at the location, regardless of whether it was initialized by the function or if it already existed. Returns an error if the repo could not be initialized
func NewCheckoutOptions ¶
func NewCheckoutOptions() checkoutOptions
Instantiates and returns a checkoutOptions struct with default values set
func NewCommitOptions ¶
func NewCommitOptions() commitOptions
Initializes a commitOptions struct and sets default values
func NewInitOptions ¶
func NewInitOptions() initOptions
Instantiates and returns an initOptions struct with default values set
func NewLogOptions ¶
func NewLogOptions() logOptions
Instantiates and returns a logOptions struct with default values set
func NewPruneOptions ¶
func NewPruneOptions() pruneOptions
Instantiates and returns a pruneOptions struct with default values set
Types ¶
type LogEntry ¶
type LogEntry struct { Checksum []byte Variant []byte Timestamp time.Time Subject string Body string }
Struct for the various pieces of data in a log entry
type OstreeDumpFlags ¶
type OstreeDumpFlags uint
const ( OSTREE_DUMP_NONE OstreeDumpFlags = 0 OSTREE_DUMP_RAW OstreeDumpFlags = 1 << iota )
type OstreeRepoTransactionStats ¶
type OstreeRepoTransactionStats struct {
// contains filtered or unexported fields
}
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func (*Repo) AbortTransaction ¶
func (*Repo) Commit ¶
Commits a directory, specified by commitPath, to an ostree repo as a given branch
func (*Repo) CommitTransaction ¶
func (repo *Repo) CommitTransaction() (*OstreeRepoTransactionStats, error)