Documentation
¶
Index ¶
- type AccessURL
- type Cloud
- type CloudConf
- type CloudFeature
- type CloudImage
- type CloudLimited
- type CloudName
- type CloudProcessor
- type CloudRemain
- type CloudSpec
- type Credit
- type Pod
- type PodError
- type PodExpiry
- type PodInfo
- func (p *PodInfo) CanRelease() bool
- func (p *PodInfo) CheckGoodAndSet() bool
- func (p *PodInfo) GetCloudType() string
- func (p *PodInfo) IsAscend() bool
- func (p *PodInfo) IsCpu() bool
- func (p *PodInfo) IsExpiried() bool
- func (p *PodInfo) IsFailedOrTerminated() bool
- func (p *PodInfo) IsHoldingAndNotExpiried() bool
- func (p *PodInfo) IsTerminated() bool
- func (p *PodInfo) IsTerminating() bool
- func (p *PodInfo) SetDefaultExpiry() (err error)
- func (p *PodInfo) SetStartingPodInfo(cid string, owner otypes.Account) (err error)
- func (p *PodInfo) SetStatus()
- func (p *PodInfo) StatusSetCreating()
- func (p *PodInfo) StatusSetFailed()
- func (p *PodInfo) StatusSetRunning()
- func (p *PodInfo) StatusSetTerminated()
- func (p *PodInfo) StatusSetTerminating()
- type PodStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cloud ¶
type Cloud struct { CloudConf Remain CloudRemain }
type CloudConf ¶
type CloudConf struct { Id string Name CloudName Spec CloudSpec Image CloudImage Feature CloudFeature Processor CloudProcessor Limited CloudLimited Credit Credit }
type CloudFeature ¶
type CloudFeature interface {
CloudFeature() string
}
CloudFeature
func NewCloudFeature ¶
func NewCloudFeature(v string) (CloudFeature, error)
type CloudImage ¶
type CloudImage interface {
CloudImage() string
}
CloudImage
func NewCloudImage ¶
func NewCloudImage(v string) (CloudImage, error)
type CloudLimited ¶
type CloudLimited interface {
CloudLimited() int
}
CloudLimited
func NewCloudLimited ¶
func NewCloudLimited(v int) (CloudLimited, error)
type CloudProcessor ¶
type CloudProcessor interface {
CloudProcessor() string
}
CloudProcessor
func NewCloudProcessor ¶
func NewCloudProcessor(v string) (CloudProcessor, error)
type CloudRemain ¶
type CloudRemain interface {
CloudRemain() int
}
CloudRemain
func NewCloudRemain ¶
func NewCloudRemain(v int) (CloudRemain, error)
type PodInfo ¶
type PodInfo struct { Pod Status PodStatus Expiry PodExpiry Error PodError AccessURL AccessURL CreatedAt types.Time }
func (*PodInfo) CanRelease ¶
func (*PodInfo) CheckGoodAndSet ¶
func (*PodInfo) GetCloudType ¶
func (*PodInfo) IsExpiried ¶
func (*PodInfo) IsFailedOrTerminated ¶
func (*PodInfo) IsHoldingAndNotExpiried ¶
func (*PodInfo) IsTerminated ¶
func (*PodInfo) IsTerminating ¶
func (*PodInfo) SetDefaultExpiry ¶
func (*PodInfo) SetStartingPodInfo ¶
func (*PodInfo) StatusSetCreating ¶
func (p *PodInfo) StatusSetCreating()
func (*PodInfo) StatusSetFailed ¶
func (p *PodInfo) StatusSetFailed()
func (*PodInfo) StatusSetRunning ¶
func (p *PodInfo) StatusSetRunning()
func (*PodInfo) StatusSetTerminated ¶
func (p *PodInfo) StatusSetTerminated()
func (*PodInfo) StatusSetTerminating ¶
func (p *PodInfo) StatusSetTerminating()
Click to show internal directories.
Click to hide internal directories.