types

package
v0.0.0-...-455f32a Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

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 Empty

type Empty interface {
}

type NamespacedName

type NamespacedName struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

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

func (in *PodWorker) DeepCopy() *PodWorker

func (*PodWorker) DeepCopyInto

func (in *PodWorker) DeepCopyInto(out *PodWorker)

type Resource

type Resource struct {
	CPU    int32 `json:"cpu"`
	Memory int32 `json:"memory"`
}

func (*Resource) DeepCopy

func (r *Resource) DeepCopy() *Resource

func (*Resource) DeepCopyInto

func (r *Resource) DeepCopyInto(out *Resource)

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

Jump to

Keyboard shortcuts

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