Documentation
¶
Index ¶
- type BaseApplication
- type BaseApplicationAutoscaling
- type BaseApplicationMonitoring
- type BaseApplicationService
- type BaseApplicationStatus
- type BaseApplicationStorage
- type ConsumedServices
- type ServiceBindingAuth
- type ServiceBindingCategory
- type ServiceBindingConsumes
- type ServiceBindingProvides
- type StatusCondition
- type StatusConditionType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseApplication ¶
type BaseApplication interface {
GetApplicationImage() string
GetPullPolicy() *corev1.PullPolicy
GetPullSecret() *string
GetServiceAccountName() *string
GetReplicas() *int32
GetLivenessProbe() *corev1.Probe
GetReadinessProbe() *corev1.Probe
GetVolumes() []corev1.Volume
GetVolumeMounts() []corev1.VolumeMount
GetResourceConstraints() *corev1.ResourceRequirements
GetExpose() *bool
GetEnv() []corev1.EnvVar
GetEnvFrom() []corev1.EnvFromSource
GetCreateKnativeService() *bool
GetArchitecture() []string
GetAutoscaling() BaseApplicationAutoscaling
GetStorage() BaseApplicationStorage
GetService() BaseApplicationService
GetVersion() string
GetCreateAppDefinition() *bool
GetMonitoring() BaseApplicationMonitoring
GetLabels() map[string]string
GetAnnotations() map[string]string
GetStatus() BaseApplicationStatus
GetInitContainers() []corev1.Container
GetGroupName() string
}
BaseApplication represents basic kubernetes application
type BaseApplicationAutoscaling ¶
type BaseApplicationAutoscaling interface {
GetMinReplicas() *int32
GetMaxReplicas() int32
GetTargetCPUUtilizationPercentage() *int32
}
BaseApplicationAutoscaling represents basic HPA configuration
type BaseApplicationMonitoring ¶
type BaseApplicationMonitoring interface {
GetLabels() map[string]string
GetEndpoints() []prometheusv1.Endpoint
}
BaseApplicationMonitoring represents basic service monitoring configuration
type BaseApplicationService ¶
type BaseApplicationService interface {
GetPort() int32
GetType() *corev1.ServiceType
GetAnnotations() map[string]string
GetProvides() ServiceBindingProvides
GetConsumes() []ServiceBindingConsumes
}
BaseApplicationService represents basic service configuration
type BaseApplicationStatus ¶
type BaseApplicationStatus interface {
GetConditions() []StatusCondition
GetCondition(StatusConditionType) StatusCondition
SetCondition(StatusCondition)
NewCondition() StatusCondition
GetConsumedServices() ConsumedServices
SetConsumedServices(ConsumedServices)
}
BaseApplicationStatus returns base appplication status
type BaseApplicationStorage ¶
type BaseApplicationStorage interface {
GetSize() string
GetMountPath() string
GetVolumeClaimTemplate() *corev1.PersistentVolumeClaim
}
BaseApplicationStorage represents basic PVC configuration
type ConsumedServices ¶ added in v0.3.0
type ConsumedServices map[ServiceBindingCategory][]string
ConsumedServices stores status of the service binding dependencies
type ServiceBindingAuth ¶ added in v0.3.0
type ServiceBindingAuth interface {
GetUsername() corev1.SecretKeySelector
GetPassword() corev1.SecretKeySelector
}
ServiceBindingAuth represents authentication info when binding services
type ServiceBindingCategory ¶ added in v0.3.0
type ServiceBindingCategory string
ServiceBindingCategory ...
const ( // ServiceBindingCategoryOpenAPI ... ServiceBindingCategoryOpenAPI ServiceBindingCategory = "openapi" )
type ServiceBindingConsumes ¶ added in v0.3.0
type ServiceBindingConsumes interface {
GetName() string
GetNamespace() string
GetCategory() ServiceBindingCategory
GetMountPath() string
}
ServiceBindingConsumes represents a service to be consumed
type ServiceBindingProvides ¶ added in v0.3.0
type ServiceBindingProvides interface {
GetCategory() ServiceBindingCategory
GetContext() string
GetProtocol() string
GetAuth() ServiceBindingAuth
}
ServiceBindingProvides represents a service to be provided
type StatusCondition ¶
type StatusCondition interface {
GetLastTransitionTime() *metav1.Time
SetLastTransitionTime(*metav1.Time)
GetLastUpdateTime() metav1.Time
SetLastUpdateTime(metav1.Time)
GetReason() string
SetReason(string)
GetMessage() string
SetMessage(string)
GetStatus() corev1.ConditionStatus
SetStatus(corev1.ConditionStatus)
GetType() StatusConditionType
SetType(StatusConditionType)
}
StatusCondition ...
type StatusConditionType ¶
type StatusConditionType string
StatusConditionType ...
const ( // StatusConditionTypeReconciled ... StatusConditionTypeReconciled StatusConditionType = "Reconciled" // StatusConditionTypeDependenciesSatisfied ... StatusConditionTypeDependenciesSatisfied StatusConditionType = "DependenciesSatisfied" )