schema

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2021 License: MPL-2.0 Imports: 5 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationData

type ApplicationData struct {
	SchemaVersion int `json:"v"`

	Name string `json:"-"`

	// Allows app-per-app migration off the central repo
	UseCentralGitRepo bool `json:"use_central_git_repo"`

	IsActive             bool              `json:"is_active"`
	InfraOutputs         map[string]string `json:"infra_outputs"`
	LastRtVersion        string            `json:"last_rt_version"`
	LastTerraformVersion string            `json:"last_terraform_version"`
	LastDeploymentTime   time.Time         `json:"last_deployment_time,omitempty"`
	LastInfraChangeTime  time.Time         `json:"last_infra_change_time"`
	SlotCounters         map[string]int64  `json:"slot_counters,omitempty"`
}

func (*ApplicationData) FromJSON

func (a *ApplicationData) FromJSON(data []byte) error

func (*ApplicationData) ToJSON

func (a *ApplicationData) ToJSON() ([]byte, error)

type ApplicationData_v0

type ApplicationData_v0 struct {
	SchemaVersion        int               `json:"v"`
	Name                 string            `json:"-"`
	UseCentralGitRepo    bool              `json:"use_central_git_repo"`
	IsActive             bool              `json:"is_active"`
	InfraOutputs         map[string]string `json:"infra_outputs"`
	LastRtVersion        string            `json:"last_rt_version"`
	LastTerraformVersion string            `json:"last_terraform_version"`
	LastDeploymentTime   time.Time         `json:"last_deployment_time,omitempty"`
	LastInfraChangeTime  time.Time         `json:"last_infra_change_time"`
	SlotCounters         map[string]int64  `json:"slot_counters,omitempty"`
}

type DeployPilot

type DeployPilot struct {
	AWSApiCaller string `json:"aws_api_caller"` // IAM/STS ARN
	IPAddress    string `json:"ip_address"`
}

type DeploymentData

type DeploymentData struct {
	SchemaVersion int    `json:"v"`
	DeploymentId  string `json:"-"`

	DeployPilot *DeployPilot `json:"deploy_pilot,omitempty"`
	StartTime   time.Time    `json:"start_time"`

	Terraform *TerraformRun `json:"terraform,omitempty"`

	RTVersion string `json:"rt_version"`
}

func (*DeploymentData) FromJSON

func (d *DeploymentData) FromJSON(data []byte) error

func (*DeploymentData) ToJSON

func (d *DeploymentData) ToJSON() ([]byte, error)

type DeploymentData_v0

type DeploymentData_v0 struct {
	SchemaVersion int           `json:"v"`
	DeploymentId  string        `json:"-"`
	DeployPilot   *DeployPilot  `json:"deploy_pilot,omitempty"`
	StartTime     time.Time     `json:"start_time"`
	Terraform     *TerraformRun `json:"terraform,omitempty"`
	RTVersion     string        `json:"rt_version"`
}

type FinishedTerraformRun

type FinishedTerraformRun struct {
	PlanStartTime  time.Time `json:"plan_start_time"`
	PlanFinishTime time.Time `json:"plan_finish_time"`
	StartTime      time.Time `json:"start_time"`
	FinishTime     time.Time `json:"finish_time"`

	ResourceDiff *terraform.ResourceDiff `json:"resource_diff,omitempty"`
	Outputs      map[string]string       `json:"outputs"`

	ExitCode int      `json:"exit_code,omitempty"`
	Warnings []string `json:"warnings,omitempty"`
	Stderr   string   `json:"stderr,omitempty"`
}

type SlotData

type SlotData struct {
	SchemaVersion int `json:"v"`

	SlotId   string `json:"-"`
	IsActive bool   `json:"is_active"`

	LastDeploymentStartTime time.Time     `json:"last_deployment_start_time"`
	LastDeployPilot         *DeployPilot  `json:"last_deploy_pilot,omitempty"`
	LastTerraformRun        *TerraformRun `json:"last_terraform_run"`
}

1 slot ~= 1 app deployment tfstate file

func (*SlotData) FromJSON

func (s *SlotData) FromJSON(data []byte) error

func (*SlotData) ToJSON

func (s *SlotData) ToJSON() ([]byte, error)

type SlotData_v0

type SlotData_v0 struct {
	SchemaVersion           int           `json:"v"`
	SlotId                  string        `json:"-"`
	IsActive                bool          `json:"is_active"`
	LastDeploymentStartTime time.Time     `json:"last_deployment_start_time"`
	LastDeployPilot         *DeployPilot  `json:"last_deploy_pilot,omitempty"`
	LastTerraformRun        *TerraformRun `json:"last_terraform_run"`
}

type TerraformRun

type TerraformRun struct {
	PlanStartTime  time.Time `json:"plan_start_time,omitempty"`
	PlanFinishTime time.Time `json:"plan_finish_time,omitempty"`
	StartTime      time.Time `json:"start_time,omitempty"`
	FinishTime     time.Time `json:"finish_time"`
	IsDestroy      bool      `json:"is_destroy"`

	ResourceDiff *terraform.ResourceDiff `json:"resource_diff,omitempty"`
	Variables    map[string]string       `json:"variables"`
	Outputs      map[string]string       `json:"outputs"`

	TerraformVersion string `json:"terraform_version"`

	ExitCode int      `json:"exit_code,omitempty"`
	Warnings []string `json:"warnings,omitempty"`
	Stderr   string   `json:"stderr,omitempty"`
}

Jump to

Keyboard shortcuts

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