Skip to content

Commit

Permalink
refactor: change Interface name to start with I
Browse files Browse the repository at this point in the history
  • Loading branch information
EyalPazz committed Feb 9, 2025
1 parent 764be19 commit 5e5b948
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/factories/registry/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

type RegistryFactory struct{}

func (f *RegistryFactory) InitializeRegistry(ctx context.Context, registryType, region string) (types.ContainerRegistry, error) {
func (f *RegistryFactory) InitializeRegistry(ctx context.Context, registryType, region string) (types.IContainerRegistry, error) {
switch registryType {
case "ecr":
client, err := NewECRRegistryClient(ctx, region)
Expand Down
2 changes: 1 addition & 1 deletion internal/types/container_registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/aws/aws-sdk-go-v2/service/ecr/types"
)

type ContainerRegistry interface {
type IContainerRegistry interface {
GetLatestImage(ctx context.Context, repositoryName string) (*types.ImageDetail, error)
ImageExists(ctx context.Context, repositoryName string, imageTag string) error
}

0 comments on commit 5e5b948

Please sign in to comment.