Documentation
¶
Index ¶
- type AppListItem
- type ExistsSecretCmd
- type FlyClient
- type FlyClientImpl
- func (c FlyClientImpl) CreateIp(ctx context.Context, app string, ip model.IpConfig) error
- func (c FlyClientImpl) CreateNewApp(ctx context.Context, cfg model.AppConfig, tempDir util_work_dir.WorkDir, ...) error
- func (c FlyClientImpl) CreateOrgToken(ctx context.Context, orgSlug string) (string, error)
- func (c FlyClientImpl) CreateVolume(ctx context.Context, app string, cfg model.VolumeConfig, region string) (model.VolumeState, error)
- func (c FlyClientImpl) DeleteIp(ctx context.Context, app string, id string, address string) error
- func (c FlyClientImpl) DeployExistingApp(ctx context.Context, cfg model.AppConfig, tempDir util_work_dir.WorkDir, ...) error
- func (c FlyClientImpl) ExistsApp(ctx context.Context, name string) (bool, error)
- func (c FlyClientImpl) ExistsSecret(ctx context.Context, cmd ExistsSecretCmd) (bool, error)
- func (c FlyClientImpl) ExtendVolume(ctx context.Context, appName string, volumeId string, gb int) error
- func (c FlyClientImpl) GetAppScale(ctx context.Context, app string) ([]model.ScaleState, error)
- func (c FlyClientImpl) GetAppVolumes(ctx context.Context, name string) ([]model.VolumeState, error)
- func (c FlyClientImpl) GetDeployedAppConfig(ctx context.Context, name string) (model.AppConfig, error)
- func (c FlyClientImpl) ListApps(ctx context.Context) ([]AppListItem, error)
- func (c FlyClientImpl) ListIps(ctx context.Context, app string) ([]IpListItem, error)
- func (c FlyClientImpl) SaveSecrets(ctx context.Context, app string, secrets []Secret, stage bool) error
- func (c FlyClientImpl) ScaleApp(ctx context.Context, app string, region string, count int) error
- func (c FlyClientImpl) ScaleAppRam(ctx context.Context, app string, ramMb int) error
- func (c FlyClientImpl) ScaleAppVm(ctx context.Context, app string, vm string) error
- func (c FlyClientImpl) StoreSecret(ctx context.Context, cmd StoreSecretCmd) error
- type IpListItem
- type Secret
- type StoreSecretCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppListItem ¶
type ExistsSecretCmd ¶
type FlyClient ¶
type FlyClient interface {
CreateOrgToken(
ctx context.Context,
orgSlug string,
) (string, error)
ExistsSecret(
ctx context.Context,
cmd ExistsSecretCmd,
) (bool, error)
StoreSecret(
ctx context.Context,
cmd StoreSecretCmd,
) error
ExistsApp(
ctx context.Context,
name string,
) (bool, error)
GetDeployedAppConfig(
ctx context.Context,
name string,
) (model.AppConfig, error)
GetAppVolumes(
ctx context.Context,
name string,
) ([]model.VolumeState, error)
CreateNewApp(
ctx context.Context,
cfg model.AppConfig,
tempDir util_work_dir.WorkDir,
twoStep bool,
) error
DeployExistingApp(
ctx context.Context,
cfg model.AppConfig,
tempDir util_work_dir.WorkDir,
deployCfg model.DeployConfig,
region string,
) error
CreateVolume(
ctx context.Context,
app string,
cfg model.VolumeConfig,
region string,
) (model.VolumeState, error)
GetAppScale(
ctx context.Context,
app string,
) ([]model.ScaleState, error)
ExtendVolume(
ctx context.Context,
appName string,
volumeId string,
gb int,
) error
ScaleApp(
ctx context.Context,
app string,
region string,
count int,
) error
ScaleAppRam(
ctx context.Context,
app string,
ramMb int,
) error
ScaleAppVm(
ctx context.Context,
app string,
vm string,
) error
SaveSecrets(
ctx context.Context,
app string,
secrets []Secret,
stage bool,
) error
ListApps(
ctx context.Context,
) ([]AppListItem, error)
ListIps(
ctx context.Context,
app string,
) ([]IpListItem, error)
DeleteIp(
ctx context.Context,
app string,
id string,
address string,
) error
CreateIp(
ctx context.Context,
app string,
ip model.IpConfig,
) error
}
func NewFlyClient ¶
func NewFlyClient() FlyClient
type FlyClientImpl ¶
type FlyClientImpl struct{}
func (FlyClientImpl) CreateNewApp ¶
func (c FlyClientImpl) CreateNewApp( ctx context.Context, cfg model.AppConfig, tempDir util_work_dir.WorkDir, twoStep bool, ) error
func (FlyClientImpl) CreateOrgToken ¶
func (FlyClientImpl) CreateVolume ¶
func (c FlyClientImpl) CreateVolume( ctx context.Context, app string, cfg model.VolumeConfig, region string, ) (model.VolumeState, error)
func (FlyClientImpl) DeployExistingApp ¶
func (c FlyClientImpl) DeployExistingApp( ctx context.Context, cfg model.AppConfig, tempDir util_work_dir.WorkDir, deployCfg model.DeployConfig, region string, ) error
func (FlyClientImpl) ExistsSecret ¶
func (c FlyClientImpl) ExistsSecret(ctx context.Context, cmd ExistsSecretCmd) (bool, error)
func (FlyClientImpl) ExtendVolume ¶
func (FlyClientImpl) GetAppScale ¶
func (c FlyClientImpl) GetAppScale( ctx context.Context, app string, ) ([]model.ScaleState, error)
func (FlyClientImpl) GetAppVolumes ¶
func (c FlyClientImpl) GetAppVolumes( ctx context.Context, name string, ) ([]model.VolumeState, error)
func (FlyClientImpl) GetDeployedAppConfig ¶
func (FlyClientImpl) ListApps ¶
func (c FlyClientImpl) ListApps(ctx context.Context) ([]AppListItem, error)
func (FlyClientImpl) ListIps ¶ added in v0.0.41
func (c FlyClientImpl) ListIps(ctx context.Context, app string) ([]IpListItem, error)
func (FlyClientImpl) SaveSecrets ¶
func (FlyClientImpl) ScaleAppRam ¶ added in v0.0.45
func (FlyClientImpl) ScaleAppVm ¶ added in v0.0.45
func (FlyClientImpl) StoreSecret ¶
func (c FlyClientImpl) StoreSecret(ctx context.Context, cmd StoreSecretCmd) error
type IpListItem ¶ added in v0.0.41
type IpListItem struct {
Id string `json:"ID"`
Address string `json:"Address"`
Type string `json:"Type"`
Region string `json:"Region"`
Network string `json:"Network"`
CreatedAt time.Time `json:"CreatedAt"`
}
func (IpListItem) Ipv ¶ added in v0.0.41
func (i IpListItem) Ipv() model.Ipv
func (IpListItem) IsPrivate ¶ added in v0.0.41
func (i IpListItem) IsPrivate() bool
type StoreSecretCmd ¶
Click to show internal directories.
Click to hide internal directories.