-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…-aws-cdk Feature/#25 deploy aws cdk
- Loading branch information
Showing
13 changed files
with
275 additions
and
94 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
7 changes: 7 additions & 0 deletions
7
src/main/java/com/kumofactory/cloud/blueprint/domain/BluePrintScope.java
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,7 @@ | ||
package com.kumofactory.cloud.blueprint.domain; | ||
|
||
public enum BluePrintScope { | ||
PUBLIC, // 공개 ( 모든 사용자가 볼 수 있음 ) | ||
PRIVATE, // | ||
KUMOFACTORY // kumofactory 에서 만든 template | ||
} |
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
26 changes: 26 additions & 0 deletions
26
src/main/java/com/kumofactory/cloud/blueprint/dto/template/TemplatePreviewDto.java
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,26 @@ | ||
package com.kumofactory.cloud.blueprint.dto.template; | ||
|
||
import com.kumofactory.cloud.blueprint.domain.BluePrintScope; | ||
import com.kumofactory.cloud.blueprint.domain.aws.AwsBluePrint; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
@Builder | ||
public class TemplatePreviewDto { | ||
private String uuid; | ||
private String name; | ||
private BluePrintScope scope; | ||
private String thumbnail_url; | ||
|
||
public static TemplatePreviewDto mapper(AwsBluePrint bluePrint, String thumbnailUrl) { | ||
return TemplatePreviewDto.builder() | ||
.uuid(bluePrint.getUuid()) | ||
.name(bluePrint.getName()) | ||
.scope(bluePrint.getScope()) | ||
.thumbnail_url(thumbnailUrl) | ||
.build(); | ||
} | ||
} |
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
Oops, something went wrong.