api

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const GroupName = ""

Variables

View Source
var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

Functions

func AddToScheme

func AddToScheme(scheme *runtime.Scheme)

func ClusterResourceQuotaToSelectableFields

func ClusterResourceQuotaToSelectableFields(quota *ClusterResourceQuota) fields.Set

func DeepCopy_api_ClusterResourceQuota

func DeepCopy_api_ClusterResourceQuota(in ClusterResourceQuota, out *ClusterResourceQuota, c *conversion.Cloner) error

func GetMatcher

func GetMatcher(selector ClusterResourceQuotaSelector) (func(obj runtime.Object) (bool, error), error)

func Kind

func Kind(kind string) unversioned.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) unversioned.GroupResource

Resource takes an unqualified resource and returns back a Group qualified GroupResource

Types

type AppliedClusterResourceQuota

type AppliedClusterResourceQuota struct {
	unversioned.TypeMeta
	// Standard object's metadata.
	kapi.ObjectMeta

	// Spec defines the desired quota
	Spec ClusterResourceQuotaSpec

	// Status defines the actual enforced quota and its current usage
	Status ClusterResourceQuotaStatus
}

AppliedClusterResourceQuota mirrors ClusterResourceQuota at a project scope, for projection into a project. It allows a project-admin to know which ClusterResourceQuotas are applied to his project and their associated usage.

func ConvertClusterResourceQuotaToAppliedClusterResourceQuota

func ConvertClusterResourceQuotaToAppliedClusterResourceQuota(in *ClusterResourceQuota) *AppliedClusterResourceQuota

ConvertClusterResourceQuotaToAppliedClusterQuota returns back a converted AppliedClusterResourceQuota which is NOT a deep copy.

func (*AppliedClusterResourceQuota) GetObjectKind

func (obj *AppliedClusterResourceQuota) GetObjectKind() unversioned.ObjectKind

type AppliedClusterResourceQuotaList

type AppliedClusterResourceQuotaList struct {
	unversioned.TypeMeta
	// Standard object's metadata.
	unversioned.ListMeta

	// Items is a list of AppliedClusterResourceQuota
	Items []AppliedClusterResourceQuota
}

AppliedClusterResourceQuotaList is a collection of AppliedClusterResourceQuotas

func (*AppliedClusterResourceQuotaList) GetObjectKind

type ClusterResourceQuota

type ClusterResourceQuota struct {
	unversioned.TypeMeta
	// Standard object's metadata.
	kapi.ObjectMeta

	// Spec defines the desired quota
	Spec ClusterResourceQuotaSpec

	// Status defines the actual enforced quota and its current usage
	Status ClusterResourceQuotaStatus
}

ClusterResourceQuota mirrors ResourceQuota at a cluster scope. This object is easily convertible to synthetic ResourceQuota object to allow quota evaluation re-use.

func ConvertAppliedClusterResourceQuotaToClusterResourceQuota

func ConvertAppliedClusterResourceQuotaToClusterResourceQuota(in *AppliedClusterResourceQuota) *ClusterResourceQuota

ConvertClusterResourceQuotaToAppliedClusterQuota returns back a converted AppliedClusterResourceQuota which is NOT a deep copy.

func (*ClusterResourceQuota) GetObjectKind

func (obj *ClusterResourceQuota) GetObjectKind() unversioned.ObjectKind

func (*ClusterResourceQuota) GetObjectMeta

func (obj *ClusterResourceQuota) GetObjectMeta() meta.Object

type ClusterResourceQuotaList

type ClusterResourceQuotaList struct {
	unversioned.TypeMeta
	// Standard object's metadata.
	unversioned.ListMeta

	// Items is a list of ClusterResourceQuotas
	Items []ClusterResourceQuota
}

ClusterResourceQuotaList is a collection of ClusterResourceQuotas

func (*ClusterResourceQuotaList) GetObjectKind

func (obj *ClusterResourceQuotaList) GetObjectKind() unversioned.ObjectKind

type ClusterResourceQuotaSelector

type ClusterResourceQuotaSelector struct {
	// LabelSelector is used to select projects by label.
	LabelSelector *unversioned.LabelSelector

	// AnnotationSelector is used to select projects by annotation.
	AnnotationSelector map[string]string
}

ClusterResourceQuotaSelector is used to select projects. At least one of LabelSelector or AnnotationSelector must present. If only one is present, it is the only selection criteria. If both are specified, the project must match both restrictions.

type ClusterResourceQuotaSpec

type ClusterResourceQuotaSpec struct {
	// Selector is the selector used to match projects.
	// It should only select active projects on the scale of dozens (though it can select
	// many more less active projects).  These projects will contend on object creation through
	// this resource.
	Selector ClusterResourceQuotaSelector

	// Quota defines the desired quota
	Quota kapi.ResourceQuotaSpec
}

ClusterResourceQuotaSpec defines the desired quota restrictions

type ClusterResourceQuotaStatus

type ClusterResourceQuotaStatus struct {
	// Total defines the actual enforced quota and its current usage across all projects
	Total kapi.ResourceQuotaStatus

	// Namespaces slices the usage by project.  This division allows for quick resolution of
	// deletion reconcilation inside of a single project without requiring a recalculation
	// across all projects.  This map can be used to pull the deltas for a given project.
	Namespaces ResourceQuotasStatusByNamespace
}

ClusterResourceQuotaStatus defines the actual enforced quota and its current usage

type ResourceQuotasStatusByNamespace

type ResourceQuotasStatusByNamespace struct {
	// contains filtered or unexported fields
}

ResourceQuotasStatusByNamespace provides type correct methods

func (*ResourceQuotasStatusByNamespace) Get

func (*ResourceQuotasStatusByNamespace) Insert

func (*ResourceQuotasStatusByNamespace) OrderedKeys

func (o *ResourceQuotasStatusByNamespace) OrderedKeys() *list.List

func (*ResourceQuotasStatusByNamespace) Remove

func (o *ResourceQuotasStatusByNamespace) Remove(key string)

Directories

Path Synopsis
Package v1 is the v1 version of the API.
Package v1 is the v1 version of the API.

Jump to

Keyboard shortcuts

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