Skip to content

Commit

Permalink
Create an EKS client with an interface for mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Waring committed Nov 12, 2023
1 parent 82301db commit 1aeaaa9
Show file tree
Hide file tree
Showing 2 changed files with 2,305 additions and 0 deletions.
23 changes: 23 additions & 0 deletions pkg/aws/services/eks.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package services

import (
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/eks"
"github.com/aws/aws-sdk-go/service/eks/eksiface"
)

type EKS interface {
eksiface.EKSAPI
}

// NewEKS constructs new EKS implementation.
func NewEKS(session *session.Session) EKS {
return &defaultEKS{
EKSAPI: eks.New(session),
}
}

// default implementation for EKS.
type defaultEKS struct {
eksiface.EKSAPI
}
Loading

0 comments on commit 1aeaaa9

Please sign in to comment.