plan

package
v0.1.133 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlyPostgresPlan

type FlyPostgresPlan struct {
	AppName    string `json:"app_name"`
	VmSize     string `json:"vm_size"`
	VmRam      int    `json:"vm_ram"`
	Nodes      int    `json:"nodes"`
	DiskSizeGB int    `json:"disk_size_gb"`
	AutoStop   bool   `json:"auto_stop"`
}

func (*FlyPostgresPlan) Guest

func (p *FlyPostgresPlan) Guest() *api.MachineGuest

type LaunchPlan

type LaunchPlan struct {
	AppName string `json:"name"`
	OrgSlug string `json:"org"`

	RegionCode       string `json:"region"`
	HighAvailability bool   `json:"ha"`

	CPUKind  string `json:"vm_cpukind,omitempty"`
	CPUs     int    `json:"vm_cpus,omitempty"`
	MemoryMB int    `json:"vm_memory,omitempty"`
	VmSize   string `json:"vm_size,omitempty"`

	HttpServicePort int `json:"http_service_port,omitempty"`

	Postgres PostgresPlan `json:"postgres"`

	Redis RedisPlan `json:"redis"`

	ScannerFamily string          `json:"scanner_family"`
	FlyctlVersion version.Version `json:"flyctl_version"`
}

func (*LaunchPlan) Guest

func (p *LaunchPlan) Guest() *api.MachineGuest

func (*LaunchPlan) SetGuestFields

func (p *LaunchPlan) SetGuestFields(guest *api.MachineGuest)

type PostgresPlan

type PostgresPlan struct {
	FlyPostgres *FlyPostgresPlan `json:"fly_postgres"`
}

func DefaultPostgres

func DefaultPostgres(plan *LaunchPlan) PostgresPlan

func (*PostgresPlan) Provider

func (p *PostgresPlan) Provider() any

type RedisPlan

type RedisPlan struct {
	UpstashRedis *UpstashRedisPlan `json:"upstash_redis"`
}

func DefaultRedis

func DefaultRedis(plan *LaunchPlan) RedisPlan

func (*RedisPlan) Provider

func (p *RedisPlan) Provider() any

type UpstashRedisPlan

type UpstashRedisPlan struct {
	Eviction     bool     `json:"eviction"`
	ReadReplicas []string `json:"read_replicas"`
}

Jump to

Keyboard shortcuts

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