v1

package
v0.0.0-...-7c3147a Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the atob v1 API group +kubebuilder:object:generate=true +groupName=atob.itihey.com

Index

Constants

View Source
const (
	Error            = "Error"            // 错误
	Pulling          = "Pulling"          // 正在拉取源码
	PullSuccess      = "PullSuccess"      // 拉取源码成功
	PullFailed       = "PullFailed"       // 拉取源码失败
	CheckCodeSuccess = "CheckCodeSuccess" // 检查源码成功
	Building         = "Building"         // 正在打包构建
	BuildSuccess     = "BuildSuccess"     // 打包构建成功
	BuildFailed      = "BuildFailed"      // 打包构建失败
	Success          = "Success"          // 成功
)

Variables

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

func (in *Atob) DeepCopy() *Atob

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

func (*Atob) DeepCopyInto

func (in *Atob) DeepCopyInto(out *Atob)

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

func (*Atob) DeepCopyObject

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

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

func (in *AtobList) DeepCopy() *AtobList

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

func (*AtobList) DeepCopyInto

func (in *AtobList) DeepCopyInto(out *AtobList)

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

func (*AtobList) DeepCopyObject

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

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

func (in *AtobSpec) DeepCopy() *AtobSpec

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

func (*AtobSpec) DeepCopyInto

func (in *AtobSpec) DeepCopyInto(out *AtobSpec)

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 最后要生成的镜像配置

Jump to

Keyboard shortcuts

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