Documentation
¶
Index ¶
- Variables
- func InteractiveSetup(ctx context.Context, fabric client.FabricClient, surveyor surveyor.Surveyor, ...) (string, error)
- type APIResponse
- type HerokuAddon
- type HerokuApplication
- type HerokuApplicationInfo
- type HerokuClient
- func (h *HerokuClient) GetDynoSize(ctx context.Context, dynoSizeName string) (HerokuDynoSize, error)
- func (h *HerokuClient) GetFormation(ctx context.Context, appName string) ([]HerokuFormation, error)
- func (h *HerokuClient) GetPGInfo(ctx context.Context, addonID string) (PGInfo, error)
- func (h *HerokuClient) GetReleaseTasks(ctx context.Context, appName string) ([]HerokuReleaseTask, error)
- func (h *HerokuClient) ListAddons(ctx context.Context, appName string) ([]HerokuAddon, error)
- func (h *HerokuClient) ListApps(ctx context.Context) ([]HerokuApplication, error)
- func (h *HerokuClient) ListConfigVars(ctx context.Context, appName string) (HerokuConfigVars, error)
- func (h *HerokuClient) ListDynos(ctx context.Context, appName string) ([]HerokuDyno, error)
- func (h *HerokuClient) SetToken(token string)
- type HerokuClientInterface
- type HerokuConfigVars
- type HerokuDyno
- type HerokuDynoSize
- type HerokuFormation
- type HerokuReleaseTask
- type PGInfo
- type SourcePlatform
Constants ¶
This section is empty.
Variables ¶
View Source
var AllSourcePlatforms = []SourcePlatform{ SourcePlatformHeroku, }
Functions ¶
func InteractiveSetup ¶
func InteractiveSetup(ctx context.Context, fabric client.FabricClient, surveyor surveyor.Surveyor, heroku HerokuClientInterface, sourcePlatform SourcePlatform) (string, error)
Types ¶
type APIResponse ¶
type APIResponse struct {
Data interface{} `json:"data,omitempty"`
Error string `json:"error,omitempty"`
}
APIResponse represents a generic API response
type HerokuAddon ¶
type HerokuAddon struct {
Name string `json:"name"`
ID string `json:"id"`
AddonService struct {
HumanName string `json:"human_name"`
ID string `json:"id"`
Name string `json:"name"`
} `json:"addon_service"`
Plan struct {
HumanName string `json:"human_name"`
ID string `json:"id"`
Name string `json:"name"`
} `json:"plan"`
Attachments []struct {
Name string `json:"name"`
Addon struct {
ID string `json:"id"`
Name string `json:"name"`
App struct {
Name string `json:"name"`
ID string `json:"id"`
} `json:"app"`
} `json:"addon"`
} `json:"attachments"`
State string `json:"state"`
}
type HerokuApplication ¶
type HerokuApplicationInfo ¶
type HerokuApplicationInfo struct {
Addons []HerokuAddon `json:"addons"`
Dynos []HerokuDyno `json:"dynos"`
ConfigVars HerokuConfigVars `json:"config_vars"`
PGInfo []PGInfo `json:"pg_info"`
DynoSizes map[string]HerokuDynoSize `json:"dyno_sizes"`
ReleaseTasks []HerokuReleaseTask `json:"release_tasks"`
}
type HerokuClient ¶
HerokuClient represents the Heroku API client
func NewHerokuClient ¶
func NewHerokuClient() *HerokuClient
NewHerokuClient creates a new Heroku API client
func (*HerokuClient) GetDynoSize ¶
func (h *HerokuClient) GetDynoSize(ctx context.Context, dynoSizeName string) (HerokuDynoSize, error)
func (*HerokuClient) GetFormation ¶
func (h *HerokuClient) GetFormation(ctx context.Context, appName string) ([]HerokuFormation, error)
func (*HerokuClient) GetReleaseTasks ¶
func (h *HerokuClient) GetReleaseTasks(ctx context.Context, appName string) ([]HerokuReleaseTask, error)
func (*HerokuClient) ListAddons ¶
func (h *HerokuClient) ListAddons(ctx context.Context, appName string) ([]HerokuAddon, error)
func (*HerokuClient) ListApps ¶
func (h *HerokuClient) ListApps(ctx context.Context) ([]HerokuApplication, error)
func (*HerokuClient) ListConfigVars ¶
func (h *HerokuClient) ListConfigVars(ctx context.Context, appName string) (HerokuConfigVars, error)
func (*HerokuClient) ListDynos ¶
func (h *HerokuClient) ListDynos(ctx context.Context, appName string) ([]HerokuDyno, error)
func (*HerokuClient) SetToken ¶
func (h *HerokuClient) SetToken(token string)
type HerokuClientInterface ¶
type HerokuClientInterface interface {
SetToken(token string)
ListApps(ctx context.Context) ([]HerokuApplication, error)
ListDynos(ctx context.Context, appName string) ([]HerokuDyno, error)
ListAddons(ctx context.Context, appName string) ([]HerokuAddon, error)
GetDynoSize(ctx context.Context, dynoSizeName string) (HerokuDynoSize, error)
GetPGInfo(ctx context.Context, addonID string) (PGInfo, error)
ListConfigVars(ctx context.Context, appName string) (HerokuConfigVars, error)
GetReleaseTasks(ctx context.Context, appName string) ([]HerokuReleaseTask, error)
}
HerokuClientInterface defines the interface for Heroku client operations
type HerokuConfigVars ¶
type HerokuDyno ¶
type HerokuDynoSize ¶
type HerokuFormation ¶
type HerokuReleaseTask ¶
type HerokuReleaseTask = HerokuFormation
type SourcePlatform ¶
type SourcePlatform string
const ( SourcePlatformUnspecified SourcePlatform = "" SourcePlatformHeroku SourcePlatform = "heroku" )
func ParseSourcePlatform ¶
func ParseSourcePlatform(input string) (SourcePlatform, error)
func (*SourcePlatform) Set ¶
func (sp *SourcePlatform) Set(val string) error
Set implements the pflag.Value interface.
func (*SourcePlatform) String ¶
func (sp *SourcePlatform) String() string
String implements the pflag.Value interface.
func (*SourcePlatform) Type ¶
func (sp *SourcePlatform) Type() string
Type implements the pflag.Value interface (optional, but recommended).
Click to show internal directories.
Click to hide internal directories.