v1

package
v0.0.0-...-d938d8c Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the v1 API group +kubebuilder:object:generate=true +groupName=hyperspike.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "hyperspike.io", Version: "v1"}

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

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

	Spec   AuthSpec   `json:"spec,omitempty"`
	Status AuthStatus `json:"status,omitempty"`
}

Auth is the Schema for the auths API

func (*Auth) DeepCopy

func (in *Auth) DeepCopy() *Auth

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

func (*Auth) DeepCopyInto

func (in *Auth) DeepCopyInto(out *Auth)

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

func (*Auth) DeepCopyObject

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

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

type AuthList

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

AuthList contains a list of Auth

func (*AuthList) DeepCopy

func (in *AuthList) DeepCopy() *AuthList

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

func (*AuthList) DeepCopyInto

func (in *AuthList) DeepCopyInto(out *AuthList)

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

func (*AuthList) DeepCopyObject

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

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

type AuthSpec

type AuthSpec struct {
	// +kubebuilder:validation:Required
	Provider string `json:"provider"`

	// The client ID for the OIDC provider
	// +kubebuilder:validation:Required
	ClientID corev1.SecretKeySelector `json:"clientID"`
	// The client secret for the OIDC provider
	// +kubebuilder:validation:Required
	ClientSecret corev1.SecretKeySelector `json:"clientSecret"`

	// The URL to the OIDC provider (e.g. https://oidc.example.com)
	AutoDiscoveryURL string `json:"autoDiscoveryURL"`

	// Scopes to request from the OIDC provider
	Scopes []string `json:"scopes"`

	// Group Claim name to use for group membership
	GroupClaimName string `json:"groupClaimName"`

	// The Gitea instance to add the OIDC authentication to
	// +kubebuilder:validation:Required
	Instance InstanceType `json:"instance"`
}

AuthSpec defines the desired state of Auth

func (*AuthSpec) DeepCopy

func (in *AuthSpec) DeepCopy() *AuthSpec

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

func (*AuthSpec) DeepCopyInto

func (in *AuthSpec) DeepCopyInto(out *AuthSpec)

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

type AuthStatus

type AuthStatus struct {
}

AuthStatus defines the observed state of Auth

func (*AuthStatus) DeepCopy

func (in *AuthStatus) DeepCopy() *AuthStatus

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

func (*AuthStatus) DeepCopyInto

func (in *AuthStatus) DeepCopyInto(out *AuthStatus)

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

type Gitea

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

	Spec   GiteaSpec   `json:"spec,omitempty"`
	Status GiteaStatus `json:"status,omitempty"`
}

Gitea is the Schema for the gitea API +kubebuilder:printcolumn:name="Ready",type="boolean",JSONPath=`.status.ready` +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:printcolumn:name="Hostname",type="string",priority=1,JSONPath=".spec.hostname" +kubebuilder:printcolumn:name="Rootless",type="boolean",priority=1,JSONPath=".spec.rootless" +kubebuilder:printcolumn:name="Image",type="string",priority=1,JSONPath=".spec.image"

func (*Gitea) DeepCopy

func (in *Gitea) DeepCopy() *Gitea

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

func (*Gitea) DeepCopyInto

func (in *Gitea) DeepCopyInto(out *Gitea)

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

func (*Gitea) DeepCopyObject

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

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

type GiteaList

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

GiteaList contains a list of Gitea

func (*GiteaList) DeepCopy

func (in *GiteaList) DeepCopy() *GiteaList

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

func (*GiteaList) DeepCopyInto

func (in *GiteaList) DeepCopyInto(out *GiteaList)

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

func (*GiteaList) DeepCopyObject

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

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

type GiteaSpec

type GiteaSpec struct {

	// Ingress for external access
	Ingress IngressSpec `json:"ingress,omitempty"`

	// Object Storage for Gitea
	ObjectStorage *ObjectSpec `json:"objectStorage,omitempty"`

	// Create a loadbalancer for ssh access
	ExternalSSH bool `json:"externalSSH,omitempty"`

	// if different from Hostname
	SSHHostname string `json:"sshHostname,omitempty"`

	// enable rootless mode, disable for minikube
	// +kubebuilder:default:=false
	Rootless bool `json:"rootless,omitempty"`

	// enable prometheus integrations
	// +kubebuilder:default:=false
	Prometheus bool `json:"prometheus,omitempty"`

	// Additional Prometheus Labels
	PrometheusLabels map[string]string `json:"prometheusLabels,omitempty"`

	// Override the operator set image
	// +kubebuilder:default:="gitea/gitea:1.22.6"
	Image string `json:"image,omitempty"`

	// Use Valkey
	// +kubebuilder:default:=false
	Valkey bool `json:"valkey,omitempty"`

	// Use TLS
	// +kubebuilder:default:=false
	TLS bool `json:"tls,omitempty"`

	// TLS Cert-manager Issuer
	CertIssuer string `json:"certIssuer,omitempty"`

	// Cert-Manger Cluster Issuer Kind
	// +kubebuilder:default:="ClusterIssuer"
	// +kubebuilder:validation:Enum=ClusterIssuer;Issuer
	CertIssuerType string `json:"certIssuerType,omitempty"`

	ClusterDomain string `json:"clusterDomain,omitempty"`

	// Specify if gitea is external or should be created by operator
	External bool `json:"external,omitempty"`
	// SecretRef allows connecting to an external Gitea instance
	SecretRef *corev1.SecretReference `json:"secretRef,omitempty"`
}

GiteaSpec defines the desired state of Gitea

func (*GiteaSpec) DeepCopy

func (in *GiteaSpec) DeepCopy() *GiteaSpec

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

func (*GiteaSpec) DeepCopyInto

func (in *GiteaSpec) DeepCopyInto(out *GiteaSpec)

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

type GiteaStatus

type GiteaStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
	Ready      bool               `json:"ready"`
}

GiteaStatus defines the observed state of Gitea

func (*GiteaStatus) DeepCopy

func (in *GiteaStatus) DeepCopy() *GiteaStatus

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

func (*GiteaStatus) DeepCopyInto

func (in *GiteaStatus) DeepCopyInto(out *GiteaStatus)

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

type IngressSpec

type IngressSpec struct {
	// External Hostname of the instance
	// +kubebuilder:example:=git.local
	Host string `json:"host,omitempty"`

	// Ingress Annotations
	Annotations map[string]string `json:"annotations,omitempty"`
}

func (*IngressSpec) DeepCopy

func (in *IngressSpec) DeepCopy() *IngressSpec

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

func (*IngressSpec) DeepCopyInto

func (in *IngressSpec) DeepCopyInto(out *IngressSpec)

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

type InstanceType

type InstanceType struct {
	Name      string            `json:"name"`
	Namespace string            `json:"namespace,omitempty"`
	Labels    map[string]string `json:"labels,omitempty"`
}

func (*InstanceType) DeepCopy

func (in *InstanceType) DeepCopy() *InstanceType

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

func (*InstanceType) DeepCopyInto

func (in *InstanceType) DeepCopyInto(out *InstanceType)

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

type ObjectSpec

type ObjectSpec struct {
	// Object Storage Type
	// +kubebuilder:default:="minio"
	// +kubebuilder:validation:Enum=minio;gcs;s3
	Type string `json:"type,omitempty"`

	// Object Storage Endpoint
	Endpoint string `json:"endpoint,omitempty"`

	// Object Cloud Provider Region
	Region string `json:"region,omitempty"`
}

func (*ObjectSpec) DeepCopy

func (in *ObjectSpec) DeepCopy() *ObjectSpec

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

func (*ObjectSpec) DeepCopyInto

func (in *ObjectSpec) DeepCopyInto(out *ObjectSpec)

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

type Org

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

	Spec   OrgSpec   `json:"spec,omitempty"`
	Status OrgStatus `json:"status,omitempty"`
}

Org is the Schema for the orgs API +kubebuilder:printcolumn:name="Ready",type="boolean",JSONPath=`.status.provisioned` +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (*Org) DeepCopy

func (in *Org) DeepCopy() *Org

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

func (*Org) DeepCopyInto

func (in *Org) DeepCopyInto(out *Org)

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

func (*Org) DeepCopyObject

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

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

type OrgList

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

OrgList contains a list of Org

func (*OrgList) DeepCopy

func (in *OrgList) DeepCopy() *OrgList

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

func (*OrgList) DeepCopyInto

func (in *OrgList) DeepCopyInto(out *OrgList)

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

func (*OrgList) DeepCopyObject

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

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

type OrgRef

type OrgRef struct {
	Name      string            `json:"name"`
	Namespace string            `json:"namespace,omitempty"`
	Labels    map[string]string `json:"labels,omitempty"`
}

func (*OrgRef) DeepCopy

func (in *OrgRef) DeepCopy() *OrgRef

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

func (*OrgRef) DeepCopyInto

func (in *OrgRef) DeepCopyInto(out *OrgRef)

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

type OrgSpec

type OrgSpec struct {

	// The human readable name of the organization.
	FullName string `json:"fullname,omitempty"`

	// A brief explanation of the organization.
	Description string `json:"description,omitempty"`

	// The url of the website associated with this org.
	Website string `json:"website,omitempty"`

	// The physical location of the org, if any
	Location string `json:"location,omitempty"`

	// users list to
	Teams []Team `json:"teams,omitempty"`

	// The ACL name of the org. public, private, etc.
	Visibility string `json:"visibility,omitempty"`
	// the gitea instance to build the org in
	Instance InstanceType `json:"instance"`
}

OrgSpec defines the desired state of Org

func (*OrgSpec) DeepCopy

func (in *OrgSpec) DeepCopy() *OrgSpec

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

func (*OrgSpec) DeepCopyInto

func (in *OrgSpec) DeepCopyInto(out *OrgSpec)

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

type OrgStatus

type OrgStatus struct {
	Provisioned bool `json:"provisioned"`
}

OrgStatus defines the observed state of Org

func (*OrgStatus) DeepCopy

func (in *OrgStatus) DeepCopy() *OrgStatus

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

func (*OrgStatus) DeepCopyInto

func (in *OrgStatus) DeepCopyInto(out *OrgStatus)

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

type Repo

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

	Spec   RepoSpec   `json:"spec,omitempty"`
	Status RepoStatus `json:"status,omitempty"`
}

Repo is the Schema for the repoes API +kubebuilder:printcolumn:name="Ready",type="boolean",JSONPath=`.status.provisioned` +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (*Repo) DeepCopy

func (in *Repo) DeepCopy() *Repo

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

func (*Repo) DeepCopyInto

func (in *Repo) DeepCopyInto(out *Repo)

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

func (*Repo) DeepCopyObject

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

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

type RepoList

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

RepoList contains a list of Repo

func (*RepoList) DeepCopy

func (in *RepoList) DeepCopy() *RepoList

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

func (*RepoList) DeepCopyInto

func (in *RepoList) DeepCopyInto(out *RepoList)

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

func (*RepoList) DeepCopyObject

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

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

type RepoSpec

type RepoSpec struct {

	// a brief explanation of the repo
	Description string `json:"description,omitempty"`
	// Whether the repository is private
	Private bool `json:"private,omitempty"`
	// Issue Label set to use
	IssueLabels string `json:"issue_labels,omitempty"`
	// Whether the repository should be auto-intialized?
	AutoInit bool `json:"auto_init,omitempty"`
	// Whether the repository is template
	Template bool `json:"template,omitempty"`
	// Gitignores to use
	Gitignores string `json:"gitignores,omitempty"`
	// License to use
	License string `json:"license,omitempty"`
	// Readme of the repository to create
	Readme string `json:"readme,omitempty"`
	// DefaultBranch of the repository (used when initializes and in template)
	DefaultBranch string `json:"default_branch,omitempty"`
	// TrustModel of the repository
	TrustModel string `json:"trust_model,omitempty"`

	User *UserRef `json:"user,omitempty"`
	Org  *OrgRef  `json:"org,omitempty"`
}

RepoSpec defines the desired state of Repo

func (*RepoSpec) DeepCopy

func (in *RepoSpec) DeepCopy() *RepoSpec

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

func (*RepoSpec) DeepCopyInto

func (in *RepoSpec) DeepCopyInto(out *RepoSpec)

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

type RepoStatus

type RepoStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Provisioned bool `json:"provisioned"`
}

RepoStatus defines the observed state of Repo

func (*RepoStatus) DeepCopy

func (in *RepoStatus) DeepCopy() *RepoStatus

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

func (*RepoStatus) DeepCopyInto

func (in *RepoStatus) DeepCopyInto(out *RepoStatus)

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

type Runner

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

	Spec   RunnerSpec   `json:"spec,omitempty"`
	Status RunnerStatus `json:"status,omitempty"`
}

Runner is the Schema for the runners API +kubebuilder:printcolumn:name="Ready",type="boolean",JSONPath=`.status.provisioned` +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (*Runner) DeepCopy

func (in *Runner) DeepCopy() *Runner

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

func (*Runner) DeepCopyInto

func (in *Runner) DeepCopyInto(out *Runner)

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

func (*Runner) DeepCopyObject

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

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

type RunnerList

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

RunnerList contains a list of Runner

func (*RunnerList) DeepCopy

func (in *RunnerList) DeepCopy() *RunnerList

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

func (*RunnerList) DeepCopyInto

func (in *RunnerList) DeepCopyInto(out *RunnerList)

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

func (*RunnerList) DeepCopyObject

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

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

type RunnerSpec

type RunnerSpec struct {

	// +kubebuilder:default:=1
	Replicas int `json:"replicas"`

	// +kubebuilder:default:=false
	Rootless bool `json:"rootless"`

	// The Gitea Org to create org runners in
	Org *OrgRef `json:"org,omitempty"`
	// the gitea instance to create global runners in
	Instance InstanceType `json:"instance,omitempty"`
}

RunnerSpec defines the desired state of Runner

func (*RunnerSpec) DeepCopy

func (in *RunnerSpec) DeepCopy() *RunnerSpec

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

func (*RunnerSpec) DeepCopyInto

func (in *RunnerSpec) DeepCopyInto(out *RunnerSpec)

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

type RunnerStatus

type RunnerStatus struct {

	// TLS detected at the instance deployment
	TLS bool `json:"tls,omitempty"`

	Provisioned bool `json:"provisioned"`
}

RunnerStatus defines the observed state of Runner

func (*RunnerStatus) DeepCopy

func (in *RunnerStatus) DeepCopy() *RunnerStatus

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

func (*RunnerStatus) DeepCopyInto

func (in *RunnerStatus) DeepCopyInto(out *RunnerStatus)

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

type Team

type Team struct {
	Name        string `json:"name"`
	Description string `json:"description,omitempty"`

	// +kubebuilder:validation:Enum=none;read;write;admin;owner
	Permission      string   `json:"permission,omitempty"`
	CreateOrgRepo   bool     `json:"createOrgRepo,omitempty"`
	IncludeAllRepos bool     `json:"includeAllRepos,omitempty"`
	Members         []string `json:"members,omitempty"`
	Units           []string `json:"units,omitempty"`
}

func (*Team) DeepCopy

func (in *Team) DeepCopy() *Team

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

func (*Team) DeepCopyInto

func (in *Team) DeepCopyInto(out *Team)

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

type User

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

	Spec   UserSpec   `json:"spec,omitempty"`
	Status UserStatus `json:"status,omitempty"`
}

User is the Schema for the users API +kubebuilder:printcolumn:name="Ready",type="boolean",JSONPath=`.status.provisioned` +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (*User) DeepCopy

func (in *User) DeepCopy() *User

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

func (*User) DeepCopyInto

func (in *User) DeepCopyInto(out *User)

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

func (*User) DeepCopyObject

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

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

type UserList

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

UserList contains a list of User

func (*UserList) DeepCopy

func (in *UserList) DeepCopy() *UserList

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

func (*UserList) DeepCopyInto

func (in *UserList) DeepCopyInto(out *UserList)

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

func (*UserList) DeepCopyObject

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

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

type UserRef

type UserRef struct {
	Name      string            `json:"name"`
	Namespace string            `json:"namespace,omitempty"`
	Labels    map[string]string `json:"labels,omitempty"`
}

func (*UserRef) DeepCopy

func (in *UserRef) DeepCopy() *UserRef

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

func (*UserRef) DeepCopyInto

func (in *UserRef) DeepCopyInto(out *UserRef)

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

type UserSpec

type UserSpec struct {
	Email string `json:"email"`

	FullName string `json:"fullName,omitempty"`

	// +kubebuilder:default:=false
	SendNotify bool `json:"sendNotify,omitempty"`

	SourceId int64 `json:"sourceId,omitempty"`

	LoginName string `json:"loginName,omitempty"`

	Visibility string `json:"visibility,omitempty"`

	Admin bool `json:"admin,omitempty"`

	// a secret reference to the secret where the password is stored
	Password corev1.SecretKeySelector `json:"password,omitempty"`

	// a string list of public ssh keys
	SSHkeys []string `json:"sshkeys,omitempty"`

	// the gitea instance to add the user to
	Instance InstanceType `json:"instance"`
}

UserSpec defines the desired state of User

func (*UserSpec) DeepCopy

func (in *UserSpec) DeepCopy() *UserSpec

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

func (*UserSpec) DeepCopyInto

func (in *UserSpec) DeepCopyInto(out *UserSpec)

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

type UserStatus

type UserStatus struct {
	Provisioned bool `json:"provisioned"`
}

UserStatus defines the observed state of User

func (*UserStatus) DeepCopy

func (in *UserStatus) DeepCopy() *UserStatus

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

func (*UserStatus) DeepCopyInto

func (in *UserStatus) DeepCopyInto(out *UserStatus)

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