Documentation ¶
Overview ¶
+k8s:openapi-gen=true +k8s:deepcopy-gen=package +k8s:defaulter-gen=TypeMeta +groupName=cost.k8s.appscode.com
Index ¶
Constants ¶
const ( ResourceKindCostReport = "CostReport" ResourceCostReport = "costreport" ResourceCostReports = "costreports" )
const GroupName = "cost.k8s.appscode.com"
Variables ¶
var ( // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
func RegisterDefaults ¶ added in v0.0.39
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) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type AccumulateOption ¶
type AccumulateOption string
const ( AccumulateOptionNone AccumulateOption = "" AccumulateOptionAll AccumulateOption = "all" AccumulateOptionHour AccumulateOption = "hour" AccumulateOptionDay AccumulateOption = "day" AccumulateOptionWeek AccumulateOption = "week" AccumulateOptionMonth AccumulateOption = "month" AccumulateOptionQuarter AccumulateOption = "quarter" )
type CostReport ¶
type CostReport struct { metav1.TypeMeta `json:",inline"` // +optional Request *CostReportRequest `json:"request,omitempty"` // +optional Response *apiextensionsv1.JSON `json:"response,omitempty"` }
func (*CostReport) DeepCopy ¶
func (in *CostReport) DeepCopy() *CostReport
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CostReport.
func (*CostReport) DeepCopyInto ¶
func (in *CostReport) DeepCopyInto(out *CostReport)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CostReport) DeepCopyObject ¶
func (in *CostReport) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CostReportRequest ¶
type CostReportRequest struct { Window string `json:"window,omitempty" schema:"window,omitempty"` Resolution string `json:"resolution,omitempty" schema:"resolution,omitempty"` Step string `json:"step,omitempty" schema:"step,omitempty"` Aggregate []string `json:"aggregate,omitempty" schema:"-"` AggregateList string `json:"-" schema:"aggregate,omitempty"` IncludeIdle bool `json:"includeIdle,omitempty" schema:"includeIdle,omitempty"` Accumulate bool `json:"accumulate,omitempty" schema:"accumulate,omitempty"` AccumulateBy AccumulateOption `json:"accumulateBy,omitempty" schema:"accumulateBy,omitempty"` IdleByNode bool `json:"idleByNode,omitempty" schema:"idleByNode,omitempty"` IncludeProportionalAssetResourceCosts bool `json:"includeProportionalAssetResourceCosts,omitempty" schema:"includeProportionalAssetResourceCosts,omitempty"` IncludeAggregatedMetadata bool `json:"includeAggregatedMetadata,omitempty" schema:"includeAggregatedMetadata,omitempty"` }
func (*CostReportRequest) DeepCopy ¶
func (in *CostReportRequest) DeepCopy() *CostReportRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CostReportRequest.
func (*CostReportRequest) DeepCopyInto ¶
func (in *CostReportRequest) DeepCopyInto(out *CostReportRequest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.