resourcequota

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceQuota

type ResourceQuota struct {
	ObjectMeta common.ObjectMeta `json: "objectMeta"`
	TypeMeta   common.TypeMeta   `json : "typeMeta"`
}

ResourceQuota provides the simplified presentation layer view of Kubernetes Resource Quota resource.

type ResourceQuotaCell

type ResourceQuotaCell api.ResourceQuota

func (ResourceQuotaCell) GetProperty

type ResourceQuotaDetail

type ResourceQuotaDetail struct {
	ObjectMeta common.ObjectMeta `json:objectMeta`
	TypeMeta   common.TypeMeta   `json:typeMeta`

	// Spec defines the desired quota
	Spec api.ResourceQuotaSpec `json:"spec,omitempty"`

	// Status defines the actual enforced quota and its current usage
	Status api.ResourceQuotaStatus `json:"status,omitempty"`
}

ResourceQuotaDetail provides the presentation layer view of Kubernetes Resource Quotas resource.

func GetResourceQuotaDetail

func GetResourceQuotaDetail(client *client.Client, namespace, name string) (*ResourceQuotaDetail, error)

GetResourceQuotaDetail returns returns detailed information about a resource quota

type ResourceQuotaList

type ResourceQuotaList struct {
	ListMeta common.ListMeta `json : "listMeta"`
	// Unordered list of Rersource Quotas
	Items []ResourceQuota `json : "items"`
}

ResourceQuotaList contains a list of Resource Quotas in a cluster.

func GetResourceQuotaList

func GetResourceQuotaList(client *client.Client, nsQuery *common.NamespaceQuery,
	dsQuery *dataselect.DataSelectQuery) (*ResourceQuotaList, error)

GetResourceQuotaList returns a list of all Resource Quotas in the cluster.

func GetResourceQuotaListFromChannels

func GetResourceQuotaListFromChannels(channels *common.ResourceChannels, nsQuery *common.NamespaceQuery,
	dsQuery *dataselect.DataSelectQuery) (*ResourceQuotaList, error)

GetResourceQuotaListFromChannels returns a list of all Resource Quotas in the cluster reading required resource list once from the channels.

Jump to

Keyboard shortcuts

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