-
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.
Versao funcional salvando os recursos
- Loading branch information
Showing
5 changed files
with
60 additions
and
16 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
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,40 @@ | ||
package builder | ||
|
||
import "github.com/jfonseca85/controlplaneagent/internal/core/domain/cloudcontrolmdl" | ||
|
||
type newCloudControlModel struct { | ||
model cloudcontrolmdl.Model | ||
} | ||
|
||
func UmCloudControlModel() *newCloudControlModel { | ||
return &newCloudControlModel{} | ||
} | ||
|
||
func (c *newCloudControlModel) ComDesiredState(desiredState string) *newCloudControlModel { | ||
c.model.DesiredState = desiredState | ||
return c | ||
} | ||
|
||
func (c *newCloudControlModel) ComTypeName(typeName string) *newCloudControlModel { | ||
c.model.TypeName = typeName | ||
return c | ||
} | ||
|
||
func (c *newCloudControlModel) ComClientToken(clientToken string) *newCloudControlModel { | ||
c.model.ClientToken = clientToken | ||
return c | ||
} | ||
|
||
func (c *newCloudControlModel) ComRoleArn(roleArn string) *newCloudControlModel { | ||
c.model.RoleArn = roleArn | ||
return c | ||
} | ||
|
||
func (c *newCloudControlModel) ComTypeVersionId(typeVersionId string) *newCloudControlModel { | ||
c.model.TypeVersionId = typeVersionId | ||
return c | ||
} | ||
|
||
func (c *newCloudControlModel) Agora() cloudcontrolmdl.Model { | ||
return c.model | ||
} |