v1alpha1

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

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

View Source
const (
	// Group the group for the apiextensions
	Group = "prism.oam.dev"
	// Version the version for the v1alpha1 apiextensions
	Version = "v1alpha1"
)

Variables

View Source
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)
)
View Source
var AddToScheme = func(scheme *runtime.Scheme) error {
	metav1.AddToGroupVersion(scheme, GroupVersion)

	scheme.AddKnownTypes(GroupVersion,
		&ApplicationResourceTracker{},
		&ApplicationResourceTrackerList{},
	)
	return nil
}

AddToScheme add ApplicationResourceTracker scheme

GroupVersion the apiextensions v1alpha1 group version

View Source
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

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

func (*ApplicationResourceTracker) DeepCopyInto

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

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

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

New returns a new instance of the resource

func (*ApplicationResourceTracker) NewList

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

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

func (*ApplicationResourceTrackerList) DeepCopyInto

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.

Jump to

Keyboard shortcuts

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