implement

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

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

type KubeResource struct {
	Resource metav1.Object
}

func (*KubeResource) Fetch

重新获取资源

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

func (r *KubeResource) GetScheme() *runtime.Scheme

重新获取资源

func (*KubeResource) GetState

func (r *KubeResource) GetState() statemachine.State

获取资源当前状态

func (*KubeResource) IsCancelled

func (r *KubeResource) IsCancelled() bool

流程是否被取消

func (*KubeResource) Update

func (r *KubeResource) Update() error

更新资源信息

func (*KubeResource) UpdateState

更新资源当前状态

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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