package
1.4.0-alpha.2
Repository: https://github.com/stackpointcloud/kubernetes.git
Documentation: pkg.go.dev

# Functions

ByRoles returns a ByRolesSorter with the given roles.
CanonicalRole returns a "*" if the given role is empty else the role itself.
Filter filters the given slice of resources and returns a slice of resources matching all given predicates.
ForeachPortsRange calls f for each resource that matches the given roles in the order of the given roles.
HasName returns a ResourcePredicate which returns true if the given resource has the given name.
IsScalar returns true if the given resource is a scalar type.
LimitedCPUForPod computes the limits from the spec plus the default CPU limit difference for unlimited containers.
LimitedMemForPod computes the limits from the spec plus the default memory limit difference for unlimited containers.
LimitPodCPU sets default CPU requests and limits of each container that does not limit its CPU resource yet.
LimitPodMem sets default memory requests and limits of each container that does not limit its memory resource yet.
MatchesAll returns true if the given resource matches all given predicates ps.
No description provided by the author
No description provided by the author
No description provided by the author
NewRanges generates port ranges from the given list of ports.
PortRanges creates a range resource for the spec ports.
StringPtrTo returns a pointer to the given string or nil if it is empty string.
No description provided by the author

# Constants

CPUs allocated for pods without CPU limit.
memory allocated for pods without memory limit.
minimum CPUs allowed by Mesos.
minimum memory allowed by Mesos.

# Structs

ByRolesSorter sorts resources according to the ordering of roles.
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
ResourcePredicate is a predicate function on *mesos.Resource structs.
ResourcePredicate is a predicate function on *mesos.Resource structs.