actions

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApplicationContainerName = "application"
	EnvCFInstanceIndex       = "CF_INSTANCE_INDEX"
	LabelGUID                = "korifi.cloudfoundry.org/guid"
	LabelVersion             = "korifi.cloudfoundry.org/version"
)

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 shared.CFAppRepository, buildRepo shared.CFBuildRepository, podRepo shared.PodRepository) *AppLogs

func (*AppLogs) Read added in v0.2.0

func (a *AppLogs) Read(ctx context.Context, logger logr.Logger, authInfo authorization.Info, appGUID string, read payloads.LogRead) ([]repositories.LogRecord, error)

type Applier added in v0.3.0

type Applier interface {
	Apply(ctx context.Context, authInfo authorization.Info, spaceGUID string, appInfo payloads.ManifestApplication, appState manifest.AppState) 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(domainRepo shared.CFDomainRepository, defaultDomainName string, stateCollector StateCollector, normalizer Normalizer, applier Applier,
) *Manifest

func (*Manifest) Apply added in v0.2.0

func (a *Manifest) Apply(ctx context.Context, authInfo authorization.Info, spaceGUID string, manifesto payloads.Manifest) error

type MetricsRepository added in v0.6.0

type MetricsRepository interface {
	GetMetrics(ctx context.Context, authInfo authorization.Info, namespace string, podSelector client.MatchingLabels) ([]repositories.PodMetrics, error)
}

type Normalizer added in v0.3.0

type Normalizer interface {
	Normalize(appInfo payloads.ManifestApplication, appState manifest.AppState) payloads.ManifestApplication
}

type PodStatsRecord added in v0.6.0

type PodStatsRecord struct {
	Type      string
	Index     int
	State     string `default:"DOWN"`
	Usage     Usage
	MemQuota  *int64
	DiskQuota *int64
}

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 shared.CFProcessRepository, appRepo shared.CFAppRepository, metricsRepo MetricsRepository) *ProcessStats

func (*ProcessStats) FetchStats added in v0.2.0

func (a *ProcessStats) FetchStats(ctx context.Context, authInfo authorization.Info, processGUID string) ([]PodStatsRecord, error)

type StateCollector added in v0.3.0

type StateCollector interface {
	CollectState(ctx context.Context, authInfo authorization.Info, appName, spaceGUID string) (manifest.AppState, error)
}

type Usage added in v0.6.0

type Usage struct {
	Time *string
	CPU  *float64
	Mem  *int64
	Disk *int64
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.
fake
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL