Documentation ¶
Overview ¶
Package v1alpha1 contains types required for v1alpha1 +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:defaulter-gen=TypeMeta +groupName=prism.oam.dev
Index ¶
- Constants
- Variables
- type ApplicationResourceTracker
- func (in *ApplicationResourceTracker) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)
- func (in *ApplicationResourceTracker) DeepCopy() *ApplicationResourceTracker
- func (in *ApplicationResourceTracker) DeepCopyInto(out *ApplicationResourceTracker)
- func (in *ApplicationResourceTracker) DeepCopyObject() runtime.Object
- func (in *ApplicationResourceTracker) Destroy()
- func (in *ApplicationResourceTracker) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (in *ApplicationResourceTracker) GetGroupVersionResource() schema.GroupVersionResource
- func (in *ApplicationResourceTracker) GetObjectMeta() *metav1.ObjectMeta
- func (in *ApplicationResourceTracker) IsStorageVersion() bool
- func (in *ApplicationResourceTracker) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
- func (in *ApplicationResourceTracker) NamespaceScoped() bool
- func (in *ApplicationResourceTracker) New() runtime.Object
- func (in *ApplicationResourceTracker) NewList() runtime.Object
- func (in *ApplicationResourceTracker) ShortNames() []string
- type ApplicationResourceTrackerList
Constants ¶
const ( // Group the group for the apiextensions Group = "prism.oam.dev" // Version the version for the v1alpha1 apiextensions Version = "v1alpha1" )
Variables ¶
var ( // ApplicationResourceTrackerResource resource name for ApplicationResourceTracker ApplicationResourceTrackerResource = "applicationresourcetrackers" // ApplicationResourceTrackerKind kind name for ApplicationResourceTracker ApplicationResourceTrackerKind = "ApplicationResourceTracker" // ApplicationResourceTrackerGroupResource GroupResource for ApplicationResourceTracker ApplicationResourceTrackerGroupResource = schema.GroupResource{Group: Group, Resource: ApplicationResourceTrackerResource} // ApplicationResourceTrackerGroupVersionKind GroupVersionKind for ApplicationResourceTracker ApplicationResourceTrackerGroupVersionKind = GroupVersion.WithKind(ApplicationResourceTrackerKind) )
var AddToScheme = func(scheme *runtime.Scheme) error { metav1.AddToGroupVersion(scheme, GroupVersion) scheme.AddKnownTypes(GroupVersion, &ApplicationResourceTracker{}, &ApplicationResourceTrackerList{}, ) return nil }
AddToScheme add ApplicationResourceTracker scheme
var GroupVersion = schema.GroupVersion{Group: Group, Version: Version}
GroupVersion the apiextensions v1alpha1 group version
var ( // ResourceTrackerGroupVersionKind the backend gvk of the target resource ResourceTrackerGroupVersionKind = schema.GroupVersionKind{ Group: "core.oam.dev", Version: "v1beta1", Kind: "ResourceTracker", } )
Functions ¶
This section is empty.
Types ¶
type ApplicationResourceTracker ¶
type ApplicationResourceTracker struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:pruning:PreserveUnknownFields Spec runtime.RawExtension `json:"spec,omitempty"` }
ApplicationResourceTracker is an extension model for ResourceTracker +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func NewApplicationResourceTrackerFromResourceTracker ¶
func NewApplicationResourceTrackerFromResourceTracker(rt *unstructured.Unstructured) (*ApplicationResourceTracker, error)
NewApplicationResourceTrackerFromResourceTracker convert KubeVela ResourceTracker to ApplicationResourceTracker
func (*ApplicationResourceTracker) ConvertToTable ¶
func (in *ApplicationResourceTracker) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)
ConvertToTable convert resource to table
func (*ApplicationResourceTracker) DeepCopy ¶
func (in *ApplicationResourceTracker) DeepCopy() *ApplicationResourceTracker
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationResourceTracker.
func (*ApplicationResourceTracker) DeepCopyInto ¶
func (in *ApplicationResourceTracker) DeepCopyInto(out *ApplicationResourceTracker)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApplicationResourceTracker) DeepCopyObject ¶
func (in *ApplicationResourceTracker) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ApplicationResourceTracker) Destroy ¶ added in v1.7.0
func (in *ApplicationResourceTracker) Destroy()
Destroy .
func (*ApplicationResourceTracker) Get ¶
func (in *ApplicationResourceTracker) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
Get finds a resource in the storage by name and returns it.
func (*ApplicationResourceTracker) GetGroupVersionResource ¶
func (in *ApplicationResourceTracker) GetGroupVersionResource() schema.GroupVersionResource
GetGroupVersionResource returns the GroupVersionResource for this resource.
func (*ApplicationResourceTracker) GetObjectMeta ¶
func (in *ApplicationResourceTracker) GetObjectMeta() *metav1.ObjectMeta
GetObjectMeta returns the object meta reference.
func (*ApplicationResourceTracker) IsStorageVersion ¶
func (in *ApplicationResourceTracker) IsStorageVersion() bool
IsStorageVersion returns true if the object is also the internal version
func (*ApplicationResourceTracker) List ¶
func (in *ApplicationResourceTracker) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
List selects resources in the storage which match to the selector. 'options' can be nil.
func (*ApplicationResourceTracker) NamespaceScoped ¶
func (in *ApplicationResourceTracker) NamespaceScoped() bool
NamespaceScoped returns if the object must be in a namespace.
func (*ApplicationResourceTracker) New ¶
func (in *ApplicationResourceTracker) New() runtime.Object
New returns a new instance of the resource
func (*ApplicationResourceTracker) NewList ¶
func (in *ApplicationResourceTracker) NewList() runtime.Object
NewList return a new list instance of the resource
func (*ApplicationResourceTracker) ShortNames ¶
func (in *ApplicationResourceTracker) ShortNames() []string
ShortNames delivers a list of short names for a resource.
type ApplicationResourceTrackerList ¶
type ApplicationResourceTrackerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ApplicationResourceTracker `json:"items"` }
ApplicationResourceTrackerList list for ApplicationResourceTracker +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*ApplicationResourceTrackerList) DeepCopy ¶
func (in *ApplicationResourceTrackerList) DeepCopy() *ApplicationResourceTrackerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationResourceTrackerList.
func (*ApplicationResourceTrackerList) DeepCopyInto ¶
func (in *ApplicationResourceTrackerList) DeepCopyInto(out *ApplicationResourceTrackerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApplicationResourceTrackerList) DeepCopyObject ¶
func (in *ApplicationResourceTrackerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.