v1alpha1

package
v0.0.0-...-1aaef2a Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0, BSD-3-Clause, CC-BY-3.0, + 1 more Imports: 4 Imported by: 9

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API.

Index

Constants

This section is empty.

Variables

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

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

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

type InstancesMeasure struct {
	ID    string `json:"id"`
	Value int    `json:"value"`
}

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

func (in *Sfevent) DeepCopy() *Sfevent

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Sfevent.

func (*Sfevent) DeepCopyInto

func (in *Sfevent) DeepCopyInto(out *Sfevent)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Sfevent) DeepCopyObject

func (in *Sfevent) DeepCopyObject() runtime.Object

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.

Jump to

Keyboard shortcuts

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