Documentation ¶
Overview ¶
Package v1alpha1 contains types required for v1alpha1 +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:defaulter-gen=TypeMeta +groupName=cue.oam.dev
Index ¶
Constants ¶
const ( // Group . Group = "cue.oam.dev" // Version . Version = "v1alpha1" )
const PackageResource = "packages"
PackageResource resource name for Package
Variables ¶
var AddToScheme = func(scheme *runtime.Scheme) error { metav1.AddToGroupVersion(scheme, GroupVersion) scheme.AddKnownTypes(GroupVersion, &Package{}, &PackageList{}) return nil }
AddToScheme .
var GroupVersion = schema.GroupVersion{Group: Group, Version: Version}
GroupVersion .
var PackageGroupVersionResource = GroupVersion.WithResource(PackageResource)
PackageGroupVersionResource GroupVersionResource for Package
Functions ¶
This section is empty.
Types ¶
type Package ¶
type Package struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PackageSpec `json:"spec"` }
Package is an extension for cuex engine +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:printcolumn:name="PATH",type=string,JSONPath=`.spec.path` +kubebuilder:printcolumn:name="PROTO",type=string,JSONPath=`.spec.provider.protocol` +kubebuilder:printcolumn:name="ENDPOINT",type=string,JSONPath=`.spec.provider.endpoint` +kubebuilder:resource:shortName={pkg,cpkg,cuepkg,cuepackage}
func (*Package) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Package.
func (*Package) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Package) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PackageList ¶
type PackageList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Package `json:"items"` }
PackageList list for Package +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*PackageList) DeepCopy ¶
func (in *PackageList) DeepCopy() *PackageList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PackageList.
func (*PackageList) DeepCopyInto ¶
func (in *PackageList) DeepCopyInto(out *PackageList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PackageList) DeepCopyObject ¶
func (in *PackageList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PackageSpec ¶
type PackageSpec struct { Path string `json:"path"` Provider *Provider `json:"provider,omitempty"` Templates map[string]string `json:"templates"` }
PackageSpec the spec for Package
func (*PackageSpec) DeepCopy ¶
func (in *PackageSpec) DeepCopy() *PackageSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PackageSpec.
func (*PackageSpec) DeepCopyInto ¶
func (in *PackageSpec) DeepCopyInto(out *PackageSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Provider ¶
type Provider struct { Protocol ProviderProtocol `json:"protocol"` Endpoint string `json:"endpoint"` }
Provider the external Provider in Package for cuex to run functions
func (*Provider) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Provider.
func (*Provider) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProviderProtocol ¶
type ProviderProtocol string
ProviderProtocol the protocol type for external Provider
const ( // ProtocolGRPC protocol type grpc for external Provider ProtocolGRPC ProviderProtocol = "grpc" // ProtocolHTTP protocol type http for external Provider ProtocolHTTP ProviderProtocol = "http" // ProtocolHTTPS protocol type https for external Provider ProtocolHTTPS ProviderProtocol = "https" )