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

API: Support running gadgets from files and memory #2853

Merged
merged 4 commits into from
May 28, 2024

Commits on May 27, 2024

  1. Allow running gadgets from file or memory

    This commit updates few interfaces and functions signatures
    to allow to run gadgets from a file or from memory when using
    the Golang API.
    
    Specifically:
    - Update the gadget context to allow passing an oras target.
    - Update GetManifestForHost() and GetContentFromDescriptor() to take
      the target instead of always using the local one store.
    
    Signed-off-by: Mauricio Vásquez <mauriciov@microsoft.com>
    mauriciovasquezbernal committed May 27, 2024
    Configuration menu
    Copy the full SHA
    d01af92 View commit details
    Browse the repository at this point in the history
  2. examples: Create go module

    This avoids dependencies of the examples being propagated to the main
    go.mod file.
    
    This commit also adds a go.work file that forces the examples to use
    the current tree module of inspektor gadget instead of the version
    defined in their go.mod file.
    
    Signed-off-by: Mauricio Vásquez <mauriciov@microsoft.com>
    mauriciovasquezbernal committed May 27, 2024
    Configuration menu
    Copy the full SHA
    71f3d26 View commit details
    Browse the repository at this point in the history
  3. examples: Run a gadget from a tarball

    Signed-off-by: Mauricio Vásquez <mauriciov@microsoft.com>
    mauriciovasquezbernal committed May 27, 2024
    Configuration menu
    Copy the full SHA
    9955ff2 View commit details
    Browse the repository at this point in the history
  4. examples: Embed a gadget within the application

    Signed-off-by: Mauricio Vásquez <mauriciov@microsoft.com>
    mauriciovasquezbernal committed May 27, 2024
    Configuration menu
    Copy the full SHA
    bff4dcc View commit details
    Browse the repository at this point in the history