-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add logger interface * add error logging * add utility for making k1 directory that returns an error Signed-off-by: nathan-nicholson <[email protected]>
- Loading branch information
1 parent
c4816c2
commit af8f242
Showing
9 changed files
with
185 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package aws | ||
|
||
import ( | ||
"io" | ||
|
||
"github.com/konstructio/kubefirst/internal/common" | ||
) | ||
|
||
type AwsService struct { | ||
logger common.Logger | ||
writer io.Writer | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package common | ||
|
||
type Logger interface { | ||
Debug(msg string, args ...any) | ||
Info(msg string, args ...any) | ||
Warn(msg string, args ...any) | ||
Error(msg string, args ...any) | ||
} |
Oops, something went wrong.