Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder collects the scheme builder functions SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme adds all types of this clientset into the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: instance.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type ConsumerInfo ¶
type ConsumerInfo struct { Environment string `json:"environment"` Region string `json:"region"` Org string `json:"org"` Space string `json:"space"` Instance string `json:"instance"` }
ConsumerInfo holds the consumer related details
func (*ConsumerInfo) DeepCopy ¶
func (in *ConsumerInfo) DeepCopy() *ConsumerInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConsumerInfo.
func (*ConsumerInfo) DeepCopyInto ¶
func (in *ConsumerInfo) DeepCopyInto(out *ConsumerInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstancesMeasure ¶
InstancesMeasure holds the measured values
func (*InstancesMeasure) DeepCopy ¶
func (in *InstancesMeasure) DeepCopy() *InstancesMeasure
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstancesMeasure.
func (*InstancesMeasure) DeepCopyInto ¶
func (in *InstancesMeasure) DeepCopyInto(out *InstancesMeasure)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceInfo ¶
type ServiceInfo struct { // Store the service guid and plan guid here // will be enriched to servcie name and plan sku //.before sending to metering ID string `json:"service_guid"` Plan string `json:"plan_guid"` }
ServiceInfo holds the service id and plan id
func (*ServiceInfo) DeepCopy ¶
func (in *ServiceInfo) DeepCopy() *ServiceInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceInfo.
func (*ServiceInfo) DeepCopyInto ¶
func (in *ServiceInfo) DeepCopyInto(out *ServiceInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Sfevent ¶
type Sfevent struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SfeventSpec `json:"spec"` Status SfeventStatus `json:"status"` }
Sfevent is a specification for a Sfevent resource
func (*Sfevent) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Sfevent.
func (*Sfevent) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Sfevent) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SfeventList ¶
type SfeventList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Sfevent `json:"items"` }
SfeventList is a list of Sfevent resources
func (*SfeventList) DeepCopy ¶
func (in *SfeventList) DeepCopy() *SfeventList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SfeventList.
func (*SfeventList) DeepCopyInto ¶
func (in *SfeventList) DeepCopyInto(out *SfeventList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SfeventList) DeepCopyObject ¶
func (in *SfeventList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SfeventOptions ¶
type SfeventOptions struct { ID string `json:"id"` Timestamp string `json:"timestamp"` ServiceInfo ServiceInfo `json:"service"` ConsumerInfo ConsumerInfo `json:"consumer"` InstancesMeasures []InstancesMeasure `json:"measures"` }
SfeventOptions represents the options field of Sfevent Resource models schema here: https://wiki.wdf.sap.corp/wiki/display/CPC15N/Usage+Document+Detailed+Schema
func (*SfeventOptions) DeepCopy ¶
func (in *SfeventOptions) DeepCopy() *SfeventOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SfeventOptions.
func (*SfeventOptions) DeepCopyInto ¶
func (in *SfeventOptions) DeepCopyInto(out *SfeventOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SfeventSpec ¶
type SfeventSpec struct {
Options SfeventOptions `json:"options,omitempty"`
}
SfeventSpec is the spec for a Sfevent resource
func (*SfeventSpec) DeepCopy ¶
func (in *SfeventSpec) DeepCopy() *SfeventSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SfeventSpec.
func (*SfeventSpec) DeepCopyInto ¶
func (in *SfeventSpec) DeepCopyInto(out *SfeventSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SfeventStatus ¶
type SfeventStatus struct { Error string `json:"error,omitempty"` Response string `json:"response,omitempty"` State string `json:"state,omitempty"` }
SfeventStatus is the status for a Sfevent resource
func (*SfeventStatus) DeepCopy ¶
func (in *SfeventStatus) DeepCopy() *SfeventStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SfeventStatus.
func (*SfeventStatus) DeepCopyInto ¶
func (in *SfeventStatus) DeepCopyInto(out *SfeventStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.