Documentation ¶
Overview ¶
Copyright 2022 SCS Team of School of Software, BUAA.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2022 SCS Team of School of Software, BUAA.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudRunCRD ¶
type CloudRunCRD interface { client.Object GetRound() int CommonStatus() *CommonStatus }
type CommonStatus ¶
type CommonStatus struct { Status Status `json:"status"` // Message is mainly used to store the error message when the CRD is failed. Message string `json:"message,omitempty"` // HistoryList is used to store the history of the CRD. HistoryList []string `json:"historyList,omitempty"` CurrentRound int `json:"currentRound"` StartTime int64 `json:"startTime,omitempty"` EndTime int64 `json:"endTime,omitempty"` PodWorker *PodWorker `json:"podWorker,omitempty"` }
func (*CommonStatus) DeepCopy ¶
func (in *CommonStatus) DeepCopy() *CommonStatus
func (*CommonStatus) DeepCopyInto ¶
func (in *CommonStatus) DeepCopyInto(out *CommonStatus)
func (*CommonStatus) HasStarted ¶
func (s *CommonStatus) HasStarted() bool
func (*CommonStatus) HashDone ¶
func (s *CommonStatus) HashDone() bool
type DecodeFunc ¶
type DecodeFunc func(string) (CloudRunCRD, error)
type NamespacedName ¶
func (*NamespacedName) DeepCopy ¶
func (in *NamespacedName) DeepCopy() *NamespacedName
implement DeepCopy for NamespacedName
func (*NamespacedName) DeepCopyInto ¶
func (in *NamespacedName) DeepCopyInto(out *NamespacedName)
implement DeepCopyInto for NamespacedName
type PodWorker ¶
type PodWorker struct { Name string `json:"name"` ContainerList []string `json:"containerList"` InitContainerList []string `json:"initContainerList"` }
func (*PodWorker) DeepCopyInto ¶
type Resource ¶
func (*Resource) DeepCopyInto ¶
type Status ¶
type Status string
const ( //StatusUNDO means the CRD is not deployed. StatusUNDO Status = "UNDO" // StatusPending means the CRD is pending to be deployed. StatusPending Status = "Pending" // StatusDoing means the CRD is being deployed. StatusDoing Status = "Doing" // StatusDone means the CRD has been deployed. StatusDone Status = "Done" // StatusFailed means the CRD failed to be deployed. StatusFailed Status = "Failed" // StatusUnknown means the CRD status is unknown. StatusUnknown Status = "Unknown" )