Documentation ¶
Index ¶
- Constants
- func BuildCRClient(config *rest.Config) (crclient.Client, error)
- func BuildK8sClient(config *rest.Config) (k8sclient.Interface, error)
- func UploadSourceImage(imageRef string, packageSrcFile multipart.File, credentialOption remote.Option) (imageRefWithDigest string, err error)
- type AppEnvVarsRecord
- type AppRecord
- type AppRepo
- func (f *AppRepo) CreateApp(ctx context.Context, client client.Client, appRecord AppRecord) (AppRecord, error)
- func (f *AppRepo) CreateAppEnvironmentVariables(ctx context.Context, client client.Client, envVariables AppEnvVarsRecord) (AppEnvVarsRecord, error)
- func (f *AppRepo) FetchApp(ctx context.Context, client client.Client, appGUID string) (AppRecord, error)
- func (f *AppRepo) FetchAppList(ctx context.Context, client client.Client) ([]AppRecord, error)
- func (f *AppRepo) FetchNamespace(ctx context.Context, client client.Client, nsGUID string) (SpaceRecord, error)
- func (f *AppRepo) SetAppDesiredState(ctx context.Context, c client.Client, message SetAppDesiredStateMessage) (AppRecord, error)
- func (f *AppRepo) SetCurrentDroplet(ctx context.Context, c client.Client, message SetCurrentDropletMessage) (CurrentDropletRecord, error)
- type AuthorizedNamespacesProvider
- type BuildCreateMessage
- type BuildRecord
- type BuildRepo
- type CFOrgRepository
- type CurrentDropletRecord
- type DesiredState
- type Destination
- type DomainRecord
- type DomainRepo
- type DropletRecord
- type DropletRepo
- type HealthCheck
- type HealthCheckData
- type Lifecycle
- type LifecycleData
- type NotFoundError
- type OrgRecord
- type OrgRepo
- func (r *OrgRepo) CreateOrg(ctx context.Context, org OrgRecord) (OrgRecord, error)
- func (r *OrgRepo) CreateSpace(ctx context.Context, space SpaceRecord) (SpaceRecord, error)
- func (r *OrgRepo) FetchOrgs(ctx context.Context, names []string) ([]OrgRecord, error)
- func (r *OrgRepo) FetchSpaces(ctx context.Context, organizationGUIDs, names []string) ([]SpaceRecord, error)
- type OrgRepoAuthDecorator
- type PackageCreateMessage
- type PackageRecord
- type PackageRepo
- func (r *PackageRepo) CreatePackage(ctx context.Context, client client.Client, message PackageCreateMessage) (PackageRecord, error)
- func (r *PackageRepo) FetchPackage(ctx context.Context, client client.Client, guid string) (PackageRecord, error)
- func (r *PackageRepo) UpdatePackageSource(ctx context.Context, c client.Client, message PackageUpdateSourceMessage) (PackageRecord, error)
- type PackageUpdateSourceMessage
- type PermissionDeniedOrNotFoundError
- type ProcessRecord
- type ProcessRepository
- type ResourceNotFoundError
- type RouteRecord
- type RouteRepo
- func (f *RouteRepo) CreateRoute(ctx context.Context, client client.Client, routeRecord RouteRecord) (RouteRecord, error)
- func (f *RouteRepo) FetchRoute(ctx context.Context, client client.Client, routeGUID string) (RouteRecord, error)
- func (f *RouteRepo) FetchRouteList(ctx context.Context, client client.Client) ([]RouteRecord, error)
- func (f *RouteRepo) FetchRoutesForApp(ctx context.Context, k8sClient client.Client, appGUID string, spaceGUID string) ([]RouteRecord, error)
- type SetAppDesiredStateMessage
- type SetCurrentDropletMessage
- type SpaceRecord
Constants ¶
View Source
const ( StartedState DesiredState = "STARTED" StoppedState DesiredState = "STOPPED" Kind string = "CFApp" APIVersion string = "workloads.cloudfoundry.org/v1alpha1" TimestampFormat string = time.RFC3339 CFAppGUIDLabel string = "apps.cloudfoundry.org/appGuid" )
View Source
const ( BuildStateStaging = "STAGING" BuildStateStaged = "STAGED" BuildStateFailed = "FAILED" StagingConditionType = "Staging" SucceededConditionType = "Succeeded" )
View Source
const ( OrgNameLabel = "cloudfoundry.org/org-name" SpaceNameLabel = "cloudfoundry.org/space-name" )
View Source
const ( PackageStateAwaitingUpload = "AWAITING_UPLOAD" PackageStateReady = "READY" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppEnvVarsRecord ¶
type AppRepo ¶
type AppRepo struct{}
func (*AppRepo) CreateAppEnvironmentVariables ¶
func (f *AppRepo) CreateAppEnvironmentVariables(ctx context.Context, client client.Client, envVariables AppEnvVarsRecord) (AppEnvVarsRecord, error)
func (*AppRepo) FetchAppList ¶
func (*AppRepo) FetchNamespace ¶
func (*AppRepo) SetAppDesiredState ¶
func (*AppRepo) SetCurrentDroplet ¶
func (f *AppRepo) SetCurrentDroplet(ctx context.Context, c client.Client, message SetCurrentDropletMessage) (CurrentDropletRecord, error)
type BuildCreateMessage ¶
type BuildRecord ¶
type BuildRepo ¶
type BuildRepo struct { }
func (*BuildRepo) CreateBuild ¶
func (b *BuildRepo) CreateBuild(ctx context.Context, k8sClient client.Client, message BuildCreateMessage) (BuildRecord, error)
func (*BuildRepo) FetchBuild ¶
type CFOrgRepository ¶
type CurrentDropletRecord ¶
type DesiredState ¶
type DesiredState string
type Destination ¶
type DomainRecord ¶
type DomainRepo ¶
type DomainRepo struct{}
func (*DomainRepo) FetchDomain ¶
func (f *DomainRepo) FetchDomain(ctx context.Context, client client.Client, domainGUID string) (DomainRecord, error)
type DropletRecord ¶
type DropletRepo ¶
type DropletRepo struct{}
func (*DropletRepo) FetchDroplet ¶
func (r *DropletRepo) FetchDroplet(ctx context.Context, k8sClient client.Client, dropletGUID string) (DropletRecord, error)
type HealthCheck ¶
type HealthCheck struct { Type string Data HealthCheckData }
type HealthCheckData ¶
type Lifecycle ¶
type Lifecycle struct { Type string Data LifecycleData }
type LifecycleData ¶
type NotFoundError ¶
type NotFoundError struct {
Err error
}
func (NotFoundError) Error ¶
func (e NotFoundError) Error() string
func (NotFoundError) Unwrap ¶
func (e NotFoundError) Unwrap() error
type OrgRepo ¶
type OrgRepo struct {
// contains filtered or unexported fields
}
func NewOrgRepo ¶
func (*OrgRepo) CreateSpace ¶
func (r *OrgRepo) CreateSpace(ctx context.Context, space SpaceRecord) (SpaceRecord, error)
func (*OrgRepo) FetchSpaces ¶
type OrgRepoAuthDecorator ¶
type OrgRepoAuthDecorator struct { CFOrgRepository // contains filtered or unexported fields }
func NewOrgRepoAuthDecorator ¶
func NewOrgRepoAuthDecorator( repo CFOrgRepository, identity authorization.Identity, nsProvider AuthorizedNamespacesProvider, ) *OrgRepoAuthDecorator
type PackageCreateMessage ¶
type PackageRecord ¶
type PackageRepo ¶
type PackageRepo struct{}
func (*PackageRepo) CreatePackage ¶
func (r *PackageRepo) CreatePackage(ctx context.Context, client client.Client, message PackageCreateMessage) (PackageRecord, error)
func (*PackageRepo) FetchPackage ¶
func (r *PackageRepo) FetchPackage(ctx context.Context, client client.Client, guid string) (PackageRecord, error)
func (*PackageRepo) UpdatePackageSource ¶
func (r *PackageRepo) UpdatePackageSource(ctx context.Context, c client.Client, message PackageUpdateSourceMessage) (PackageRecord, error)
type PermissionDeniedOrNotFoundError ¶
type PermissionDeniedOrNotFoundError struct {
Err error
}
func (PermissionDeniedOrNotFoundError) Error ¶
func (e PermissionDeniedOrNotFoundError) Error() string
func (PermissionDeniedOrNotFoundError) Unwrap ¶
func (e PermissionDeniedOrNotFoundError) Unwrap() error
type ProcessRecord ¶
type ProcessRepository ¶
type ProcessRepository struct{}
func (*ProcessRepository) FetchProcess ¶
func (r *ProcessRepository) FetchProcess(ctx context.Context, client client.Client, processGUID string) (ProcessRecord, error)
func (*ProcessRepository) FetchProcessesForApp ¶
func (r *ProcessRepository) FetchProcessesForApp(ctx context.Context, k8sClient client.Client, appGUID, spaceGUID string) ([]ProcessRecord, error)
type ResourceNotFoundError ¶
type ResourceNotFoundError struct {
Err error
}
func (ResourceNotFoundError) Error ¶
func (e ResourceNotFoundError) Error() string
func (ResourceNotFoundError) Unwrap ¶
func (e ResourceNotFoundError) Unwrap() error
type RouteRecord ¶
type RouteRecord struct { GUID string SpaceGUID string DomainRef DomainRecord Host string Path string Protocol string Destinations []Destination Labels map[string]string Annotations map[string]string CreatedAt string UpdatedAt string }
func (RouteRecord) UpdateDomainRef ¶
func (r RouteRecord) UpdateDomainRef(d DomainRecord) RouteRecord
type RouteRepo ¶
type RouteRepo struct{}
func (*RouteRepo) CreateRoute ¶
func (f *RouteRepo) CreateRoute(ctx context.Context, client client.Client, routeRecord RouteRecord) (RouteRecord, error)
func (*RouteRepo) FetchRoute ¶
func (*RouteRepo) FetchRouteList ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.