v1alpha1

package
v0.0.0-...-cb42e1a Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=workspaces.konflux-ci.dev

Index

Constants

View Source
const (
	// WorkspaceVisibilityCommunity Community value for Workspaces visibility
	WorkspaceVisibilityCommunity WorkspaceVisibility = "community"
	// WorkspaceVisibilityPrivate Private value for Workspaces visibility
	WorkspaceVisibilityPrivate WorkspaceVisibility = "private"

	// LabelIsOwner if the requesting user is the owner of the workspace
	LabelIsOwner string = workspacesv1alpha1.LabelInternalDomain + "is-owner"
	// LabelHasDirectAccess if the requesting user has access to the workspace
	// via a direct grant or via public-viewer
	LabelHasDirectAccess string = workspacesv1alpha1.LabelInternalDomain + "has-direct-access"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "workspaces.konflux-ci.dev", Version: "v1alpha1"}

	// 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 SpaceInfo

type SpaceInfo struct {
	//+required
	Name string `json:"name"`

	// TargetCluster contains the URL to the cluster where the workspace's namespaces live
	//+optional
	TargetCluster string `json:"targetCluster,omitempty"`
}

SpaceInfo Information about a Space

func (*SpaceInfo) DeepCopy

func (in *SpaceInfo) DeepCopy() *SpaceInfo

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

func (*SpaceInfo) DeepCopyInto

func (in *SpaceInfo) DeepCopyInto(out *SpaceInfo)

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

type UserInfoStatus

type UserInfoStatus struct {
	//+required
	Email string `json:"email"`
}

UserInfoStatus User info stored in the status

func (*UserInfoStatus) DeepCopy

func (in *UserInfoStatus) DeepCopy() *UserInfoStatus

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

func (*UserInfoStatus) DeepCopyInto

func (in *UserInfoStatus) DeepCopyInto(out *UserInfoStatus)

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

type Workspace

type Workspace struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   WorkspaceSpec   `json:"spec,omitempty"`
	Status WorkspaceStatus `json:"status,omitempty"`
}

Workspace is the Schema for the workspaces API

func (*Workspace) DeepCopy

func (in *Workspace) DeepCopy() *Workspace

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

func (*Workspace) DeepCopyInto

func (in *Workspace) DeepCopyInto(out *Workspace)

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

func (*Workspace) DeepCopyObject

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

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

type WorkspaceList

type WorkspaceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Workspace `json:"items"`
}

WorkspaceList contains a list of Workspace

func (*WorkspaceList) DeepCopy

func (in *WorkspaceList) DeepCopy() *WorkspaceList

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

func (*WorkspaceList) DeepCopyInto

func (in *WorkspaceList) DeepCopyInto(out *WorkspaceList)

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

func (*WorkspaceList) DeepCopyObject

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

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

type WorkspaceSpec

type WorkspaceSpec struct {
	//+required
	//+kubebuilder:validation:Enum:=community;private
	Visibility WorkspaceVisibility `json:"visibility"`
}

WorkspaceSpec defines the desired state of Workspace

func (*WorkspaceSpec) DeepCopy

func (in *WorkspaceSpec) DeepCopy() *WorkspaceSpec

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

func (*WorkspaceSpec) DeepCopyInto

func (in *WorkspaceSpec) DeepCopyInto(out *WorkspaceSpec)

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

type WorkspaceStatus

type WorkspaceStatus struct {
	//+optional
	Space *SpaceInfo `json:"space,omitempty"`
	//+optional
	Owner *UserInfoStatus `json:"owner,omitempty"`
	//+optional
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

WorkspaceStatus defines the observed state of Workspace

func (*WorkspaceStatus) DeepCopy

func (in *WorkspaceStatus) DeepCopy() *WorkspaceStatus

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

func (*WorkspaceStatus) DeepCopyInto

func (in *WorkspaceStatus) DeepCopyInto(out *WorkspaceStatus)

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

type WorkspaceVisibility

type WorkspaceVisibility string

Jump to

Keyboard shortcuts

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