Documentation
¶
Index ¶
- Constants
- type AppGenerator
- type AppStateMetrics
- type CedarReport
- type CfApp
- type CfApplication
- func (a *CfApplication) AppName() string
- func (a *CfApplication) AppURL() string
- func (a *CfApplication) Guid(logger lager.Logger, ctx context.Context, cli cli.CFClient, ...) (string, error)
- func (a *CfApplication) Push(logger lager.Logger, ctx context.Context, cli cli.CFClient, assetDir string, ...) error
- func (a *CfApplication) SetUrl(appUrl string) error
- func (a *CfApplication) Start(logger lager.Logger, ctx context.Context, cli cli.CFClient, ...) error
- type Deployer
- type State
Constants ¶
View Source
const ( Push = "push" Start = "start" )
View Source
const (
AppRoutePattern = "%s://%s.%s"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppGenerator ¶
func NewAppGenerator ¶
func NewAppGenerator(config config.Config) AppGenerator
type AppStateMetrics ¶
type CedarReport ¶
type CedarReport struct { Succeeded bool `json:"succeeded"` Apps []AppStateMetrics `json:"apps"` }
type CfApp ¶
type CfApp interface { AppName() string AppURL() string Push(logger lager.Logger, ctx context.Context, client cli.CFClient, payload string, timeout time.Duration) error Start(logger lager.Logger, ctx context.Context, client cli.CFClient, skipVerifyCertificate bool, timeout time.Duration) error Guid(logger lager.Logger, ctx context.Context, client cli.CFClient, timeout time.Duration) (string, error) }
type CfApplication ¶
type CfApplication struct {
// contains filtered or unexported fields
}
func (*CfApplication) AppName ¶
func (a *CfApplication) AppName() string
func (*CfApplication) AppURL ¶
func (a *CfApplication) AppURL() string
func (*CfApplication) SetUrl ¶
func (a *CfApplication) SetUrl(appUrl string) error
type Deployer ¶
type Deployer struct { AppsToPush []CfApp AppsToStart []CfApp AppStates map[string]*AppStateMetrics // contains filtered or unexported fields }
func (*Deployer) GenerateReport ¶
Click to show internal directories.
Click to hide internal directories.