v1beta1

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the view v1beta1 API group +kubebuilder:object:generate=true +groupName=view.open-cluster-management.io

Index

Constants

View Source
const (
	ReasonResourceNameInvalid string = "ResourceNameInvalid"
	ReasonResourceTypeInvalid string = "ResourceTypeInvalid"
	ReasonResourceGVKInvalid  string = "ResourceGVKInvalid"
	ReasonGetResourceFailed   string = "GetResourceFailed"
	ReasonGetResource         string = "GetResourceProcessing"
)
View Source
const (
	// ConditionViewProcessing means the view is processing.
	ConditionViewProcessing string = "Processing"
)

These are valid conditions of a cluster.

Variables

View Source
var (
	GroupName = "view.open-cluster-management.io"

	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type ManagedClusterView

type ManagedClusterView struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec defines the desired configuration of a view
	// +optional
	Spec ViewSpec `json:"spec,omitempty"`

	// Status describes current status of a view
	// +optional
	Status ViewStatus `json:"status,omitempty"`
}

ManagedClusterView is the view of resources on a managed cluster

func (*ManagedClusterView) DeepCopy

func (in *ManagedClusterView) DeepCopy() *ManagedClusterView

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

func (*ManagedClusterView) DeepCopyInto

func (in *ManagedClusterView) DeepCopyInto(out *ManagedClusterView)

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

func (*ManagedClusterView) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ManagedClusterViewList

type ManagedClusterViewList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`

	// List of ManagedClusterView objects.
	Items []ManagedClusterView `json:"items"`
}

ManagedClusterViewList is a list of all the ManagedClusterView

func (*ManagedClusterViewList) DeepCopy

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

func (*ManagedClusterViewList) DeepCopyInto

func (in *ManagedClusterViewList) DeepCopyInto(out *ManagedClusterViewList)

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

func (*ManagedClusterViewList) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ViewScope

type ViewScope struct {
	// Group is the api group of the resources
	Group string `json:"apiGroup,omitempty"`

	// Version is the version of the subject
	// +optional
	Version string `json:"version,omitempty"`

	// Kind is the kind of the subject
	// +optional
	Kind string `json:"kind,omitempty"`

	// Resource is the resource type of the subject
	// +optional
	Resource string `json:"resource,omitempty"`

	// Name is the name of the subject
	// +optional
	Name string `json:"name,omitempty"`

	// Name is the name of the subject
	// +optional
	Namespace string `json:"namespace,omitempty"`

	// UpdateIntervalSeconds is the interval to update view
	// +optional
	UpdateIntervalSeconds int32 `json:"updateIntervalSeconds,omitempty"`
}

ViewScope represents the scope of resources to be viewed

func (*ViewScope) DeepCopy

func (in *ViewScope) DeepCopy() *ViewScope

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

func (*ViewScope) DeepCopyInto

func (in *ViewScope) DeepCopyInto(out *ViewScope)

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

type ViewSpec

type ViewSpec struct {
	// Scope is the scope of the view on a cluster
	Scope ViewScope `json:"scope,omitempty"`
}

ViewSpec defines the desired configuration of a view

func (*ViewSpec) DeepCopy

func (in *ViewSpec) DeepCopy() *ViewSpec

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

func (*ViewSpec) DeepCopyInto

func (in *ViewSpec) DeepCopyInto(out *ViewSpec)

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

type ViewStatus

type ViewStatus struct {
	// Conditions represents the conditions of this resource on managed cluster
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty"`

	// Result references the related result of the view
	// +nullable
	// +optional
	// +kubebuilder:validation:EmbeddedResource
	// +kubebuilder:pruning:PreserveUnknownFields
	Result runtime.RawExtension `json:"result,omitempty"`
}

ViewStatus returns the status of the view

func (*ViewStatus) DeepCopy

func (in *ViewStatus) DeepCopy() *ViewStatus

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

func (*ViewStatus) DeepCopyInto

func (in *ViewStatus) DeepCopyInto(out *ViewStatus)

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