v1beta1

package
v0.0.0-...-e397795 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the mirror v1beta1 API group +kubebuilder:object:generate=true +groupName=mirror.redrock.team

Index

Constants

This section is empty.

Variables

View Source
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

type AnnouncementStatus struct {
	PubTime  int64 `json:"pubTime"`
	EditTime int64 `json:"editTime"`
}

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

func (in *File) DeepCopy() *File

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

func (*File) DeepCopyInto

func (in *File) DeepCopyInto(out *File)

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

func (*File) DeepCopyObject

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

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

func (in *FileInfo) DeepCopy() *FileInfo

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

func (*FileInfo) DeepCopyInto

func (in *FileInfo) DeepCopyInto(out *FileInfo)

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

func (in *FileList) DeepCopy() *FileList

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

func (*FileList) DeepCopyInto

func (in *FileList) DeepCopyInto(out *FileList)

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

func (*FileList) DeepCopyObject

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

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

func (in *FileSpec) DeepCopy() *FileSpec

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

func (*FileSpec) DeepCopyInto

func (in *FileSpec) DeepCopyInto(out *FileSpec)

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

type FileStatus

type FileStatus struct {
	Files      []FileInfo `json:"files"`
	UpdateTime int64      `json:"updateTime"`
}

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 FileType

type FileType string
const (
	OS  FileType = "os"
	App FileType = "app"
)

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

func (in *Job) DeepCopy() *Job

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

func (*Job) DeepCopyInto

func (in *Job) DeepCopyInto(out *Job)

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

func (*Job) DeepCopyObject

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

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

func (in *JobConfig) DeepCopy() *JobConfig

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

func (*JobConfig) DeepCopyInto

func (in *JobConfig) DeepCopyInto(out *JobConfig)

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

func (in *JobDeploy) DeepCopy() *JobDeploy

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

func (*JobDeploy) DeepCopyInto

func (in *JobDeploy) DeepCopyInto(out *JobDeploy)

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

func (in *JobList) DeepCopy() *JobList

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

func (*JobList) DeepCopyInto

func (in *JobList) DeepCopyInto(out *JobList)

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

func (*JobList) DeepCopyObject

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

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

func (in *JobSpec) DeepCopy() *JobSpec

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

func (*JobSpec) DeepCopyInto

func (in *JobSpec) DeepCopyInto(out *JobSpec)

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

func (in *JobStatus) DeepCopy() *JobStatus

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

func (*JobStatus) DeepCopyInto

func (in *JobStatus) DeepCopyInto(out *JobStatus)

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

func (in *Manager) DeepCopy() *Manager

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

func (*Manager) DeepCopyInto

func (in *Manager) DeepCopyInto(out *Manager)

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

func (*Manager) DeepCopyObject

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

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

func (in *PVConfig) DeepCopy() *PVConfig

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

func (*PVConfig) DeepCopyInto

func (in *PVConfig) DeepCopyInto(out *PVConfig)

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"
)

Jump to

Keyboard shortcuts

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