resourcequota

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceQuotaDetail

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

	// Scopes defines quota scopes
	Scopes []api.ResourceQuotaScope `json:"scopes,omitempty"`

	// StatusList is a set of (resource name, Used, Hard) tuple.
	StatusList map[api.ResourceName]ResourceStatus `json:"statusList,omitempty"`
}

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

func ToResourceQuotaDetail added in v1.4.2

func ToResourceQuotaDetail(rawResourceQuota *api.ResourceQuota) *ResourceQuotaDetail

type ResourceQuotaDetailList added in v1.4.2

type ResourceQuotaDetailList struct {
	ListMeta common.ListMeta       `json:"listMeta"`
	Items    []ResourceQuotaDetail `json:"items"`
}

ResourceQuotaDetailList

type ResourceStatus added in v1.4.2

type ResourceStatus struct {
	Used string `json:"used,omitempty"`
	Hard string `json:"hard,omitempty"`
}

ResourceStatus provides the status of the resource defined by a resource quota.

Jump to

Keyboard shortcuts

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