Skip to content

Commit

Permalink
storage: fix: minor issues in godoc
Browse files Browse the repository at this point in the history
  • Loading branch information
fho committed Jun 20, 2024
1 parent 4aa3a1c commit 06d8048
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ type Storer interface {
Inputs(ctx context.Context, taskRunID int) (*Inputs, error)
Outputs(ctx context.Context, taskRunID int) ([]*Output, error)

// CreateRelease creates a new release called releaseName, that consists of the the passed task runs.
// CreateRelease creates a new release called releaseName, that
// consists of the passed task runs.
// Metadata is arbitrary data stored together with the release, it is
// optional and can be nil.
CreateRelease(_ context.Context, releaseName string, taskRunIDs []int, metadata io.Reader) error
Expand All @@ -170,6 +171,6 @@ type Storer interface {
ReleaseTaskRuns(ctx context.Context, releaseName string) ([]*ReleaseTaskRunsResult, error)
// ReleaseMetadata returns the metadata of a release.
// If the release does not exist ErrNotExist is returned.
// If the release has no metadata the returned []byte is empty.
// If the release has no metadata the returned []byte is empty.
ReleaseMetadata(ctx context.Context, releaseName string) ([]byte, error)
}

0 comments on commit 06d8048

Please sign in to comment.