Documentation
¶
Index ¶
- type AppListItem
- type ExistsSecretCmd
- type FlyClient
- type FlyClientImpl
- 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) 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) 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) StoreSecret(ctx context.Context, cmd StoreSecretCmd) error
- 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
SaveSecrets(
ctx context.Context,
app string,
secrets []Secret,
stage bool,
) error
ListApps(
ctx context.Context,
) ([]AppListItem, 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) SaveSecrets ¶
func (FlyClientImpl) StoreSecret ¶
func (c FlyClientImpl) StoreSecret(ctx context.Context, cmd StoreSecretCmd) error
type StoreSecretCmd ¶
Click to show internal directories.
Click to hide internal directories.