From df6cc8550d157c427c59d2b4c38c8f933e09e5de Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Thu, 25 Jan 2024 15:35:48 +0100 Subject: [PATCH] bindings: secrets uses entities/types Signed-off-by: Giuseppe Scrivano --- pkg/bindings/secrets/secrets.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkg/bindings/secrets/secrets.go b/pkg/bindings/secrets/secrets.go index 2cd392a144..0413fbab2f 100644 --- a/pkg/bindings/secrets/secrets.go +++ b/pkg/bindings/secrets/secrets.go @@ -6,13 +6,13 @@ import ( "net/http" "github.com/containers/podman/v4/pkg/bindings" - "github.com/containers/podman/v4/pkg/domain/entities" + entitiesTypes "github.com/containers/podman/v4/pkg/domain/entities/types" ) // List returns information about existing secrets in the form of a slice. -func List(ctx context.Context, options *ListOptions) ([]*entities.SecretInfoReport, error) { +func List(ctx context.Context, options *ListOptions) ([]*entitiesTypes.SecretInfoReport, error) { var ( - secrs []*entities.SecretInfoReport + secrs []*entitiesTypes.SecretInfoReport ) conn, err := bindings.GetClient(ctx) if err != nil { @@ -32,12 +32,12 @@ func List(ctx context.Context, options *ListOptions) ([]*entities.SecretInfoRepo } // Inspect returns low-level information about a secret. -func Inspect(ctx context.Context, nameOrID string, options *InspectOptions) (*entities.SecretInfoReport, error) { +func Inspect(ctx context.Context, nameOrID string, options *InspectOptions) (*entitiesTypes.SecretInfoReport, error) { if options == nil { options = new(InspectOptions) } var ( - inspect *entities.SecretInfoReport + inspect *entitiesTypes.SecretInfoReport ) conn, err := bindings.GetClient(ctx) if err != nil { @@ -72,9 +72,9 @@ func Remove(ctx context.Context, nameOrID string) error { } // Create creates a secret given some data -func Create(ctx context.Context, reader io.Reader, options *CreateOptions) (*entities.SecretCreateReport, error) { +func Create(ctx context.Context, reader io.Reader, options *CreateOptions) (*entitiesTypes.SecretCreateReport, error) { var ( - create *entities.SecretCreateReport + create *entitiesTypes.SecretCreateReport ) conn, err := bindings.GetClient(ctx) if err != nil {