Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppLogs ¶ added in v0.2.0
type AppLogs struct {
// contains filtered or unexported fields
}
func NewAppLogs ¶ added in v0.2.0
func NewAppLogs(appRepo CFAppRepository, buildRepo CFBuildRepository, podRepo PodRepository) *AppLogs
type CFAppRepository ¶
type CFAppRepository interface { GetApp(context.Context, authorization.Info, string) (repositories.AppRecord, error) GetAppByNameAndSpace(context.Context, authorization.Info, string, string) (repositories.AppRecord, error) CreateOrPatchAppEnvVars(context.Context, authorization.Info, repositories.CreateOrPatchAppEnvVarsMessage) (repositories.AppEnvVarsRecord, error) CreateApp(context.Context, authorization.Info, repositories.CreateAppMessage) (repositories.AppRecord, error) }
type CFBuildRepository ¶
type CFBuildRepository interface { GetLatestBuildByAppGUID(context.Context, authorization.Info, string, string) (repositories.BuildRecord, error) GetBuildLogs(context.Context, authorization.Info, string, string) ([]repositories.LogRecord, error) }
type CFDomainRepository ¶
type CFDomainRepository interface {
GetDomainByName(context.Context, authorization.Info, string) (repositories.DomainRecord, error)
}
type CFProcessRepository ¶
type CFProcessRepository interface { GetProcess(context.Context, authorization.Info, string) (repositories.ProcessRecord, error) ListProcesses(context.Context, authorization.Info, repositories.ListProcessesMessage) ([]repositories.ProcessRecord, error) ScaleProcess(context.Context, authorization.Info, repositories.ScaleProcessMessage) (repositories.ProcessRecord, error) CreateProcess(context.Context, authorization.Info, repositories.CreateProcessMessage) error GetProcessByAppTypeAndSpace(context.Context, authorization.Info, string, string, string) (repositories.ProcessRecord, error) PatchProcess(context.Context, authorization.Info, repositories.PatchProcessMessage) (repositories.ProcessRecord, error) }
type CFRouteRepository ¶
type CFRouteRepository interface { GetOrCreateRoute(context.Context, authorization.Info, repositories.CreateRouteMessage) (repositories.RouteRecord, error) ListRoutesForApp(context.Context, authorization.Info, string, string) ([]repositories.RouteRecord, error) AddDestinationsToRoute(ctx context.Context, c authorization.Info, message repositories.AddDestinationsToRouteMessage) (repositories.RouteRecord, error) }
type Manifest ¶ added in v0.2.0
type Manifest struct {
// contains filtered or unexported fields
}
func NewManifest ¶ added in v0.2.0
func NewManifest(appRepo CFAppRepository, domainRepo CFDomainRepository, processRepo CFProcessRepository, routeRepo CFRouteRepository, defaultDomainName string) *Manifest
type PodRepository ¶
type PodRepository interface { ListPodStats(ctx context.Context, authInfo authorization.Info, message repositories.ListPodStatsMessage) ([]repositories.PodStatsRecord, error) GetRuntimeLogsForApp(context.Context, logr.Logger, authorization.Info, repositories.RuntimeLogsMessage) ([]repositories.LogRecord, error) }
type ProcessScaler ¶ added in v0.2.0
type ProcessScaler struct {
// contains filtered or unexported fields
}
func NewProcessScaler ¶ added in v0.2.0
func NewProcessScaler(appRepo CFAppRepository, processRepo CFProcessRepository) *ProcessScaler
func (*ProcessScaler) ScaleAppProcess ¶ added in v0.2.0
func (a *ProcessScaler) ScaleAppProcess(ctx context.Context, authInfo authorization.Info, appGUID string, processType string, scale repositories.ProcessScaleValues) (repositories.ProcessRecord, error)
func (*ProcessScaler) ScaleProcess ¶ added in v0.2.0
func (a *ProcessScaler) ScaleProcess(ctx context.Context, authInfo authorization.Info, processGUID string, scale repositories.ProcessScaleValues) (repositories.ProcessRecord, error)
type ProcessStats ¶ added in v0.2.0
type ProcessStats struct {
// contains filtered or unexported fields
}
func NewProcessStats ¶ added in v0.2.0
func NewProcessStats(processRepo CFProcessRepository, podRepo PodRepository, appRepo CFAppRepository) *ProcessStats
func (*ProcessStats) FetchStats ¶ added in v0.2.0
func (a *ProcessStats) FetchStats(ctx context.Context, authInfo authorization.Info, processGUID string) ([]repositories.PodStatsRecord, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.