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 AsyncProgress
- type Deployment
- type LogEntry
- type OstreeDumpFlags
- type OstreeRepoTransactionStats
- type PullOptions
- type RemoteOptions
- 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) PullWithOptions(remoteName string, options PullOptions, progress *AsyncProgress, ...) error
- func (repo *Repo) RegenerateSummary() error
- func (repo *Repo) RemoteAdd(name, url string, options RemoteOptions, cancellable *glib.GCancellable) error
- func (repo *Repo) ResolveRev(refspec string, allowNoent bool) (string, error)
- func (repo *Repo) TransactionSetRef(remote string, ref string, checksum string)
- type Sysroot
- func (s *Sysroot) DeployTree(osname, revision string, origin *glib.GKeyFile, ...) (*Deployment, error)
- func (s *Sysroot) EnsureInitialized(cancellable *glib.GCancellable) error
- func (s *Sysroot) InitOsname(name string, cancellable *glib.GCancellable) error
- func (s Sysroot) InitializeFS() error
- func (s *Sysroot) Load(cancellable *glib.GCancellable) error
- func (s *Sysroot) OriginNewFromRefspec(refspec string) *glib.GKeyFile
- func (s Sysroot) Path() string
- func (s *Sysroot) PrepareCleanup(cancellable *glib.GCancellable) error
- func (s *Sysroot) Repo(cancellable *glib.GCancellable) (*Repo, error)
- func (s *Sysroot) SimpleWriteDeployment(osname string, newDeployment, mergeDeployment *Deployment, ...) error
- type SysrootSimpleWriteDeploymentFlags
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 AsyncProgress ¶
type Deployment ¶
func (*Deployment) Csum ¶
func (d *Deployment) Csum() string
func (*Deployment) Deployserial ¶
func (d *Deployment) Deployserial() int
func (*Deployment) OriginRelpath ¶
func (d *Deployment) OriginRelpath() string
func (*Deployment) Osname ¶
func (d *Deployment) Osname() string
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 PullOptions ¶
type RemoteOptions ¶
type RemoteOptions struct { ContentUrl string "contenturl" Proxy string NoGpgVerify bool "gpg-verify, invert" NoGpgVerifySummary bool "gpg-verify-summary, invert" TlsPermissive bool TlsClientCertPath string TlsClientKeyPath string TlsCaPath string UnconfiguredState string MinFreeSpacePercent string CollectionId string }
type Repo ¶
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)
func (*Repo) PrepareTransaction ¶
func (*Repo) PullWithOptions ¶
func (repo *Repo) PullWithOptions(remoteName string, options PullOptions, progress *AsyncProgress, cancellable *glib.GCancellable) error
func (*Repo) RegenerateSummary ¶
func (*Repo) RemoteAdd ¶
func (repo *Repo) RemoteAdd(name, url string, options RemoteOptions, cancellable *glib.GCancellable) error
func (*Repo) ResolveRev ¶
type Sysroot ¶
func NewSysroot ¶
func (*Sysroot) DeployTree ¶
func (s *Sysroot) DeployTree(osname, revision string, origin *glib.GKeyFile, providedMergeDeployment *Deployment, overrideKernelArgv []string, cancellable *glib.GCancellable) (*Deployment, error)
func (*Sysroot) EnsureInitialized ¶
func (s *Sysroot) EnsureInitialized(cancellable *glib.GCancellable) error
func (*Sysroot) InitOsname ¶
func (s *Sysroot) InitOsname(name string, cancellable *glib.GCancellable) error
func (Sysroot) InitializeFS ¶
func (*Sysroot) OriginNewFromRefspec ¶
func (*Sysroot) PrepareCleanup ¶
func (s *Sysroot) PrepareCleanup(cancellable *glib.GCancellable) error
func (*Sysroot) SimpleWriteDeployment ¶
func (s *Sysroot) SimpleWriteDeployment(osname string, newDeployment, mergeDeployment *Deployment, flags SysrootSimpleWriteDeploymentFlags, cancellable *glib.GCancellable) error
type SysrootSimpleWriteDeploymentFlags ¶
type SysrootSimpleWriteDeploymentFlags int
const ( OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NONE SysrootSimpleWriteDeploymentFlags = 1 << iota OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN SysrootSimpleWriteDeploymentFlags = 1 << iota OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NOT_DEFAULT SysrootSimpleWriteDeploymentFlags = 1 << iota OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NO_CLEAN SysrootSimpleWriteDeploymentFlags = 1 << iota )