v1alpha1

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 CoderTemplateVersion added in v0.1.3

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

	Spec   CoderTemplateVersionSpec   `json:"spec,omitempty"`
	Status CoderTemplateVersionStatus `json:"status,omitempty"`
}

CoderTemplateVersion is a read-only view of a Coder template version. metadata.name is <organization>.<template-name>.<version-name>; the version name can contain ".".

func (*CoderTemplateVersion) DeepCopy added in v0.1.3

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

func (*CoderTemplateVersion) DeepCopyInto added in v0.1.3

func (in *CoderTemplateVersion) DeepCopyInto(out *CoderTemplateVersion)

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

func (*CoderTemplateVersion) DeepCopyObject added in v0.1.3

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

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

type CoderTemplateVersionJob added in v0.1.3

type CoderTemplateVersionJob struct {
	// Status is the Coder provisioner job status, for example succeeded or failed.
	Status string `json:"status"`
	// ErrorCode is the Coder job error code, if the job failed with one.
	ErrorCode string `json:"errorCode,omitempty"`
	// StartedAt is when the import job started.
	StartedAt *metav1.Time `json:"startedAt,omitempty"`
	// CompletedAt is when the import job completed.
	CompletedAt *metav1.Time `json:"completedAt,omitempty"`
}

CoderTemplateVersionJob summarizes the import job of a template version. The job error text is not exposed: Terraform output can contain secrets.

func (*CoderTemplateVersionJob) DeepCopy added in v0.1.3

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

func (*CoderTemplateVersionJob) DeepCopyInto added in v0.1.3

func (in *CoderTemplateVersionJob) DeepCopyInto(out *CoderTemplateVersionJob)

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

type CoderTemplateVersionList added in v0.1.3

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

CoderTemplateVersionList contains a list of CoderTemplateVersion objects.

func (*CoderTemplateVersionList) DeepCopy added in v0.1.3

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

func (*CoderTemplateVersionList) DeepCopyInto added in v0.1.3

func (in *CoderTemplateVersionList) DeepCopyInto(out *CoderTemplateVersionList)

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

func (*CoderTemplateVersionList) DeepCopyObject added in v0.1.3

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

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

type CoderTemplateVersionPromotion added in v0.1.3

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

	Spec   CoderTemplateVersionPromotionSpec   `json:"spec"`
	Status CoderTemplateVersionPromotionStatus `json:"status,omitempty"`
}

CoderTemplateVersionPromotion is the request and response body of the codertemplates/promote subresource. It activates one version of a template; rollback is a promotion of an older version.

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*CoderTemplateVersionPromotion) DeepCopy added in v0.1.3

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

func (*CoderTemplateVersionPromotion) DeepCopyInto added in v0.1.3

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

func (*CoderTemplateVersionPromotion) DeepCopyObject added in v0.1.3

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

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

type CoderTemplateVersionPromotionResult added in v0.1.3

type CoderTemplateVersionPromotionResult string

CoderTemplateVersionPromotionResult is the outcome of a promotion request.

const (
	// PromotionResultPromoted means that the requested version is active after this request, as a
	// re-read of the template confirmed. This request or a concurrent one activated it.
	PromotionResultPromoted CoderTemplateVersionPromotionResult = "Promoted"
	// PromotionResultAlreadyActive means that the version was already active, so nothing changed.
	PromotionResultAlreadyActive CoderTemplateVersionPromotionResult = "AlreadyActive"
	// PromotionResultWouldPromote means that a dry-run request found that a real request would
	// change the active version. Nothing changed.
	PromotionResultWouldPromote CoderTemplateVersionPromotionResult = "WouldPromote"
)

type CoderTemplateVersionPromotionSpec added in v0.1.3

type CoderTemplateVersionPromotionSpec struct {
	// VersionID is the Coder ID (a UUID) of the template version to activate. It must be a version of
	// the template named in the request path.
	VersionID string `json:"versionID"`
}

CoderTemplateVersionPromotionSpec names the template version to activate.

func (*CoderTemplateVersionPromotionSpec) DeepCopy added in v0.1.3

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

func (*CoderTemplateVersionPromotionSpec) DeepCopyInto added in v0.1.3

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

type CoderTemplateVersionPromotionStatus added in v0.1.3

type CoderTemplateVersionPromotionStatus struct {
	// Result is Promoted, AlreadyActive or WouldPromote.
	Result CoderTemplateVersionPromotionResult `json:"result,omitempty"`
	// PreviousActiveVersionID is the active version that the request observed before it acted.
	PreviousActiveVersionID string `json:"previousActiveVersionID,omitempty"`
	// ActiveVersionID is the active version that the request observed after it acted.
	ActiveVersionID string `json:"activeVersionID,omitempty"`
}

CoderTemplateVersionPromotionStatus reports the observed outcome of a promotion request.

func (*CoderTemplateVersionPromotionStatus) DeepCopy added in v0.1.3

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

func (*CoderTemplateVersionPromotionStatus) DeepCopyInto added in v0.1.3

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

type CoderTemplateVersionSpec added in v0.1.3

type CoderTemplateVersionSpec struct {
	// Organization is the canonical name of the organization that owns the template.
	Organization string `json:"organization"`
	// TemplateName is the canonical name of the template.
	TemplateName string `json:"templateName"`
	// Message is the message that was given when the version was created.
	Message string `json:"message,omitempty"`
}

CoderTemplateVersionSpec names the template that a CoderTemplateVersion belongs to.

func (*CoderTemplateVersionSpec) DeepCopy added in v0.1.3

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

func (*CoderTemplateVersionSpec) DeepCopyInto added in v0.1.3

func (in *CoderTemplateVersionSpec) DeepCopyInto(out *CoderTemplateVersionSpec)

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

type CoderTemplateVersionStatus added in v0.1.3

type CoderTemplateVersionStatus struct {
	// ID is the Coder template version ID.
	ID string `json:"id"`
	// TemplateID is the Coder ID of the template that owns the version.
	TemplateID string `json:"templateID"`
	// Active is true when this version is the active version of its template.
	Active bool `json:"active"`
	// Archived is true when the version is archived in Coder.
	Archived bool `json:"archived"`
	// CreatedBy is the Coder username of the user who created the version.
	CreatedBy string `json:"createdBy,omitempty"`
	// UpdatedAt is when Coder last updated the version.
	UpdatedAt *metav1.Time `json:"updatedAt,omitempty"`
	// Job summarizes the import job of the version.
	Job CoderTemplateVersionJob `json:"job"`
}

CoderTemplateVersionStatus is the observed state of a template version in Coder.

func (*CoderTemplateVersionStatus) DeepCopy added in v0.1.3

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

func (*CoderTemplateVersionStatus) DeepCopyInto added in v0.1.3

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 CoderWorkspaceLogOptions added in v0.1.3

type CoderWorkspaceLogOptions struct {
	metav1.TypeMeta `json:",inline"`

	// LimitBytes ends the response after this many bytes. It may cut a line.
	LimitBytes *int64 `json:"limitBytes,omitempty"`

	// Follow keeps the response open and streams new entries until the build ends.
	Follow bool `json:"follow,omitempty"`
}

CoderWorkspaceLogOptions are the query options of the coderworkspaces/log subresource.

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*CoderWorkspaceLogOptions) DeepCopy added in v0.1.3

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

func (*CoderWorkspaceLogOptions) DeepCopyInto added in v0.1.3

func (in *CoderWorkspaceLogOptions) DeepCopyInto(out *CoderWorkspaceLogOptions)

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

func (*CoderWorkspaceLogOptions) DeepCopyObject added in v0.1.3

func (in *CoderWorkspaceLogOptions) 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.

type CoderWorkspaceTransition added in v0.1.3

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

	// Status reports what the request did.
	Status CoderWorkspaceTransitionStatus `json:"status,omitempty"`
}

CoderWorkspaceTransition is the request and response body of the coderworkspaces/start and coderworkspaces/stop subresources. A request needs no fields. The server ignores a status in the request.

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*CoderWorkspaceTransition) DeepCopy added in v0.1.3

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

func (*CoderWorkspaceTransition) DeepCopyInto added in v0.1.3

func (in *CoderWorkspaceTransition) DeepCopyInto(out *CoderWorkspaceTransition)

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

func (*CoderWorkspaceTransition) DeepCopyObject added in v0.1.3

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

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

type CoderWorkspaceTransitionStatus added in v0.1.3

type CoderWorkspaceTransitionStatus struct {
	// Transition is the requested transition: start or stop.
	Transition string `json:"transition,omitempty"`
	// Outcome is Queued, InProgress, Unchanged, or WouldQueue (dry-run only).
	Outcome string `json:"outcome,omitempty"`
	// DryRun is true when the request was a server-side dry-run. Nothing was changed.
	DryRun bool `json:"dryRun,omitempty"`
	// BuildID is the ID of the workspace build that the outcome refers to.
	BuildID string `json:"buildID,omitempty"`
	// BuildNumber is the number of that build.
	BuildNumber int32 `json:"buildNumber,omitempty"`
	// JobStatus is the provisioner job status of that build when the server answered.
	JobStatus string `json:"jobStatus,omitempty"`
}

CoderWorkspaceTransitionStatus reports the outcome of a start or stop request.

func (*CoderWorkspaceTransitionStatus) DeepCopy added in v0.1.3

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

func (*CoderWorkspaceTransitionStatus) DeepCopyInto added in v0.1.3

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