kubernetes/staging/src/k8s.io/kube-aggregator/pkg/apis/apiregistration/helpers.go

// SortedByGroupAndVersion sorts APIServices into their different groups, and then sorts them based on their versions.
// For example, the first element of the first array contains the APIService with the highest version number, in the
// group with the highest priority; while the last element of the last array contains the APIService with the lowest
// version number, in the group with the lowest priority.
func SortedByGroupAndVersion(servers []*APIService) [][]*APIService {}

type ByGroupPriorityMinimum

func (s ByGroupPriorityMinimum) Len() int      {}

func (s ByGroupPriorityMinimum) Swap(i, j int) {}

func (s ByGroupPriorityMinimum) Less(i, j int) bool {}

type ByVersionPriority

func (s ByVersionPriority) Len() int      {}

func (s ByVersionPriority) Swap(i, j int) {}

func (s ByVersionPriority) Less(i, j int) bool {}

// NewLocalAvailableAPIServiceCondition returns a condition for an available local APIService.
func NewLocalAvailableAPIServiceCondition() APIServiceCondition {}

// GetAPIServiceConditionByType gets an *APIServiceCondition by APIServiceConditionType if present
func GetAPIServiceConditionByType(apiService *APIService, conditionType APIServiceConditionType) *APIServiceCondition {}

// SetAPIServiceCondition sets the status condition.  It either overwrites the existing one or
// creates a new one
func SetAPIServiceCondition(apiService *APIService, newCondition APIServiceCondition) {}

// IsAPIServiceConditionTrue indicates if the condition is present and strictly true
func IsAPIServiceConditionTrue(apiService *APIService, conditionType APIServiceConditionType) bool {}