models

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmiAttr added in v0.1.2

type AmiAttr struct {
	AmiID   string `json:"amiIds"`
	AmiName string `json:"amiNames"`
}

type Config

type Config struct {
	Ami         []AmiAttr `json:"amis"`
	Region      string    `json:"regions"`
	ServerSizes []string  `json:"serverSizes"`
}

type DeploymentResponse

type DeploymentResponse struct {
	DeploymentID     string `json:"deploymentId"`  // Represents dynamoDB id that created this instance
	InstanceID       string `json:"ec2InstanceId"` // Represents ec2 instance id
	Ami              string `json:"ami"`
	ServerSize       string `json:"serverSize"`
	SnapshotID       string `json:"snapshotId"`
	Hostname         string `json:"hostname"`
	AvailabilityZone string `json:"availabilityZone"`
	Lifecycle        string `json:"lifecycle"`
	Status           string `json:"status"`
	TimeToExpire     string `json:"timeToExpire"`
}

type DynamoDBData

type DynamoDBData struct {
	ID                string `dynamodbav:"id"`
	Ami               string `dynamodbav:"ami"`
	ServerSize        string `dynamodbav:"serverSize"`
	Hostname          string `dynamodbav:"hostname"`
	Region            string `dynamodbav:"region"`
	Lifecycle         string `dynamodbav:"lifecycle"`
	CreationUser      string `dynamodbav:"creationUser"`
	SnapShot          string `dynamodbav:"snapShot"`
	ContentDeployment string `dynamodbav:"contentDeployment"`
	TimeToExpire      int64  `dynamodbav:"timeToExpire"`
}

type Payload

type Payload struct {
	Ami               string `json:"ami"`
	InstanceID        string `json:"instanceId"`
	ServerSize        string `json:"serverSize"`
	Hostname          string `json:"hostname"`
	Region            string `json:"region"`
	Lifecycle         string `json:"lifeCycle"`
	CreationUser      string `json:"creationUser"`
	SnapShot          string `json:"snapShot"`
	ContentDeployment string `json:"contentDeployment"`
	TTLUnit           string `json:"ttlUnit"`
	TimeToExpire      string `json:"timeToExpire"`
	TTLValue          int64  `json:"ttlValue"`
}

type Response

type Response struct {
	ReturnedResponse string `json:"record_id"`
}

type TempConfig added in v0.1.2

type TempConfig struct {
	Region      string   `json:"regions"`
	ServerSizes []string `json:"serverSizes"`
	Ami         []string `json:"amis"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL