v1alpha1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API schema definitions for the aggregation.coder.com API group.

+k8s:deepcopy-gen=package +groupName=aggregation.coder.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects.
	SchemeGroupVersion = schema.GroupVersion{Group: "aggregation.coder.com", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)

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

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group-qualified GroupResource.

Types

type CoderTemplate

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

	Spec   CoderTemplateSpec   `json:"spec,omitempty"`
	Status CoderTemplateStatus `json:"status,omitempty"`
}

CoderTemplate is the schema for Coder template resources. metadata.name is <organization>.<template-name>.

func (*CoderTemplate) DeepCopy

func (in *CoderTemplate) DeepCopy() *CoderTemplate

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

func (*CoderTemplate) DeepCopyInto

func (in *CoderTemplate) DeepCopyInto(out *CoderTemplate)

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

func (*CoderTemplate) DeepCopyObject

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

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

type CoderTemplateList

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

CoderTemplateList contains a list of CoderTemplate objects.

func (*CoderTemplateList) DeepCopy

func (in *CoderTemplateList) DeepCopy() *CoderTemplateList

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

func (*CoderTemplateList) DeepCopyInto

func (in *CoderTemplateList) DeepCopyInto(out *CoderTemplateList)

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

func (*CoderTemplateList) DeepCopyObject

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

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

type CoderTemplateSpec

type CoderTemplateSpec struct {
	// Organization is the Coder organization name (must match the organization prefix in metadata.name).
	Organization string `json:"organization"`

	// VersionID is the Coder template version UUID used on creation (required for CREATE).
	VersionID string `json:"versionID"`

	DisplayName string `json:"displayName,omitempty"`
	Description string `json:"description,omitempty"`
	Icon        string `json:"icon,omitempty"`

	// Files is the template source tree for the active template version.
	//
	// Keys are slash-delimited relative paths (e.g. "main.tf").
	// Values are UTF-8 file contents.
	//
	// Populated on GET; intentionally omitted from LIST to keep responses small.
	// On CREATE/UPDATE with files, the server uploads source and creates a new template version.
	Files map[string]string `json:"files,omitempty"`

	// Running is a legacy flag retained temporarily for in-repo callers that still read template run-state directly.
	Running bool `json:"running,omitempty"`
}

CoderTemplateSpec defines the desired state of a CoderTemplate.

func (*CoderTemplateSpec) DeepCopy

func (in *CoderTemplateSpec) DeepCopy() *CoderTemplateSpec

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

func (*CoderTemplateSpec) DeepCopyInto

func (in *CoderTemplateSpec) DeepCopyInto(out *CoderTemplateSpec)

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

type CoderTemplateStatus

type CoderTemplateStatus struct {
	ID               string       `json:"id,omitempty"`
	OrganizationName string       `json:"organizationName,omitempty"`
	ActiveVersionID  string       `json:"activeVersionID,omitempty"`
	Deprecated       bool         `json:"deprecated,omitempty"`
	UpdatedAt        *metav1.Time `json:"updatedAt,omitempty"`

	// AutoShutdown is a legacy timestamp retained temporarily for in-repo callers that still surface template shutdown timestamps.
	AutoShutdown *metav1.Time `json:"autoShutdown,omitempty"`
}

CoderTemplateStatus defines the observed state of a CoderTemplate.

func (*CoderTemplateStatus) DeepCopy

func (in *CoderTemplateStatus) DeepCopy() *CoderTemplateStatus

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

func (*CoderTemplateStatus) DeepCopyInto

func (in *CoderTemplateStatus) DeepCopyInto(out *CoderTemplateStatus)

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

type CoderWorkspace

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

	Spec   CoderWorkspaceSpec   `json:"spec,omitempty"`
	Status CoderWorkspaceStatus `json:"status,omitempty"`
}

CoderWorkspace is the schema for Coder workspace resources. metadata.name is <organization>.<user>.<workspace-name>.

func (*CoderWorkspace) DeepCopy

func (in *CoderWorkspace) DeepCopy() *CoderWorkspace

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

func (*CoderWorkspace) DeepCopyInto

func (in *CoderWorkspace) DeepCopyInto(out *CoderWorkspace)

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

func (*CoderWorkspace) DeepCopyObject

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

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

type CoderWorkspaceList

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

CoderWorkspaceList contains a list of CoderWorkspace objects.

func (*CoderWorkspaceList) DeepCopy

func (in *CoderWorkspaceList) DeepCopy() *CoderWorkspaceList

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

func (*CoderWorkspaceList) DeepCopyInto

func (in *CoderWorkspaceList) DeepCopyInto(out *CoderWorkspaceList)

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

func (*CoderWorkspaceList) DeepCopyObject

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

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

type CoderWorkspaceSpec

type CoderWorkspaceSpec struct {
	// Organization is the Coder organization name.
	Organization string `json:"organization,omitempty"`

	// TemplateName resolves via TemplateByName(organization, templateName).
	TemplateName string `json:"templateName,omitempty"`

	// TemplateVersionID optionally pins to a specific template version.
	TemplateVersionID string `json:"templateVersionID,omitempty"`

	// Running drives start/stop via CreateWorkspaceBuild.
	Running bool `json:"running"`

	TTLMillis         *int64  `json:"ttlMillis,omitempty"`
	AutostartSchedule *string `json:"autostartSchedule,omitempty"`
}

CoderWorkspaceSpec defines the desired state of a CoderWorkspace.

func (*CoderWorkspaceSpec) DeepCopy

func (in *CoderWorkspaceSpec) DeepCopy() *CoderWorkspaceSpec

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

func (*CoderWorkspaceSpec) DeepCopyInto

func (in *CoderWorkspaceSpec) DeepCopyInto(out *CoderWorkspaceSpec)

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

type CoderWorkspaceStatus

type CoderWorkspaceStatus struct {
	ID               string `json:"id,omitempty"`
	OwnerName        string `json:"ownerName,omitempty"`
	OrganizationName string `json:"organizationName,omitempty"`
	TemplateName     string `json:"templateName,omitempty"`

	LatestBuildID     string `json:"latestBuildID,omitempty"`
	LatestBuildStatus string `json:"latestBuildStatus,omitempty"`

	AutoShutdown *metav1.Time `json:"autoShutdown,omitempty"`
	LastUsedAt   *metav1.Time `json:"lastUsedAt,omitempty"`
}

CoderWorkspaceStatus defines the observed state of a CoderWorkspace.

func (*CoderWorkspaceStatus) DeepCopy

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

func (*CoderWorkspaceStatus) DeepCopyInto

func (in *CoderWorkspaceStatus) DeepCopyInto(out *CoderWorkspaceStatus)

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