-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
represent all
content
as oci layouts (artifact.OCI
interface), ad…
…d blob caching and ephemeral stores (#59) * represent all content as artifact.OCI interface and manipulate/add all content using oci layouts * initial brew taps and macos universal binary * change mediaType to string for better compatibility with other libraries * ensure config is minimally viable for file/charts * add transparent layer caching (filesystem) to artifact operations, clean up layer interface used by file/chart * add store list and store copy commands Signed-off-by: Josh Wolf <josh@joshwolf.dev>
- Loading branch information
Showing
36 changed files
with
1,688 additions
and
586 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,4 @@ dist/ | |
tmp/ | ||
bin/ | ||
pkg.yaml | ||
store/ |
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
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
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package download | ||
|
||
import ( | ||
"context" | ||
"testing" | ||
) | ||
|
||
func TestCmd(t *testing.T) { | ||
ctx := context.Background() | ||
|
||
type args struct { | ||
ctx context.Context | ||
o *Opts | ||
reference string | ||
} | ||
tests := []struct { | ||
name string | ||
args args | ||
wantErr bool | ||
}{ | ||
{ | ||
name: "should work", | ||
args: args{ | ||
ctx: ctx, | ||
o: &Opts{DestinationDir: ""}, | ||
reference: "localhost:3000/hauler/file.txt:latest", | ||
}, | ||
wantErr: false, | ||
}, | ||
} | ||
for _, tt := range tests { | ||
t.Run(tt.name, func(t *testing.T) { | ||
if err := Cmd(tt.args.ctx, tt.args.o, tt.args.reference); (err != nil) != tt.wantErr { | ||
t.Errorf("Cmd() error = %v, wantErr %v", err, tt.wantErr) | ||
} | ||
}) | ||
} | ||
} |
Oops, something went wrong.