v1

package
v3.6.0-alpha.1+incompa... Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

+groupName=quota.openshift.io Package v1 is the v1 version of the API.

Package v1 is a generated protocol buffer package.

It is generated from these files:
	github.com/openshift/origin/pkg/quota/api/v1/generated.proto

It has these top-level messages:
	AppliedClusterResourceQuota
	AppliedClusterResourceQuotaList
	ClusterResourceQuota
	ClusterResourceQuotaList
	ClusterResourceQuotaSelector
	ClusterResourceQuotaSpec
	ClusterResourceQuotaStatus
	ResourceQuotaStatusByNamespace

Index

Constants

View Source
const (
	GroupName       = "quota.openshift.io"
	LegacyGroupName = ""
)

Variables

View Source
var (
	ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	SchemeGroupVersion       = unversioned.GroupVersion{Group: GroupName, Version: "v1"}
	LegacySchemeGroupVersion = unversioned.GroupVersion{Group: LegacyGroupName, Version: "v1"}

	LegacySchemeBuilder    = runtime.NewSchemeBuilder(addLegacyKnownTypes)
	AddToSchemeInCoreGroup = LegacySchemeBuilder.AddToScheme

	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)

SchemeGroupVersion is group version used to register these objects

Functions

func Convert_api_AppliedClusterResourceQuotaList_To_v1_AppliedClusterResourceQuotaList

func Convert_api_AppliedClusterResourceQuotaList_To_v1_AppliedClusterResourceQuotaList(in *api.AppliedClusterResourceQuotaList, out *AppliedClusterResourceQuotaList, s conversion.Scope) error

func Convert_api_AppliedClusterResourceQuota_To_v1_AppliedClusterResourceQuota

func Convert_api_AppliedClusterResourceQuota_To_v1_AppliedClusterResourceQuota(in *api.AppliedClusterResourceQuota, out *AppliedClusterResourceQuota, s conversion.Scope) error

func Convert_api_ClusterResourceQuotaList_To_v1_ClusterResourceQuotaList

func Convert_api_ClusterResourceQuotaList_To_v1_ClusterResourceQuotaList(in *api.ClusterResourceQuotaList, out *ClusterResourceQuotaList, s conversion.Scope) error

func Convert_api_ClusterResourceQuotaSelector_To_v1_ClusterResourceQuotaSelector

func Convert_api_ClusterResourceQuotaSelector_To_v1_ClusterResourceQuotaSelector(in *api.ClusterResourceQuotaSelector, out *ClusterResourceQuotaSelector, s conversion.Scope) error

func Convert_api_ClusterResourceQuotaSpec_To_v1_ClusterResourceQuotaSpec

func Convert_api_ClusterResourceQuotaSpec_To_v1_ClusterResourceQuotaSpec(in *api.ClusterResourceQuotaSpec, out *ClusterResourceQuotaSpec, s conversion.Scope) error

func Convert_api_ClusterResourceQuotaStatus_To_v1_ClusterResourceQuotaStatus

func Convert_api_ClusterResourceQuotaStatus_To_v1_ClusterResourceQuotaStatus(in *api.ClusterResourceQuotaStatus, out *ClusterResourceQuotaStatus, s conversion.Scope) error

func Convert_api_ClusterResourceQuota_To_v1_ClusterResourceQuota

func Convert_api_ClusterResourceQuota_To_v1_ClusterResourceQuota(in *api.ClusterResourceQuota, out *ClusterResourceQuota, s conversion.Scope) error

func Convert_v1_AppliedClusterResourceQuotaList_To_api_AppliedClusterResourceQuotaList

func Convert_v1_AppliedClusterResourceQuotaList_To_api_AppliedClusterResourceQuotaList(in *AppliedClusterResourceQuotaList, out *api.AppliedClusterResourceQuotaList, s conversion.Scope) error

func Convert_v1_AppliedClusterResourceQuota_To_api_AppliedClusterResourceQuota

func Convert_v1_AppliedClusterResourceQuota_To_api_AppliedClusterResourceQuota(in *AppliedClusterResourceQuota, out *api.AppliedClusterResourceQuota, s conversion.Scope) error

func Convert_v1_ClusterResourceQuotaList_To_api_ClusterResourceQuotaList

func Convert_v1_ClusterResourceQuotaList_To_api_ClusterResourceQuotaList(in *ClusterResourceQuotaList, out *api.ClusterResourceQuotaList, s conversion.Scope) error

func Convert_v1_ClusterResourceQuotaSelector_To_api_ClusterResourceQuotaSelector

func Convert_v1_ClusterResourceQuotaSelector_To_api_ClusterResourceQuotaSelector(in *ClusterResourceQuotaSelector, out *api.ClusterResourceQuotaSelector, s conversion.Scope) error

func Convert_v1_ClusterResourceQuotaSpec_To_api_ClusterResourceQuotaSpec

func Convert_v1_ClusterResourceQuotaSpec_To_api_ClusterResourceQuotaSpec(in *ClusterResourceQuotaSpec, out *api.ClusterResourceQuotaSpec, s conversion.Scope) error

func Convert_v1_ClusterResourceQuotaStatus_To_api_ClusterResourceQuotaStatus

func Convert_v1_ClusterResourceQuotaStatus_To_api_ClusterResourceQuotaStatus(in *ClusterResourceQuotaStatus, out *api.ClusterResourceQuotaStatus, s conversion.Scope) error

func Convert_v1_ClusterResourceQuota_To_api_ClusterResourceQuota

func Convert_v1_ClusterResourceQuota_To_api_ClusterResourceQuota(in *ClusterResourceQuota, out *api.ClusterResourceQuota, s conversion.Scope) error

func DeepCopy_v1_AppliedClusterResourceQuota

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

func DeepCopy_v1_AppliedClusterResourceQuotaList

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

func DeepCopy_v1_ClusterResourceQuota

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

func DeepCopy_v1_ClusterResourceQuotaList

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

func DeepCopy_v1_ClusterResourceQuotaSelector

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

func DeepCopy_v1_ClusterResourceQuotaSpec

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

func DeepCopy_v1_ClusterResourceQuotaStatus

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

func DeepCopy_v1_ResourceQuotaStatusByNamespace

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

func Kind

func Kind(kind string) unversioned.GroupKind

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

func RegisterConversions added in v1.4.0

func RegisterConversions(scheme *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

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 RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func Resource

func Resource(resource string) unversioned.GroupResource

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

func SetObjectDefaults_AppliedClusterResourceQuota

func SetObjectDefaults_AppliedClusterResourceQuota(in *AppliedClusterResourceQuota)

func SetObjectDefaults_AppliedClusterResourceQuotaList

func SetObjectDefaults_AppliedClusterResourceQuotaList(in *AppliedClusterResourceQuotaList)

func SetObjectDefaults_ClusterResourceQuota

func SetObjectDefaults_ClusterResourceQuota(in *ClusterResourceQuota)

func SetObjectDefaults_ClusterResourceQuotaList

func SetObjectDefaults_ClusterResourceQuotaList(in *ClusterResourceQuotaList)

Types

type AppliedClusterResourceQuota

type AppliedClusterResourceQuota struct {
	unversioned.TypeMeta `json:",inline"`
	// Standard object's metadata.
	kapi.ObjectMeta `json:"metadata" protobuf:"bytes,1,opt,name=metadata"`

	// Spec defines the desired quota
	Spec ClusterResourceQuotaSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"`

	// Status defines the actual enforced quota and its current usage
	Status ClusterResourceQuotaStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

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 (*AppliedClusterResourceQuota) Descriptor added in v1.4.0

func (*AppliedClusterResourceQuota) Descriptor() ([]byte, []int)

func (*AppliedClusterResourceQuota) Marshal

func (m *AppliedClusterResourceQuota) Marshal() (data []byte, err error)

func (*AppliedClusterResourceQuota) MarshalTo

func (m *AppliedClusterResourceQuota) MarshalTo(data []byte) (int, error)

func (*AppliedClusterResourceQuota) ProtoMessage

func (*AppliedClusterResourceQuota) ProtoMessage()

func (*AppliedClusterResourceQuota) Reset

func (m *AppliedClusterResourceQuota) Reset()

func (*AppliedClusterResourceQuota) Size

func (m *AppliedClusterResourceQuota) Size() (n int)

func (*AppliedClusterResourceQuota) String

func (this *AppliedClusterResourceQuota) String() string

func (AppliedClusterResourceQuota) SwaggerDoc

func (AppliedClusterResourceQuota) SwaggerDoc() map[string]string

func (*AppliedClusterResourceQuota) Unmarshal

func (m *AppliedClusterResourceQuota) Unmarshal(data []byte) error

type AppliedClusterResourceQuotaList

type AppliedClusterResourceQuotaList struct {
	unversioned.TypeMeta `json:",inline"`
	// Standard object's metadata.
	unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// Items is a list of AppliedClusterResourceQuota
	Items []AppliedClusterResourceQuota `json:"items" protobuf:"bytes,2,rep,name=items"`
}

AppliedClusterResourceQuotaList is a collection of AppliedClusterResourceQuotas

func (*AppliedClusterResourceQuotaList) Descriptor added in v1.4.0

func (*AppliedClusterResourceQuotaList) Descriptor() ([]byte, []int)

func (*AppliedClusterResourceQuotaList) Marshal

func (m *AppliedClusterResourceQuotaList) Marshal() (data []byte, err error)

func (*AppliedClusterResourceQuotaList) MarshalTo

func (m *AppliedClusterResourceQuotaList) MarshalTo(data []byte) (int, error)

func (*AppliedClusterResourceQuotaList) ProtoMessage

func (*AppliedClusterResourceQuotaList) ProtoMessage()

func (*AppliedClusterResourceQuotaList) Reset

func (*AppliedClusterResourceQuotaList) Size

func (m *AppliedClusterResourceQuotaList) Size() (n int)

func (*AppliedClusterResourceQuotaList) String

func (this *AppliedClusterResourceQuotaList) String() string

func (AppliedClusterResourceQuotaList) SwaggerDoc

func (*AppliedClusterResourceQuotaList) Unmarshal

func (m *AppliedClusterResourceQuotaList) Unmarshal(data []byte) error

type ClusterResourceQuota

type ClusterResourceQuota struct {
	unversioned.TypeMeta `json:",inline"`
	// Standard object's metadata.
	kapi.ObjectMeta `json:"metadata" protobuf:"bytes,1,opt,name=metadata"`

	// Spec defines the desired quota
	Spec ClusterResourceQuotaSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"`

	// Status defines the actual enforced quota and its current usage
	Status ClusterResourceQuotaStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

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

func (*ClusterResourceQuota) Descriptor added in v1.4.0

func (*ClusterResourceQuota) Descriptor() ([]byte, []int)

func (*ClusterResourceQuota) Marshal

func (m *ClusterResourceQuota) Marshal() (data []byte, err error)

func (*ClusterResourceQuota) MarshalTo

func (m *ClusterResourceQuota) MarshalTo(data []byte) (int, error)

func (*ClusterResourceQuota) ProtoMessage

func (*ClusterResourceQuota) ProtoMessage()

func (*ClusterResourceQuota) Reset

func (m *ClusterResourceQuota) Reset()

func (*ClusterResourceQuota) Size

func (m *ClusterResourceQuota) Size() (n int)

func (*ClusterResourceQuota) String

func (this *ClusterResourceQuota) String() string

func (ClusterResourceQuota) SwaggerDoc

func (ClusterResourceQuota) SwaggerDoc() map[string]string

func (*ClusterResourceQuota) Unmarshal

func (m *ClusterResourceQuota) Unmarshal(data []byte) error

type ClusterResourceQuotaList

type ClusterResourceQuotaList struct {
	unversioned.TypeMeta `json:",inline"`
	// Standard object's metadata.
	unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// Items is a list of ClusterResourceQuotas
	Items []ClusterResourceQuota `json:"items" protobuf:"bytes,2,rep,name=items"`
}

ClusterResourceQuotaList is a collection of ClusterResourceQuotas

func (*ClusterResourceQuotaList) Descriptor added in v1.4.0

func (*ClusterResourceQuotaList) Descriptor() ([]byte, []int)

func (*ClusterResourceQuotaList) Marshal

func (m *ClusterResourceQuotaList) Marshal() (data []byte, err error)

func (*ClusterResourceQuotaList) MarshalTo

func (m *ClusterResourceQuotaList) MarshalTo(data []byte) (int, error)

func (*ClusterResourceQuotaList) ProtoMessage

func (*ClusterResourceQuotaList) ProtoMessage()

func (*ClusterResourceQuotaList) Reset

func (m *ClusterResourceQuotaList) Reset()

func (*ClusterResourceQuotaList) Size

func (m *ClusterResourceQuotaList) Size() (n int)

func (*ClusterResourceQuotaList) String

func (this *ClusterResourceQuotaList) String() string

func (ClusterResourceQuotaList) SwaggerDoc

func (ClusterResourceQuotaList) SwaggerDoc() map[string]string

func (*ClusterResourceQuotaList) Unmarshal

func (m *ClusterResourceQuotaList) Unmarshal(data []byte) error

type ClusterResourceQuotaSelector

type ClusterResourceQuotaSelector struct {
	// LabelSelector is used to select projects by label.
	LabelSelector *unversioned.LabelSelector `json:"labels" protobuf:"bytes,1,opt,name=labels"`

	// AnnotationSelector is used to select projects by annotation.
	AnnotationSelector map[string]string `json:"annotations" protobuf:"bytes,2,rep,name=annotations"`
}

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.

func (*ClusterResourceQuotaSelector) Descriptor added in v1.4.0

func (*ClusterResourceQuotaSelector) Descriptor() ([]byte, []int)

func (*ClusterResourceQuotaSelector) Marshal

func (m *ClusterResourceQuotaSelector) Marshal() (data []byte, err error)

func (*ClusterResourceQuotaSelector) MarshalTo

func (m *ClusterResourceQuotaSelector) MarshalTo(data []byte) (int, error)

func (*ClusterResourceQuotaSelector) ProtoMessage

func (*ClusterResourceQuotaSelector) ProtoMessage()

func (*ClusterResourceQuotaSelector) Reset

func (m *ClusterResourceQuotaSelector) Reset()

func (*ClusterResourceQuotaSelector) Size

func (m *ClusterResourceQuotaSelector) Size() (n int)

func (*ClusterResourceQuotaSelector) String

func (this *ClusterResourceQuotaSelector) String() string

func (ClusterResourceQuotaSelector) SwaggerDoc

func (ClusterResourceQuotaSelector) SwaggerDoc() map[string]string

func (*ClusterResourceQuotaSelector) Unmarshal

func (m *ClusterResourceQuotaSelector) Unmarshal(data []byte) error

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 `json:"selector" protobuf:"bytes,1,opt,name=selector"`

	// Quota defines the desired quota
	Quota kapi.ResourceQuotaSpec `json:"quota" protobuf:"bytes,2,opt,name=quota"`
}

ClusterResourceQuotaSpec defines the desired quota restrictions

func (*ClusterResourceQuotaSpec) Descriptor added in v1.4.0

func (*ClusterResourceQuotaSpec) Descriptor() ([]byte, []int)

func (*ClusterResourceQuotaSpec) Marshal

func (m *ClusterResourceQuotaSpec) Marshal() (data []byte, err error)

func (*ClusterResourceQuotaSpec) MarshalTo

func (m *ClusterResourceQuotaSpec) MarshalTo(data []byte) (int, error)

func (*ClusterResourceQuotaSpec) ProtoMessage

func (*ClusterResourceQuotaSpec) ProtoMessage()

func (*ClusterResourceQuotaSpec) Reset

func (m *ClusterResourceQuotaSpec) Reset()

func (*ClusterResourceQuotaSpec) Size

func (m *ClusterResourceQuotaSpec) Size() (n int)

func (*ClusterResourceQuotaSpec) String

func (this *ClusterResourceQuotaSpec) String() string

func (ClusterResourceQuotaSpec) SwaggerDoc

func (ClusterResourceQuotaSpec) SwaggerDoc() map[string]string

func (*ClusterResourceQuotaSpec) Unmarshal

func (m *ClusterResourceQuotaSpec) Unmarshal(data []byte) error

type ClusterResourceQuotaStatus

type ClusterResourceQuotaStatus struct {
	// Total defines the actual enforced quota and its current usage across all projects
	Total kapi.ResourceQuotaStatus `json:"total" protobuf:"bytes,1,opt,name=total"`

	// 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 can be used to pull the deltas for a given project.
	Namespaces ResourceQuotasStatusByNamespace `json:"namespaces" protobuf:"bytes,2,rep,name=namespaces,casttype=ResourceQuotasStatusByNamespace"`
}

ClusterResourceQuotaStatus defines the actual enforced quota and its current usage

func (*ClusterResourceQuotaStatus) Descriptor added in v1.4.0

func (*ClusterResourceQuotaStatus) Descriptor() ([]byte, []int)

func (*ClusterResourceQuotaStatus) Marshal

func (m *ClusterResourceQuotaStatus) Marshal() (data []byte, err error)

func (*ClusterResourceQuotaStatus) MarshalTo

func (m *ClusterResourceQuotaStatus) MarshalTo(data []byte) (int, error)

func (*ClusterResourceQuotaStatus) ProtoMessage

func (*ClusterResourceQuotaStatus) ProtoMessage()

func (*ClusterResourceQuotaStatus) Reset

func (m *ClusterResourceQuotaStatus) Reset()

func (*ClusterResourceQuotaStatus) Size

func (m *ClusterResourceQuotaStatus) Size() (n int)

func (*ClusterResourceQuotaStatus) String

func (this *ClusterResourceQuotaStatus) String() string

func (ClusterResourceQuotaStatus) SwaggerDoc

func (ClusterResourceQuotaStatus) SwaggerDoc() map[string]string

func (*ClusterResourceQuotaStatus) Unmarshal

func (m *ClusterResourceQuotaStatus) Unmarshal(data []byte) error

type ResourceQuotaStatusByNamespace

type ResourceQuotaStatusByNamespace struct {
	// Namespace the project this status applies to
	Namespace string `json:"namespace" protobuf:"bytes,1,opt,name=namespace"`

	// Status indicates how many resources have been consumed by this project
	Status kapi.ResourceQuotaStatus `json:"status" protobuf:"bytes,2,opt,name=status"`
}

ResourceQuotaStatusByNamespace gives status for a particular project

func (*ResourceQuotaStatusByNamespace) Descriptor added in v1.4.0

func (*ResourceQuotaStatusByNamespace) Descriptor() ([]byte, []int)

func (*ResourceQuotaStatusByNamespace) Marshal

func (m *ResourceQuotaStatusByNamespace) Marshal() (data []byte, err error)

func (*ResourceQuotaStatusByNamespace) MarshalTo

func (m *ResourceQuotaStatusByNamespace) MarshalTo(data []byte) (int, error)

func (*ResourceQuotaStatusByNamespace) ProtoMessage

func (*ResourceQuotaStatusByNamespace) ProtoMessage()

func (*ResourceQuotaStatusByNamespace) Reset

func (m *ResourceQuotaStatusByNamespace) Reset()

func (*ResourceQuotaStatusByNamespace) Size

func (m *ResourceQuotaStatusByNamespace) Size() (n int)

func (*ResourceQuotaStatusByNamespace) String

func (this *ResourceQuotaStatusByNamespace) String() string

func (ResourceQuotaStatusByNamespace) SwaggerDoc

func (ResourceQuotaStatusByNamespace) SwaggerDoc() map[string]string

func (*ResourceQuotaStatusByNamespace) Unmarshal

func (m *ResourceQuotaStatusByNamespace) Unmarshal(data []byte) error

type ResourceQuotasStatusByNamespace

type ResourceQuotasStatusByNamespace []ResourceQuotaStatusByNamespace

ResourceQuotasStatusByNamespace bundles multiple ResourceQuotaStatusByNamespace

Jump to

Keyboard shortcuts

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