Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sysroot support #10

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Commits on Jul 27, 2017

  1. Handle being called with a nil *GVariant

    Signed-off-by: Sjoerd Simons <[email protected]>
    sjoerdsimons committed Jul 27, 2017
    Configuration menu
    Copy the full SHA
    71e47c0 View commit details
    Browse the repository at this point in the history
  2. Switch to more modern GObject strategy

    Update glibobject to follow the more current strategy by gogtk3 to have
    a go GObject embed a C.GObject rather then an unsafe pointer.
    
    Signed-off-by: Sjoerd Simons <[email protected]>
    sjoerdsimons committed Jul 27, 2017
    Configuration menu
    Copy the full SHA
    9e8cd19 View commit details
    Browse the repository at this point in the history
  3. Add minimal wrapper for GKeyfile

    This adds a wrapper for GKeyfile objects without any extra
    functionality, this is useful for passing GKeyfiles as returned by some
    ostree calls back to Go and pass them onto ostree calls taking them as
    an argument
    
    Signed-off-by: Sjoerd Simons <[email protected]>
    sjoerdsimons committed Jul 27, 2017
    Configuration menu
    Copy the full SHA
    839dda3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d5d8e84 View commit details
    Browse the repository at this point in the history
  5. Wrap ostree_repo_resolve_rev and ostree_repo_pull_with_options

    Add small wappers around those to ostree functions.
    
    OstreeAsyncProgress got a minimal wrapper so it can be used in the
    function signatures (but really can only be used as a nil value)
    
    ResolveRev is fully functional and a direct mirror of the C function,
    for PullWithOptions rather then passing an options GVariant a
    PullOptions go struct is defined which the wrapper converts to a
    GVariant to both work around the fact that GVariant isn't usable from Go
    and to make the API slightly nicer. For now only only the
    override-remote-name and refs options are support as those were the ones
    i happened to need in my usage.
    
    Signed-off-by: Sjoerd Simons <[email protected]>
    sjoerdsimons committed Jul 27, 2017
    Configuration menu
    Copy the full SHA
    36fd1d1 View commit details
    Browse the repository at this point in the history
  6. Run go fmt on commit.go

    sjoerdsimons committed Jul 27, 2017
    Configuration menu
    Copy the full SHA
    43ce323 View commit details
    Browse the repository at this point in the history
  7. Add wrapper for ostree_repo_remote_add

    Signed-off-by: Sjoerd Simons <[email protected]>
    sjoerdsimons committed Jul 27, 2017
    Configuration menu
    Copy the full SHA
    93e63e1 View commit details
    Browse the repository at this point in the history
  8. Add a wrapper around OstreeDeployment objects

    This simply creates a Go structure for it to allow from wrapping
    GObjects (created by ostree functions) into Go and back again. No usable
    functionality to inspect the objects from Go
    
    Signed-off-by: Sjoerd Simons <[email protected]>
    sjoerdsimons committed Jul 27, 2017
    Configuration menu
    Copy the full SHA
    4a4ff39 View commit details
    Browse the repository at this point in the history
  9. Wrap a subset of the ostree_sysroot_* functions

    Add a wrapper for OstreeSysroot and a bunch of its functions, this
    combined with the previous commits is enough to setup an ostree sysroot
    from an existing ostree repository from fresh using Go code.
    
    Signed-off-by: Sjoerd Simons <[email protected]>
    sjoerdsimons committed Jul 27, 2017
    Configuration menu
    Copy the full SHA
    9384974 View commit details
    Browse the repository at this point in the history