v1alpha1

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

+groupName=app.bytetrade.io

Package v1alpha1 contains API Schema definitions for the app v1alpha1 API group +kubebuilder:object:generate=true +groupName=app.bytetrade.io

Index

Constants

This section is empty.

Variables

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

	// 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
)
View Source
var SchemeGroupVersion = GroupVersion

SchemeGroupVersion is group version used to register these objects.

Functions

func AppResourceName

func AppResourceName(name, namespace string) string

AppResourceName return application name

func Resource

func Resource(resource string) schema.GroupResource

Types

type ACL

type ACL struct {
	Action string   `json:"action,omitempty"`
	Src    []string `json:"src,omitempty"`
	Proto  string   `json:"proto"`
	Dst    []string `json:"dst"`
}

func (*ACL) DeepCopy

func (in *ACL) DeepCopy() *ACL

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

func (*ACL) DeepCopyInto

func (in *ACL) DeepCopyInto(out *ACL)

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

type AppImage

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

	Spec   ImageSpec   `json:"spec,omitempty"`
	Status ImageStatus `json:"status,omitempty"`
}

AppImage is the Schema for the image managers API

func (*AppImage) DeepCopy

func (in *AppImage) DeepCopy() *AppImage

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

func (*AppImage) DeepCopyInto

func (in *AppImage) DeepCopyInto(out *AppImage)

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

func (*AppImage) DeepCopyObject

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

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

type AppImageList

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

AppImageList contains a list of AppImage

func (*AppImageList) DeepCopy

func (in *AppImageList) DeepCopy() *AppImageList

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

func (*AppImageList) DeepCopyInto

func (in *AppImageList) DeepCopyInto(out *AppImageList)

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

func (*AppImageList) DeepCopyObject

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

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

type Application

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

	Spec   ApplicationSpec   `json:"spec,omitempty"`
	Status ApplicationStatus `json:"status,omitempty"`
}

Application is the Schema for the applications API

func (*Application) DeepCopy

func (in *Application) DeepCopy() *Application

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

func (*Application) DeepCopyInto

func (in *Application) DeepCopyInto(out *Application)

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

func (*Application) DeepCopyObject

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

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

type ApplicationList

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

ApplicationList contains a list of Application

func (*ApplicationList) DeepCopy

func (in *ApplicationList) DeepCopy() *ApplicationList

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

func (*ApplicationList) DeepCopyInto

func (in *ApplicationList) DeepCopyInto(out *ApplicationList)

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

func (*ApplicationList) DeepCopyObject

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

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

type ApplicationManager

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

	Spec   ApplicationManagerSpec   `json:"spec,omitempty"`
	Status ApplicationManagerStatus `json:"status,omitempty"`
}

ApplicationManager is the Schema for the application managers API

func (*ApplicationManager) DeepCopy

func (in *ApplicationManager) DeepCopy() *ApplicationManager

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

func (*ApplicationManager) DeepCopyInto

func (in *ApplicationManager) DeepCopyInto(out *ApplicationManager)

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

func (*ApplicationManager) DeepCopyObject

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

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

type ApplicationManagerList

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

ApplicationManagerList contains a list of ApplicationManager

func (*ApplicationManagerList) DeepCopy

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

func (*ApplicationManagerList) DeepCopyInto

func (in *ApplicationManagerList) DeepCopyInto(out *ApplicationManagerList)

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

func (*ApplicationManagerList) DeepCopyObject

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

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

type ApplicationManagerSpec

type ApplicationManagerSpec struct {
	AppName      string `json:"appName"`
	RawAppName   string `json:"rawAppName,omitempty"`
	AppNamespace string `json:"appNamespace,omitempty"`
	AppOwner     string `json:"appOwner,omitempty"`
	Config       string `json:"config,omitempty"`
	Source       string `json:"source"`
	Type         Type   `json:"type"`
	OpType       OpType `json:"opType"`
}

ApplicationManagerSpec defines the desired state of ApplicationManager

func (*ApplicationManagerSpec) DeepCopy

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

func (*ApplicationManagerSpec) DeepCopyInto

func (in *ApplicationManagerSpec) DeepCopyInto(out *ApplicationManagerSpec)

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

type ApplicationManagerState

type ApplicationManagerState string

ApplicationManagerState is the state of an applicationmanager at current time

const (
	// Pending means that the operation is waiting to be processed.
	Pending ApplicationManagerState = "pending"

	Downloading ApplicationManagerState = "downloading"

	// Installing means that the installation operation is underway.
	Installing ApplicationManagerState = "installing"

	Initializing ApplicationManagerState = "initializing"

	Running ApplicationManagerState = "running"

	// Upgrading means that the upgrade operation is underway.
	Upgrading ApplicationManagerState = "upgrading"

	ApplyingEnv ApplicationManagerState = "applyingEnv"

	Stopping ApplicationManagerState = "stopping"

	Stopped ApplicationManagerState = "stopped"

	// Resuming means that the resume operation is underway.
	Resuming ApplicationManagerState = "resuming"

	// Uninstalling means that the uninstallation operation is underway.
	Uninstalling ApplicationManagerState = "uninstalling"

	UninstallFailed ApplicationManagerState = "uninstallFailed"

	ResumeFailed ApplicationManagerState = "resumeFailed"

	UpgradeFailed ApplicationManagerState = "upgradeFailed"

	ApplyEnvFailed ApplicationManagerState = "applyEnvFailed"

	StopFailed ApplicationManagerState = "stopFailed"

	DownloadFailed ApplicationManagerState = "downloadFailed"

	InstallFailed ApplicationManagerState = "installFailed"

	Uninstalled ApplicationManagerState = "uninstalled"

	// PendingCanceled means that the installation operation has been canceled.
	PendingCanceled      ApplicationManagerState = "pendingCanceled"
	DownloadingCanceled  ApplicationManagerState = "downloadingCanceled"
	InstallingCanceled   ApplicationManagerState = "installingCanceled"
	InitializingCanceled ApplicationManagerState = "initializingCanceled"
	UpgradingCanceled    ApplicationManagerState = "upgradingCanceled"
	ApplyingEnvCanceled  ApplicationManagerState = "applyingEnvCanceled"
	ResumingCanceled     ApplicationManagerState = "resumingCanceled"

	// PendingCanceling means that the installation operation is under canceling operation.
	PendingCanceling      ApplicationManagerState = "pendingCanceling"
	DownloadingCanceling  ApplicationManagerState = "downloadingCanceling"
	InstallingCanceling   ApplicationManagerState = "installingCanceling"
	InitializingCanceling ApplicationManagerState = "initializingCanceling"
	UpgradingCanceling    ApplicationManagerState = "upgradingCanceling"
	ApplyingEnvCanceling  ApplicationManagerState = "applyingEnvCanceling"
	ResumingCanceling     ApplicationManagerState = "resumingCanceling"

	PendingCancelFailed     ApplicationManagerState = "pendingCancelFailed"
	DownloadingCancelFailed ApplicationManagerState = "downloadingCancelFailed"
	InstallingCancelFailed  ApplicationManagerState = "installingCancelFailed"
	//InitializingCancelFailed ApplicationManagerState = "initializingCancelFailed"
	UpgradingCancelFailed   ApplicationManagerState = "upgradingCancelFailed"
	ApplyingEnvCancelFailed ApplicationManagerState = "applyingEnvCancelFailed"
	ResumingCancelFailed    ApplicationManagerState = "resumingCancelFailed"

	Failed ApplicationManagerState = "failed"
)

Describe the states of an applicationmanager

func (ApplicationManagerState) String

func (a ApplicationManagerState) String() string

type ApplicationManagerStatus

type ApplicationManagerStatus struct {
	OpType       OpType                  `json:"opType,omitempty"`
	OpGeneration int64                   `json:"opGeneration,omitempty"`
	OpID         string                  `json:"opId,omitempty"`
	State        ApplicationManagerState `json:"state,omitempty"`
	OpRecords    []OpRecord              `json:"opRecords,omitempty"`
	Reason       string                  `json:"reason,omitempty"`
	Message      string                  `json:"message,omitempty"`
	Payload      map[string]string       `json:"payload,omitempty"`
	Progress     string                  `json:"progress,omitempty"`
	UpdateTime   *metav1.Time            `json:"updateTime,omitempty"`
	StatusTime   *metav1.Time            `json:"statusTime,omitempty"`
	Completed    bool                    `json:"completed,omitempty"`
	OpTime       *metav1.Time            `json:"opTime,omitempty"`
	LastState    ApplicationManagerState `json:"lastState,omitempty"`
}

ApplicationManagerStatus defines the observed state of ApplicationManager

func (*ApplicationManagerStatus) DeepCopy

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

func (*ApplicationManagerStatus) DeepCopyInto

func (in *ApplicationManagerStatus) DeepCopyInto(out *ApplicationManagerStatus)

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

type ApplicationSpec

type ApplicationSpec struct {

	// the entrance of the application
	Index string `json:"index,omitempty"`

	// description from app's description or frontend
	Description string `json:"description,omitempty"`

	// The url of the icon
	Icon string `json:"icon,omitempty"`

	// the name of the application
	Name string `json:"name"`

	// RawAppName the name of application for cloned app, if RawAppName is not empty means this app is cloned
	RawAppName string `json:"rawAppName,omitempty"`

	// the unique id of the application
	// for sys application appid equal name otherwise appid equal md5(name)[:8]
	Appid string `json:"appid"`

	IsSysApp bool `json:"isSysApp"`

	// the namespace of the application
	Namespace string `json:"namespace,omitempty"`

	// the deployment of the application
	DeploymentName string `json:"deployment,omitempty"`

	// the owner of the application
	Owner string `json:"owner,omitempty"`

	// Entrances []Entrance `json:"entrances,omitempty"`
	Entrances []Entrance `json:"entrances,omitempty"`

	// SharedEntrances contains entrances shared with other applications
	SharedEntrances []Entrance `json:"sharedEntrances,omitempty"`

	Ports         []ServicePort `json:"ports,omitempty"`
	TailScale     TailScale     `json:"tailscale,omitempty"`
	TailScaleACLs []ACL         `json:"tailscaleAcls,omitempty"`

	// the extend settings of the application
	Settings map[string]string `json:"settings,omitempty"`
}

ApplicationSpec defines the desired state of Application

func (*ApplicationSpec) DeepCopy

func (in *ApplicationSpec) DeepCopy() *ApplicationSpec

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

func (*ApplicationSpec) DeepCopyInto

func (in *ApplicationSpec) DeepCopyInto(out *ApplicationSpec)

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

type ApplicationState

type ApplicationState string

ApplicationState is the state of an application at current time

const (
	// AppRunning means that the application is installed success and ready for serve.
	AppRunning ApplicationState = "running"
	// AppStopped means that the application's deployment/statefulset replicas has been set to zero.
	AppStopped ApplicationState = "stopped"
	// AppNotReady means that the application's not ready to serve
	AppNotReady ApplicationState = "notReady"
)

These ar the valid states of applications

func (ApplicationState) String

func (a ApplicationState) String() string

type ApplicationStatus

type ApplicationStatus struct {

	// the state of the application: draft, submitted, passed, rejected, suspended, active
	State string `json:"state,omitempty"`
	// for downloading phase
	Progress   string       `json:"progress,omitempty"`
	UpdateTime *metav1.Time `json:"updateTime"`
	StatusTime *metav1.Time `json:"statusTime"`
	// StartedTime is the time that app first to running state
	StartedTime        *metav1.Time     `json:"startedTime,omitempty"`
	LastTransitionTime *metav1.Time     `json:"lastTransitionTime,omitempty"`
	EntranceStatuses   []EntranceStatus `json:"entranceStatuses,omitempty"`
}

ApplicationStatus defines the observed state of Application

func (*ApplicationStatus) DeepCopy

func (in *ApplicationStatus) DeepCopy() *ApplicationStatus

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

func (*ApplicationStatus) DeepCopyInto

func (in *ApplicationStatus) DeepCopyInto(out *ApplicationStatus)

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

type Condition

type Condition struct {
	Node      string `json:"node"`
	Completed bool   `json:"completed"`
}

func (*Condition) DeepCopy

func (in *Condition) DeepCopy() *Condition

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

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

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

type DefaultThirdLevelDomainConfig

type DefaultThirdLevelDomainConfig struct {
	AppName          string `json:"appName"`
	EntranceName     string `json:"entranceName"`
	ThirdLevelDomain string `json:"thirdLevelDomain"`
}

func (*DefaultThirdLevelDomainConfig) DeepCopy

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

func (*DefaultThirdLevelDomainConfig) DeepCopyInto

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

type Entrance

type Entrance struct {
	Name string `yaml:"name" json:"name"`
	Host string `yaml:"host" json:"host"`
	Port int32  `yaml:"port" json:"port"`
	// Optional. if invisible=true.
	Icon string `yaml:"icon,omitempty" json:"icon,omitempty"`
	// Optional. if invisible=true.
	Title     string `yaml:"title" json:"title,omitempty"`
	AuthLevel string `yaml:"authLevel,omitempty" json:"authLevel,omitempty"`
	Invisible bool   `yaml:"invisible,omitempty" json:"invisible,omitempty"`
	URL       string `yaml:"url,omitempty" json:"url,omitempty"`

	// openMethod has three choices default, iframe, window
	// Optional. if invisible=true.
	OpenMethod string `yaml:"openMethod,omitempty" json:"openMethod,omitempty"`

	WindowPushState bool `yaml:"windowPushState,omitempty" json:"windowPushState,omitempty"`
	Skip            bool `yaml:"skip,omitempty" json:"skip,omitempty"`
}

Entrance contains details for application entrance

func (*Entrance) DeepCopy

func (in *Entrance) DeepCopy() *Entrance

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

func (*Entrance) DeepCopyInto

func (in *Entrance) DeepCopyInto(out *Entrance)

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

type EntranceState

type EntranceState string
const (
	EntranceRunning  EntranceState = "running"
	EntranceNotReady EntranceState = "notReady"
	EntranceStopped  EntranceState = "stopped"
)

func (EntranceState) String

func (e EntranceState) String() string

type EntranceStatus

type EntranceStatus struct {
	Name               string        `json:"name"`
	State              EntranceState `json:"state"`
	StatusTime         *metav1.Time  `json:"statusTime"`
	Reason             string        `json:"reason"`
	Message            string        `json:"message,omitempty"`
	LastTransitionTime *metav1.Time  `json:"lastTransitionTime,omitempty"`
}

func (*EntranceStatus) DeepCopy

func (in *EntranceStatus) DeepCopy() *EntranceStatus

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

func (*EntranceStatus) DeepCopyInto

func (in *EntranceStatus) DeepCopyInto(out *EntranceStatus)

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

type ImageInfo

type ImageInfo struct {
	Node         string       `json:"node"`
	Name         string       `json:"name"`
	Architecture string       `json:"architecture,omitempty"`
	Variant      string       `json:"variant,omitempty"`
	Os           string       `json:"os,omitempty"`
	LayersData   []ImageLayer `json:"layersData"`
}

func (*ImageInfo) DeepCopy

func (in *ImageInfo) DeepCopy() *ImageInfo

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

func (*ImageInfo) DeepCopyInto

func (in *ImageInfo) DeepCopyInto(out *ImageInfo)

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

type ImageLayer

type ImageLayer struct {
	MediaType   string            `json:"mediaType"`
	Digest      string            `json:"digest"`
	Offset      int64             `json:"offset"`
	Size        int64             `json:"size"`
	Annotations map[string]string `json:"annotations,omitempty"`
}

func (*ImageLayer) DeepCopy

func (in *ImageLayer) DeepCopy() *ImageLayer

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

func (*ImageLayer) DeepCopyInto

func (in *ImageLayer) DeepCopyInto(out *ImageLayer)

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

type ImageManager

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

	Spec   ImageManagerSpec   `json:"spec,omitempty"`
	Status ImageManagerStatus `json:"status,omitempty"`
}

ImageManager is the Schema for the image managers API

func (*ImageManager) DeepCopy

func (in *ImageManager) DeepCopy() *ImageManager

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

func (*ImageManager) DeepCopyInto

func (in *ImageManager) DeepCopyInto(out *ImageManager)

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

func (*ImageManager) DeepCopyObject

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

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

type ImageManagerList

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

ImageManagerList contains a list of ApplicationManager

func (*ImageManagerList) DeepCopy

func (in *ImageManagerList) DeepCopy() *ImageManagerList

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

func (*ImageManagerList) DeepCopyInto

func (in *ImageManagerList) DeepCopyInto(out *ImageManagerList)

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

func (*ImageManagerList) DeepCopyObject

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

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

type ImageManagerSpec

type ImageManagerSpec struct {
	AppName      string   `json:"appName"`
	AppNamespace string   `json:"appNamespace,omitempty"`
	AppOwner     string   `json:"appOwner,omitempty"`
	Refs         []Ref    `json:"refs"`
	Nodes        []string `json:"nodes"`
}

ImageManagerSpec defines the desired state of ImageManager

func (*ImageManagerSpec) DeepCopy

func (in *ImageManagerSpec) DeepCopy() *ImageManagerSpec

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

func (*ImageManagerSpec) DeepCopyInto

func (in *ImageManagerSpec) DeepCopyInto(out *ImageManagerSpec)

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

type ImageManagerStatus

type ImageManagerStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Conditions map[string]map[string]map[string]string `json:"conditions,omitempty"`
	Message    string                                  `json:"message,omitempty"`
	State      string                                  `json:"state"`
	UpdateTime *metav1.Time                            `json:"updateTime"`
	StatusTime *metav1.Time                            `json:"statusTime"`
}

ImageManagerStatus defines the observed state of ApplicationManager

func (*ImageManagerStatus) DeepCopy

func (in *ImageManagerStatus) DeepCopy() *ImageManagerStatus

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

func (*ImageManagerStatus) DeepCopyInto

func (in *ImageManagerStatus) DeepCopyInto(out *ImageManagerStatus)

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

type ImageProgress

type ImageProgress struct {
	NodeName string `json:"nodeName"`
	ImageRef string `json:"imageRef"`
	Progress string `json:"progress"`
}

func (*ImageProgress) DeepCopy

func (in *ImageProgress) DeepCopy() *ImageProgress

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

func (*ImageProgress) DeepCopyInto

func (in *ImageProgress) DeepCopyInto(out *ImageProgress)

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

type ImageSpec

type ImageSpec struct {
	AppName string   `json:"appName"`
	Nodes   []string `json:"nodes"`
	Refs    []string `json:"refs"`
}

func (*ImageSpec) DeepCopy

func (in *ImageSpec) DeepCopy() *ImageSpec

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

func (*ImageSpec) DeepCopyInto

func (in *ImageSpec) DeepCopyInto(out *ImageSpec)

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

type ImageStatus

type ImageStatus struct {
	State      string       `json:"state"`
	Images     []ImageInfo  `json:"images,omitempty"`
	StatueTime *metav1.Time `json:"statueTime"`
	Message    string       `json:"message,omitempty"`
	Conditions []Condition  `json:"conditions,omitempty"`
}

func (*ImageStatus) DeepCopy

func (in *ImageStatus) DeepCopy() *ImageStatus

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

func (*ImageStatus) DeepCopyInto

func (in *ImageStatus) DeepCopyInto(out *ImageStatus)

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

type OpRecord

type OpRecord struct {
	OpType    OpType                  `json:"opType"`
	OpID      string                  `json:"opId,omitempty"`
	Message   string                  `json:"message"`
	Version   string                  `json:"version"`
	Source    string                  `json:"source"`
	Status    ApplicationManagerState `json:"status"`
	StateTime *metav1.Time            `json:"statusTime"`
}

OpRecord contains details of an operation.

func (*OpRecord) DeepCopy

func (in *OpRecord) DeepCopy() *OpRecord

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

func (*OpRecord) DeepCopyInto

func (in *OpRecord) DeepCopyInto(out *OpRecord)

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

type OpType

type OpType string

OpType represents the type of operation being performed.

const (
	// InstallOp means an installation operation.
	InstallOp OpType = "install"
	// UninstallOp means an uninstallation operation.
	UninstallOp OpType = "uninstall"
	// UpgradeOp means an upgrade operation.
	UpgradeOp OpType = "upgrade"
	// StopOp means a suspend operation.
	StopOp OpType = "stop"
	// ResumeOp means a resume operation.
	ResumeOp OpType = "resume"
	// CancelOp means a cancel operation that operation can cancel an operation at pending or installing.
	CancelOp OpType = "cancel"
	// ApplyEnvOp means applying environment variables
	ApplyEnvOp OpType = "applyEnv"
)

Describe the supported operation types.

type Ref

type Ref struct {
	Name            string            `json:"name"`
	ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy"`
}

func (*Ref) DeepCopy

func (in *Ref) DeepCopy() *Ref

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

func (*Ref) DeepCopyInto

func (in *Ref) DeepCopyInto(out *Ref)

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

type ServicePort

type ServicePort struct {
	Name string `json:"name" yaml:"name"`
	Host string `yaml:"host" json:"host"`
	Port int32  `yaml:"port" json:"port"`

	ExposePort int32 `yaml:"exposePort" json:"exposePort,omitempty"`

	// The protocol for this entrance. Supports "tcp" and "udp","".
	// Default is tcp/udp, "" mean tcp and udp.
	// +default="tcp/udp"
	// +optional
	Protocol          string `yaml:"protocol" json:"protocol,omitempty"`
	AddToTailscaleAcl bool   `yaml:"addToTailscaleAcl" json:"addToTailscaleAcl,omitempty"`
}

func (*ServicePort) DeepCopy

func (in *ServicePort) DeepCopy() *ServicePort

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

func (*ServicePort) DeepCopyInto

func (in *ServicePort) DeepCopyInto(out *ServicePort)

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

type TailScale

type TailScale struct {
	ACLs      []ACL    `json:"acls,omitempty"`
	SubRoutes []string `json:"subRoutes,omitempty"`
}

func (*TailScale) DeepCopy

func (in *TailScale) DeepCopy() *TailScale

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

func (*TailScale) DeepCopyInto

func (in *TailScale) DeepCopyInto(out *TailScale)

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

type Type

type Type string

Type means the entity that system support.

const (
	// App means application(crd).
	App Type = "app"
	// Recommend means argo cronworkflows.
	Recommend Type = "recommend"

	// Middleware means middleware like mongodb
	Middleware Type = "middleware"
)

func (Type) String

func (t Type) String() string

Jump to

Keyboard shortcuts

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