Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the atob v1 API group +kubebuilder:object:generate=true +groupName=atob.itihey.com
Index ¶
Constants ¶
const ( Error = "Error" // 错误 Pulling = "Pulling" // 正在拉取源码 PullSuccess = "PullSuccess" // 拉取源码成功 PullFailed = "PullFailed" // 拉取源码失败 CheckCodeSuccess = "CheckCodeSuccess" // 检查源码成功 Building = "Building" // 正在打包构建 BuildSuccess = "BuildSuccess" // 打包构建成功 BuildFailed = "BuildFailed" // 打包构建失败 Success = "Success" // 成功 )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "atob.itihey.com", 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 Atob ¶
type Atob struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AtobSpec `json:"spec,omitempty"` Status AtobStatus `json:"status,omitempty"` }
Atob is the Schema for the atobs API
func (*Atob) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Atob.
func (*Atob) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Atob) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AtobList ¶
type AtobList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Atob `json:"items"` }
AtobList contains a list of Atob
func (*AtobList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AtobList.
func (*AtobList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AtobList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AtobSpec ¶
type AtobSpec struct { // Git 源仓库配置 Git *GitConfig `json:"git,omitempty" yaml:"git,omitempty"` // Image 最后要生成的镜像配置 Image *ImageConfig `json:"image,omitempty" yaml:"image,omitempty"` }
AtobSpec defines the desired state of Atob
func (*AtobSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AtobSpec.
func (*AtobSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AtobStatus ¶
type AtobStatus struct { // LogPath 指定任务日志路径 LogPath string `json:"logPath,omitempty" yaml:"logPath,omitempty"` // Status 任务状态 Status string `json:"status,omitempty" yaml:"status,omitempty"` }
AtobStatus defines the observed state of Atob
func (*AtobStatus) DeepCopy ¶
func (in *AtobStatus) DeepCopy() *AtobStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AtobStatus.
func (*AtobStatus) DeepCopyInto ¶
func (in *AtobStatus) DeepCopyInto(out *AtobStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitConfig ¶
type GitConfig struct { // Url 仓库地址 Url string `json:"url" yaml:"url"` // Username 仓库认证用户名 Username string `json:"username,omitempty" yaml:"username,omitempty"` // Password 仓库认证密码 Password string `json:"password,omitempty" yaml:"password,omitempty"` // Branch 分支 Branch string `json:"branch,omitempty" yaml:"branch,omitempty"` // Tag 标签 Tag string `json:"tag,omitempty" yaml:"tag,omitempty"` }
GitConfig 源仓库配置
type ImageConfig ¶
type ImageConfig struct { // Name 镜像名称 Name string `json:"name" yaml:"name"` // ImageTag 镜像版本 Tag string `json:"tag" yaml:"tag"` // Registry 镜像仓库地址 Registry string `json:"registry,omitempty" yaml:"registry,omitempty"` // Username 镜像仓库认证用户名 Username string `json:"username,omitempty" yaml:"username,omitempty"` // Password 镜像仓库认证密码 Password string `json:"password,omitempty" yaml:"password,omitempty"` // Push 是否自动推送该镜像 Push bool `json:"push,omitempty" yaml:"push,omitempty"` // Build 是否自动build该镜像 Build bool `json:"build,omitempty" yaml:"build,omitempty"` }
ImageConfig 最后要生成的镜像配置