flyio

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	ID        string    `json:"id"`
	Name      string    `json:"name"`
	Org       string    `json:"organization"`
	Status    string    `json:"status"`
	CreatedAt time.Time `json:"created_at"`
}

type Machine

type Machine struct {
	ID        string            `json:"id"`
	AppName   string            `json:"app_name"`
	Name      string            `json:"name"`
	State     string            `json:"state"`
	Region    string            `json:"region"`
	ImageRef  string            `json:"image_ref"`
	Env       map[string]string `json:"env,omitempty"`
	CPUs      int               `json:"guest_cpus"`
	MemoryMB  int               `json:"guest_memory_mb"`
	CreatedAt time.Time         `json:"created_at"`
	UpdatedAt time.Time         `json:"updated_at"`
}

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

Plugin implements the CloudMock plugin interface for Fly.io Machines API emulation. Supports apps, machines, volumes, and secrets management.

func New

func New() *Plugin

func (*Plugin) Describe

func (p *Plugin) Describe(_ context.Context) (*plugin.Descriptor, error)

func (*Plugin) HandleRequest

func (p *Plugin) HandleRequest(_ context.Context, req *plugin.Request) (*plugin.Response, error)

func (*Plugin) HealthCheck

func (p *Plugin) HealthCheck(_ context.Context) (plugin.HealthStatus, string, error)

func (*Plugin) Init

func (p *Plugin) Init(_ context.Context, _ []byte, _ string, _ string) error

func (*Plugin) Shutdown

func (p *Plugin) Shutdown(_ context.Context) error

type Volume

type Volume struct {
	ID        string    `json:"id"`
	AppName   string    `json:"app_name"`
	Name      string    `json:"name"`
	Region    string    `json:"region"`
	SizeGB    int       `json:"size_gb"`
	State     string    `json:"state"`
	CreatedAt time.Time `json:"created_at"`
}

Jump to

Keyboard shortcuts

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