v1alpha1

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

+k8s:openapi-gen=true +k8s:deepcopy-gen=package +k8s:defaulter-gen=TypeMeta +groupName=cost.k8s.appscode.com

Index

Constants

View Source
const (
	ResourceKindCostReport = "CostReport"
	ResourceCostReport     = "costreport"
	ResourceCostReports    = "costreports"
)
View Source
const GroupName = "cost.k8s.appscode.com"

Variables

View Source
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
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}

Functions

func RegisterDefaults added in v0.0.39

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) 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.

Jump to

Keyboard shortcuts

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