Skip to content

Instantly share code, notes, and snippets.

@YagmurOzden
Created December 1, 2022 05:55
Show Gist options
  • Save YagmurOzden/3586b364d008f579152ea828548a5c37 to your computer and use it in GitHub Desktop.
Save YagmurOzden/3586b364d008f579152ea828548a5c37 to your computer and use it in GitHub Desktop.
package model
type VMs struct {
Provider string `json:"provider,omitempty" ` //AWS , Azure:
ProjectID string `json:"projectId,omitempty"` //AWS: Account, Azure: Subscription
Location string `json:"location,omitempty"` //AWS: Region, Azure: Resporce Group
VMName string `json:"vmName,omitempty"` //Virtual Machine Name
VMStartAt string `json:"startsAt,omitempty"` //Virtual Machine start time
VMStopAt string `json:"stopsAt,omitempty"` //Virtual Machine stop time
Credential interface{} `json:"credential,omitempty"` //VirtualMachine's credential information
}
type AzureCredentials struct {
TenantId string `json:"tenantId,omitempty" validate:"required"`
ClientId string `json:"clientId,omitempty" validate:"required"`
ClientSecret string `json:"ClientSecret,omitempty" validate:"required"`
}
type AWSCredentials struct {
AWS_key string `json:"aws_access_key_id" xml:"aws_access_key_id" form:"aws_access_key_id"`
AWS_secret string `json:"aws_secret_access_key" xml:"aws_secret_access_key" form:"aws_secret_access_key"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment