-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e58ebf9
commit dfd9e22
Showing
2 changed files
with
21 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
package client | ||
|
||
import "context" | ||
import ( | ||
"context" | ||
|
||
"github.com/buildpacks/imgutil/local" | ||
) | ||
|
||
type AddManifestOptions struct { | ||
Index string | ||
Manifest string | ||
Architecture string | ||
OS string | ||
Variant string | ||
All bool | ||
Index string | ||
Manifest string | ||
All bool | ||
} | ||
|
||
func (c *Client) AddManifest(ctx context.Context, opts AddManifestOptions) error { | ||
|
||
err := local.AppendManifest(opts.Index, opts.Manifest) | ||
if err != nil { | ||
return err | ||
} | ||
|
||
return nil | ||
} |