Documentation ¶
Overview ¶
Package v1beta1 contains API Schema definitions for the mirror v1beta1 API group +kubebuilder:object:generate=true +groupName=mirror.redrock.team
Index ¶
- Variables
- type Announcement
- type AnnouncementList
- type AnnouncementSpec
- type AnnouncementStatus
- type DeployConfig
- type DeployPhase
- type DeployType
- type File
- type FileInfo
- type FileList
- type FileSpec
- type FileStatus
- type FileType
- type IngressConfig
- type Job
- type JobConfig
- type JobDeploy
- type JobList
- type JobSpec
- type JobStatus
- type Manager
- type ManagerList
- type ManagerSpec
- type ManagerStatus
- type MirrorType
- type PVConfig
- type SyncStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "mirror.redrock.team", 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 Announcement ¶
type Announcement struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AnnouncementSpec `json:"spec,omitempty"` Status AnnouncementStatus `json:"status,omitempty"` }
Announcement is the Schema for the announcements API
func (*Announcement) DeepCopy ¶
func (in *Announcement) DeepCopy() *Announcement
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Announcement.
func (*Announcement) DeepCopyInto ¶
func (in *Announcement) DeepCopyInto(out *Announcement)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Announcement) DeepCopyObject ¶
func (in *Announcement) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AnnouncementList ¶
type AnnouncementList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Announcement `json:"items"` }
AnnouncementList contains a list of Announcement
func (*AnnouncementList) DeepCopy ¶
func (in *AnnouncementList) DeepCopy() *AnnouncementList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AnnouncementList.
func (*AnnouncementList) DeepCopyInto ¶
func (in *AnnouncementList) DeepCopyInto(out *AnnouncementList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AnnouncementList) DeepCopyObject ¶
func (in *AnnouncementList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AnnouncementSpec ¶
type AnnouncementSpec struct { Title string `json:"title"` Author string `json:"author,omitempty"` Content string `json:"content,omitempty"` }
AnnouncementSpec defines the desired state of Announcement
func (*AnnouncementSpec) DeepCopy ¶
func (in *AnnouncementSpec) DeepCopy() *AnnouncementSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AnnouncementSpec.
func (*AnnouncementSpec) DeepCopyInto ¶
func (in *AnnouncementSpec) DeepCopyInto(out *AnnouncementSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AnnouncementStatus ¶
AnnouncementStatus defines the observed state of Announcement
func (*AnnouncementStatus) DeepCopy ¶
func (in *AnnouncementStatus) DeepCopy() *AnnouncementStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AnnouncementStatus.
func (*AnnouncementStatus) DeepCopyInto ¶
func (in *AnnouncementStatus) DeepCopyInto(out *AnnouncementStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeployConfig ¶
type DeployConfig struct { Image string `json:"image,omitempty"` Env []corev1.EnvVar `json:"env,omitempty"` ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"` ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"` NodeName string `json:"nodeName,omitempty"` Affinity *corev1.Affinity `json:"affinity,omitempty"` Tolerations []corev1.Toleration `json:"tolerations,omitempty"` CPULimit string `json:"cpuLimit,omitempty"` MemoryLimit string `json:"memLimit,omitempty"` }
func (*DeployConfig) DeepCopy ¶
func (in *DeployConfig) DeepCopy() *DeployConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployConfig.
func (*DeployConfig) DeepCopyInto ¶
func (in *DeployConfig) DeepCopyInto(out *DeployConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeployPhase ¶
type DeployPhase string
const ( DeployPending DeployPhase = "Pending" DeploySucceeded DeployPhase = "Succeeded" DeployFailed DeployPhase = "Failed" )
type DeployType ¶
type DeployType string
const ( Deployment DeployType = "Deployment" DaemonSet DeployType = "DaemonSet" )
type File ¶
type File struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec FileSpec `json:"spec,omitempty"` Status FileStatus `json:"status,omitempty"` }
File is the Schema for the files API
func (*File) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new File.
func (*File) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*File) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type FileInfo ¶
type FileInfo struct { Name string `json:"name"` Ext string `json:"ext"` MajorVersion string `json:"majorVersion"` Version string `json:"version"` Arch string `json:"arch"` Edition string `json:"edition"` EditionType string `json:"editionType"` Part int `json:"part"` Path string `json:"path"` Size uint64 `json:"size"` SizeStr string `json:"sizeStr"` }
func (*FileInfo) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileInfo.
func (*FileInfo) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FileList ¶
type FileList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []File `json:"items"` }
FileList contains a list of File
func (*FileList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileList.
func (*FileList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FileList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type FileSpec ¶
type FileSpec struct { Type FileType `json:"type,omitempty"` Alias string `json:"alias,omitempty"` }
FileSpec defines the desired state of File
func (*FileSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileSpec.
func (*FileSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FileStatus ¶
FileStatus defines the observed state of File
func (*FileStatus) DeepCopy ¶
func (in *FileStatus) DeepCopy() *FileStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileStatus.
func (*FileStatus) DeepCopyInto ¶
func (in *FileStatus) DeepCopyInto(out *FileStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IngressConfig ¶
type IngressConfig struct { IngressClass string `json:"ingressClass,omitempty"` TLSSecret string `json:"TLSSecret,omitempty"` Host string `json:"host,omitempty"` Annotations map[string]string `json:"annotations,omitempty"` }
func (*IngressConfig) DeepCopy ¶
func (in *IngressConfig) DeepCopy() *IngressConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressConfig.
func (*IngressConfig) DeepCopyInto ¶
func (in *IngressConfig) DeepCopyInto(out *IngressConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Job ¶
type Job struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec JobSpec `json:"spec,omitempty"` Status JobStatus `json:"status,omitempty"` }
Job is the Schema for the jobs API
func (*Job) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Job.
func (*Job) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Job) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type JobConfig ¶
type JobConfig struct { Alias string `json:"alias,omitempty"` Desc string `json:"desc,omitempty"` Url string `json:"url,omitempty"` HelpUrl string `json:"helpUrl,omitempty"` Type MirrorType `json:"type,omitempty"` Upstream string `json:"upstream"` Provider string `json:"provider,omitempty"` MirrorPath string `json:"mirrorPath,omitempty"` Command string `json:"command,omitempty"` Concurrent int `json:"concurrent,omitempty"` Interval int `json:"interval,omitempty"` Retry int `json:"retry,omitempty"` Timeout int `json:"timeout,omitempty"` FailOnMatch string `json:"failOnMatch,omitempty"` IPv6Only string `json:"IPv6Only,omitempty"` IPv4Only string `json:"IPv4Only,omitempty"` ExcludeFile string `json:"excludeFile,omitempty"` RsyncOptions string `json:"rsyncOptions,omitempty"` Stage1Profile string `json:"stage1Profile,omitempty"` ExecOnSuccess string `json:"execOnSuccess,omitempty"` ExecOnFailure string `json:"execOnFailure,omitempty"` SizePattern string `json:"sizePattern,omitempty"` AdditionEnvs []corev1.EnvVar `json:"additionEnvs,omitempty"` // Why this is a string? It's a feature! Maybe you can write debug reason here as long as it's not empty. :) Debug string `json:"debug,omitempty"` }
func (*JobConfig) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobConfig.
func (*JobConfig) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type JobDeploy ¶
type JobDeploy struct { DeployConfig `json:",inline"` DisableFront string `json:"disableFront,omitempty"` FrontMode string `json:"frontMode,omitempty"` FrontImage string `json:"frontImage,omitempty"` FrontCmd string `json:"frontCmd,omitempty"` DisableRsync string `json:"disableRsync,omitempty"` RsyncImage string `json:"rsyncImage,omitempty"` RsyncCmd string `json:"rsyncCmd,omitempty"` }
func (*JobDeploy) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobDeploy.
func (*JobDeploy) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type JobList ¶
type JobList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Job `json:"items"` }
JobList contains a list of Job
func (*JobList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobList.
func (*JobList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*JobList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type JobSpec ¶
type JobSpec struct { Config JobConfig `json:"config"` Deploy JobDeploy `json:"deploy,omitempty"` Volume PVConfig `json:"volume,omitempty"` Ingress IngressConfig `json:"ingress,omitempty"` }
JobSpec defines the desired state of Job
func (*JobSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobSpec.
func (*JobSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type JobStatus ¶
type JobStatus struct { Status SyncStatus `json:"status"` LastUpdate int64 `json:"lastUpdate"` LastStarted int64 `json:"lastStarted"` LastEnded int64 `json:"lastEnded"` Scheduled int64 `json:"nextSchedule"` Upstream string `json:"upstream"` Size uint64 `json:"size"` ErrorMsg string `json:"errorMsg"` LastOnline int64 `json:"lastOnline"` LastRegister int64 `json:"lastRegister"` }
JobStatus defines the observed state of Job
func (*JobStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobStatus.
func (*JobStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Manager ¶
type Manager struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ManagerSpec `json:"spec,omitempty"` Status ManagerStatus `json:"status,omitempty"` }
Manager is the Schema for the managers API
func (*Manager) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Manager.
func (*Manager) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Manager) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ManagerList ¶
type ManagerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Manager `json:"items"` }
ManagerList contains a list of Manager
func (*ManagerList) DeepCopy ¶
func (in *ManagerList) DeepCopy() *ManagerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagerList.
func (*ManagerList) DeepCopyInto ¶
func (in *ManagerList) DeepCopyInto(out *ManagerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManagerList) DeepCopyObject ¶
func (in *ManagerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ManagerSpec ¶
type ManagerSpec struct { DeployType DeployType `json:"deployType,omitempty"` Deploy DeployConfig `json:"deploy,omitempty"` Ingress IngressConfig `json:"ingress,omitempty"` }
ManagerSpec defines the desired state of Manager
func (*ManagerSpec) DeepCopy ¶
func (in *ManagerSpec) DeepCopy() *ManagerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagerSpec.
func (*ManagerSpec) DeepCopyInto ¶
func (in *ManagerSpec) DeepCopyInto(out *ManagerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManagerStatus ¶
type ManagerStatus struct {
Phase DeployPhase `json:"phase"`
}
ManagerStatus defines the observed state of Manager
func (*ManagerStatus) DeepCopy ¶
func (in *ManagerStatus) DeepCopy() *ManagerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagerStatus.
func (*ManagerStatus) DeepCopyInto ¶
func (in *ManagerStatus) DeepCopyInto(out *ManagerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MirrorType ¶
type MirrorType string
const ( Mirror MirrorType = "mirror" Proxy MirrorType = "proxy" Git MirrorType = "git" External MirrorType = "external" )
type PVConfig ¶
type PVConfig struct { Size string `json:"size,omitempty"` StorageClass *string `json:"storageClass,omitempty"` AccessMode corev1.PersistentVolumeAccessMode `json:"accessMode,omitempty"` }
func (*PVConfig) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PVConfig.
func (*PVConfig) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SyncStatus ¶
type SyncStatus string
const ( None SyncStatus = "none" Failed SyncStatus = "failed" Success SyncStatus = "success" Syncing SyncStatus = "syncing" PreSyncing SyncStatus = "pre-syncing" Paused SyncStatus = "paused" Disabled SyncStatus = "disabled" Cached SyncStatus = "cached" Created SyncStatus = "created" )