Documentation
¶
Index ¶
- func ApplyConstraints(pod *core.PodSpec, appName string, cons constraints.Value, ...) error
- func HeadlessServiceName(appName string) string
- func MergeConstraint(resourceName core.ResourceName, value string, resourcesList core.ResourceList) (core.ResourceList, error)
- func NewApplication(name string, namespace string, modelUUID string, modelName string, ...) caas.Application
- type ConstraintApplier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyConstraints ¶
func ApplyConstraints(pod *core.PodSpec, appName string, cons constraints.Value, configureConstraint ConstraintApplier) error
ApplyConstraints applies the specified constraints to the pod.
func HeadlessServiceName ¶
HeadlessServiceName is an idempotent function for returning the name of the endpoints service juju make for applications.
func MergeConstraint ¶
func MergeConstraint(resourceName core.ResourceName, value string, resourcesList core.ResourceList) (core.ResourceList, error)
MergeConstraint merges constraint spec.
func NewApplication ¶
func NewApplication( name string, namespace string, modelUUID string, modelName string, legacyLabels bool, deploymentType caas.DeploymentType, client kubernetes.Interface, newWatcher k8swatcher.NewK8sWatcherFunc, clock clock.Clock, randomPrefix utils.RandomPrefixFunc, ) caas.Application
NewApplication returns an application.
Types ¶
type ConstraintApplier ¶
ConstraintApplier defines the function type for configuring constraint for a pod.
Click to show internal directories.
Click to hide internal directories.