Skip to content

Commit

Permalink
Support yaml output for 'registry list'
Browse files Browse the repository at this point in the history
Signed-off-by: JianMinTang <jmtangcs@gmail.com>

Use gofmt to format all code

Signed-off-by: JianMinTang <jmtangcs@gmail.com>

fix: Support YAML output for additional commands

Signed-off-by: JianMinTang <jmtangcs@gmail.com>

fix: Implement a generic function to format output

Signed-off-by: JianMinTang <jmtangcs@gmail.com>

chore: fix the problem about golangci-lint

Signed-off-by: JianMinTang <jmtangcs@gmail.com>
  • Loading branch information
Standing-Man committed Nov 20, 2024
1 parent 90c957d commit 8262575
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions dagger/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ const (
)

func New(
// Local or remote directory with source code, defaults to "./"
// +optional
// +defaultPath="./"
// Local or remote directory with source code, defaults to "./"
// +optional
// +defaultPath="./"
Expand Down Expand Up @@ -127,8 +124,6 @@ func (m *HarborCli) PublishImage(
registry, registryUsername string,
// +optional
// +default=["latest"]
// +optional
// +default=["latest"]
imageTags []string,
registryPassword *dagger.Secret) []string {
builders := m.build(ctx)
Expand Down Expand Up @@ -260,13 +255,10 @@ func (m *HarborCli) PublishImageAndSign(
registryPassword *dagger.Secret,
imageTags []string,
// +optional
// +optional
githubToken *dagger.Secret,
// +optional
// +optional
actionsIdTokenRequestToken *dagger.Secret,
// +optional
// +optional
actionsIdTokenRequestUrl string,
) (string, error) {

Expand All @@ -290,14 +282,11 @@ func (m *HarborCli) PublishImageAndSign(

// Sign signs a container image using Cosign, works also with GitHub Actions
func (m *HarborCli) Sign(ctx context.Context,
// +optional
// +optional
githubToken *dagger.Secret,
// +optional
// +optional
actionsIdTokenRequestUrl string,
// +optional
// +optional
actionsIdTokenRequestToken *dagger.Secret,
registryUsername string,
registryPassword *dagger.Secret,
Expand Down

0 comments on commit 8262575

Please sign in to comment.