Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Change path for image packages
Browse files Browse the repository at this point in the history
Signed-off-by: Johnson Shi <[email protected]>
  • Loading branch information
johnsonshi committed Aug 5, 2022
1 parent aa4ff02 commit eceed78
Show file tree
Hide file tree
Showing 12 changed files with 135 additions and 135 deletions.
8 changes: 4 additions & 4 deletions cmd/cli/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ import (
intoto "github.com/in-toto/in-toto-golang/in_toto"
"github.com/spf13/cobra"

"github.com/johnsonshi/image-manifest-layer-history/pkg/image/client"
"github.com/johnsonshi/image-manifest-layer-history/pkg/image/history"
imagehistoryslsa "github.com/johnsonshi/image-manifest-layer-history/pkg/image/history/slsa"
"github.com/johnsonshi/image-manifest-layer-history/image/client"
"github.com/johnsonshi/image-manifest-layer-history/image/history"
"github.com/johnsonshi/image-manifest-layer-history/image/slsa"
)

type generateCmdOpts struct {
Expand Down Expand Up @@ -152,7 +152,7 @@ func (opts *generateCmdOpts) writeManifestLayerHistory(manifestLayerHistory []hi
var imageSlsaProvenanceStatements []*intoto.ProvenanceStatement
timeNow := time.Now()
for _, layerHistory := range manifestLayerHistory {
layerSlsaProvenance := imagehistoryslsa.ImageManifestLayerSlsaProvenance{
layerSlsaProvenance := slsa.ImageManifestLayerSlsaProvenance{
LayerHistory: layerHistory,
BuilderID: "URI indicating the builder identity. E.g. pipeline-name",
BuildType: "URI indicating what type of build was performed. E.g. build-type-dockerfile-build",
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
},
"metadata": {
"buildInvocationID": "Globally Unique Build Invocation ID. Definition: Identifies this particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The exact meaning and format is defined by builder.id; by default it is treated as opaque and case-sensitive. The value SHOULD be globally unique.",
"buildStartedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildFinishedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildStartedOn": "2022-08-05T11:23:12.191738502-07:00",
"buildFinishedOn": "2022-08-05T11:23:12.191738502-07:00",
"completeness": {
"parameters": false,
"environment": false,
Expand Down Expand Up @@ -116,8 +116,8 @@
},
"metadata": {
"buildInvocationID": "Globally Unique Build Invocation ID. Definition: Identifies this particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The exact meaning and format is defined by builder.id; by default it is treated as opaque and case-sensitive. The value SHOULD be globally unique.",
"buildStartedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildFinishedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildStartedOn": "2022-08-05T11:23:12.191738502-07:00",
"buildFinishedOn": "2022-08-05T11:23:12.191738502-07:00",
"completeness": {
"parameters": false,
"environment": false,
Expand Down Expand Up @@ -180,8 +180,8 @@
},
"metadata": {
"buildInvocationID": "Globally Unique Build Invocation ID. Definition: Identifies this particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The exact meaning and format is defined by builder.id; by default it is treated as opaque and case-sensitive. The value SHOULD be globally unique.",
"buildStartedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildFinishedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildStartedOn": "2022-08-05T11:23:12.191738502-07:00",
"buildFinishedOn": "2022-08-05T11:23:12.191738502-07:00",
"completeness": {
"parameters": false,
"environment": false,
Expand Down Expand Up @@ -244,8 +244,8 @@
},
"metadata": {
"buildInvocationID": "Globally Unique Build Invocation ID. Definition: Identifies this particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The exact meaning and format is defined by builder.id; by default it is treated as opaque and case-sensitive. The value SHOULD be globally unique.",
"buildStartedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildFinishedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildStartedOn": "2022-08-05T11:23:12.191738502-07:00",
"buildFinishedOn": "2022-08-05T11:23:12.191738502-07:00",
"completeness": {
"parameters": false,
"environment": false,
Expand Down Expand Up @@ -308,8 +308,8 @@
},
"metadata": {
"buildInvocationID": "Globally Unique Build Invocation ID. Definition: Identifies this particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The exact meaning and format is defined by builder.id; by default it is treated as opaque and case-sensitive. The value SHOULD be globally unique.",
"buildStartedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildFinishedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildStartedOn": "2022-08-05T11:23:12.191738502-07:00",
"buildFinishedOn": "2022-08-05T11:23:12.191738502-07:00",
"completeness": {
"parameters": false,
"environment": false,
Expand Down Expand Up @@ -372,8 +372,8 @@
},
"metadata": {
"buildInvocationID": "Globally Unique Build Invocation ID. Definition: Identifies this particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The exact meaning and format is defined by builder.id; by default it is treated as opaque and case-sensitive. The value SHOULD be globally unique.",
"buildStartedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildFinishedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildStartedOn": "2022-08-05T11:23:12.191738502-07:00",
"buildFinishedOn": "2022-08-05T11:23:12.191738502-07:00",
"completeness": {
"parameters": false,
"environment": false,
Expand Down Expand Up @@ -436,8 +436,8 @@
},
"metadata": {
"buildInvocationID": "Globally Unique Build Invocation ID. Definition: Identifies this particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The exact meaning and format is defined by builder.id; by default it is treated as opaque and case-sensitive. The value SHOULD be globally unique.",
"buildStartedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildFinishedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildStartedOn": "2022-08-05T11:23:12.191738502-07:00",
"buildFinishedOn": "2022-08-05T11:23:12.191738502-07:00",
"completeness": {
"parameters": false,
"environment": false,
Expand Down Expand Up @@ -500,8 +500,8 @@
},
"metadata": {
"buildInvocationID": "Globally Unique Build Invocation ID. Definition: Identifies this particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The exact meaning and format is defined by builder.id; by default it is treated as opaque and case-sensitive. The value SHOULD be globally unique.",
"buildStartedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildFinishedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildStartedOn": "2022-08-05T11:23:12.191738502-07:00",
"buildFinishedOn": "2022-08-05T11:23:12.191738502-07:00",
"completeness": {
"parameters": false,
"environment": false,
Expand Down Expand Up @@ -564,8 +564,8 @@
},
"metadata": {
"buildInvocationID": "Globally Unique Build Invocation ID. Definition: Identifies this particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The exact meaning and format is defined by builder.id; by default it is treated as opaque and case-sensitive. The value SHOULD be globally unique.",
"buildStartedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildFinishedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildStartedOn": "2022-08-05T11:23:12.191738502-07:00",
"buildFinishedOn": "2022-08-05T11:23:12.191738502-07:00",
"completeness": {
"parameters": false,
"environment": false,
Expand Down Expand Up @@ -628,8 +628,8 @@
},
"metadata": {
"buildInvocationID": "Globally Unique Build Invocation ID. Definition: Identifies this particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The exact meaning and format is defined by builder.id; by default it is treated as opaque and case-sensitive. The value SHOULD be globally unique.",
"buildStartedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildFinishedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildStartedOn": "2022-08-05T11:23:12.191738502-07:00",
"buildFinishedOn": "2022-08-05T11:23:12.191738502-07:00",
"completeness": {
"parameters": false,
"environment": false,
Expand Down Expand Up @@ -692,8 +692,8 @@
},
"metadata": {
"buildInvocationID": "Globally Unique Build Invocation ID. Definition: Identifies this particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The exact meaning and format is defined by builder.id; by default it is treated as opaque and case-sensitive. The value SHOULD be globally unique.",
"buildStartedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildFinishedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildStartedOn": "2022-08-05T11:23:12.191738502-07:00",
"buildFinishedOn": "2022-08-05T11:23:12.191738502-07:00",
"completeness": {
"parameters": false,
"environment": false,
Expand Down Expand Up @@ -756,8 +756,8 @@
},
"metadata": {
"buildInvocationID": "Globally Unique Build Invocation ID. Definition: Identifies this particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The exact meaning and format is defined by builder.id; by default it is treated as opaque and case-sensitive. The value SHOULD be globally unique.",
"buildStartedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildFinishedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildStartedOn": "2022-08-05T11:23:12.191738502-07:00",
"buildFinishedOn": "2022-08-05T11:23:12.191738502-07:00",
"completeness": {
"parameters": false,
"environment": false,
Expand Down Expand Up @@ -820,8 +820,8 @@
},
"metadata": {
"buildInvocationID": "Globally Unique Build Invocation ID. Definition: Identifies this particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The exact meaning and format is defined by builder.id; by default it is treated as opaque and case-sensitive. The value SHOULD be globally unique.",
"buildStartedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildFinishedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildStartedOn": "2022-08-05T11:23:12.191738502-07:00",
"buildFinishedOn": "2022-08-05T11:23:12.191738502-07:00",
"completeness": {
"parameters": false,
"environment": false,
Expand Down Expand Up @@ -887,8 +887,8 @@
},
"metadata": {
"buildInvocationID": "Globally Unique Build Invocation ID. Definition: Identifies this particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The exact meaning and format is defined by builder.id; by default it is treated as opaque and case-sensitive. The value SHOULD be globally unique.",
"buildStartedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildFinishedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildStartedOn": "2022-08-05T11:23:12.191738502-07:00",
"buildFinishedOn": "2022-08-05T11:23:12.191738502-07:00",
"completeness": {
"parameters": false,
"environment": false,
Expand Down Expand Up @@ -953,8 +953,8 @@
},
"metadata": {
"buildInvocationID": "Globally Unique Build Invocation ID. Definition: Identifies this particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The exact meaning and format is defined by builder.id; by default it is treated as opaque and case-sensitive. The value SHOULD be globally unique.",
"buildStartedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildFinishedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildStartedOn": "2022-08-05T11:23:12.191738502-07:00",
"buildFinishedOn": "2022-08-05T11:23:12.191738502-07:00",
"completeness": {
"parameters": false,
"environment": false,
Expand Down Expand Up @@ -1020,8 +1020,8 @@
},
"metadata": {
"buildInvocationID": "Globally Unique Build Invocation ID. Definition: Identifies this particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The exact meaning and format is defined by builder.id; by default it is treated as opaque and case-sensitive. The value SHOULD be globally unique.",
"buildStartedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildFinishedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildStartedOn": "2022-08-05T11:23:12.191738502-07:00",
"buildFinishedOn": "2022-08-05T11:23:12.191738502-07:00",
"completeness": {
"parameters": false,
"environment": false,
Expand Down Expand Up @@ -1086,8 +1086,8 @@
},
"metadata": {
"buildInvocationID": "Globally Unique Build Invocation ID. Definition: Identifies this particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The exact meaning and format is defined by builder.id; by default it is treated as opaque and case-sensitive. The value SHOULD be globally unique.",
"buildStartedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildFinishedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildStartedOn": "2022-08-05T11:23:12.191738502-07:00",
"buildFinishedOn": "2022-08-05T11:23:12.191738502-07:00",
"completeness": {
"parameters": false,
"environment": false,
Expand Down Expand Up @@ -1153,8 +1153,8 @@
},
"metadata": {
"buildInvocationID": "Globally Unique Build Invocation ID. Definition: Identifies this particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The exact meaning and format is defined by builder.id; by default it is treated as opaque and case-sensitive. The value SHOULD be globally unique.",
"buildStartedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildFinishedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildStartedOn": "2022-08-05T11:23:12.191738502-07:00",
"buildFinishedOn": "2022-08-05T11:23:12.191738502-07:00",
"completeness": {
"parameters": false,
"environment": false,
Expand Down Expand Up @@ -1219,8 +1219,8 @@
},
"metadata": {
"buildInvocationID": "Globally Unique Build Invocation ID. Definition: Identifies this particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The exact meaning and format is defined by builder.id; by default it is treated as opaque and case-sensitive. The value SHOULD be globally unique.",
"buildStartedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildFinishedOn": "2022-08-05T11:08:58.326691754-07:00",
"buildStartedOn": "2022-08-05T11:23:12.191738502-07:00",
"buildFinishedOn": "2022-08-05T11:23:12.191738502-07:00",
"completeness": {
"parameters": false,
"environment": false,
Expand Down
Loading

0 comments on commit eceed78

Please sign in to comment.