Help us shape the future of Go! Take the 2026 Go Developer Survey

common

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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
}

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 epresents basic service configuration

type BaseApplicationService

type BaseApplicationService interface {
	GetPort() int32
	GetType() *corev1.ServiceType
	GetAnnotations() map[string]string
}

BaseApplicationService epresents basic service configuration

type BaseApplicationStatus

type BaseApplicationStatus interface {
	GetConditions() []StatusCondition
	GetCondition(StatusConditionType) StatusCondition
	SetCondition(StatusCondition)
	NewCondition() StatusCondition
}

BaseApplicationStatus returns base appplication status

type BaseApplicationStorage

type BaseApplicationStorage interface {
	GetSize() string
	GetMountPath() string
	GetVolumeClaimTemplate() *corev1.PersistentVolumeClaim
}

BaseApplicationStorage represents basic PVC configuration

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"
)

Jump to

Keyboard shortcuts

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