Documentation
¶
Index ¶
- Variables
- type IKubeResource
- type KubeResource
- func (r *KubeResource) Fetch() (statemachine.StateResource, error)
- func (r *KubeResource) GetName() string
- func (r *KubeResource) GetNamespace() string
- func (r *KubeResource) GetResource() metav1.Object
- func (r *KubeResource) GetScheme() *runtime.Scheme
- func (r *KubeResource) GetState() statemachine.State
- func (r *KubeResource) IsCancelled() bool
- func (r *KubeResource) Update() error
- func (r *KubeResource) UpdateState(statemachine.State) (statemachine.StateResource, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var NotImplementError = errors.New("methods need to be implemented")
Functions ¶
This section is empty.
Types ¶
type IKubeResource ¶
type IKubeResource interface { statemachine.StateResource GetScheme() *runtime.Scheme GetResource() metav1.Object Update() error }
type KubeResource ¶
func (*KubeResource) Fetch ¶
func (r *KubeResource) Fetch() (statemachine.StateResource, error)
重新获取资源
func (*KubeResource) GetName ¶
func (r *KubeResource) GetName() string
func (*KubeResource) GetNamespace ¶
func (r *KubeResource) GetNamespace() string
func (*KubeResource) GetResource ¶
func (r *KubeResource) GetResource() metav1.Object
func (*KubeResource) UpdateState ¶
func (r *KubeResource) UpdateState(statemachine.State) (statemachine.StateResource, error)
更新资源当前状态
Click to show internal directories.
Click to hide internal directories.