api

package
v1.5.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package api is the internal version of the API.

Index

Constants

View Source
const GroupName = ""

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

Functions

func ClusterResourceQuotaToSelectableFields

func ClusterResourceQuotaToSelectableFields(quota *ClusterResourceQuota) fields.Set

func DeepCopy_api_AppliedClusterResourceQuota

func DeepCopy_api_AppliedClusterResourceQuota(in interface{}, out interface{}, c *conversion.Cloner) error

func DeepCopy_api_AppliedClusterResourceQuotaList

func DeepCopy_api_AppliedClusterResourceQuotaList(in interface{}, out interface{}, c *conversion.Cloner) error

func DeepCopy_api_ClusterResourceQuota

func DeepCopy_api_ClusterResourceQuota(in interface{}, out interface{}, c *conversion.Cloner) error

func DeepCopy_api_ClusterResourceQuotaList

func DeepCopy_api_ClusterResourceQuotaList(in interface{}, out interface{}, c *conversion.Cloner) error

func DeepCopy_api_ClusterResourceQuotaSelector

func DeepCopy_api_ClusterResourceQuotaSelector(in interface{}, out interface{}, c *conversion.Cloner) error

func DeepCopy_api_ClusterResourceQuotaSpec

func DeepCopy_api_ClusterResourceQuotaSpec(in interface{}, out interface{}, c *conversion.Cloner) error

func DeepCopy_api_ClusterResourceQuotaStatus

func DeepCopy_api_ClusterResourceQuotaStatus(in interface{}, out interface{}, c *conversion.Cloner) error

func DeepCopy_api_ResourceQuotasStatusByNamespace

func DeepCopy_api_ResourceQuotasStatusByNamespace(in interface{}, out interface{}, 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 RegisterDeepCopies added in v1.4.0

func RegisterDeepCopies(scheme *runtime.Scheme) error

RegisterDeepCopies adds deep-copy functions to the given scheme. Public to allow building arbitrary schemes.

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 reconciliation 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) DeepCopy added in v1.3.2

DeepCopy implements a custom copy to correctly handle unexported fields Must match "func (t T) DeepCopy() T" for the deep copy generator to use it

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