Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory interface {
CreateInst(params types.ContextParams, obj model.Object) Inst
}
Factory used to all inst
func New ¶
func New(clientSet apimachinery.ClientSetInterface) Factory
New create a new inst factory
type Inst ¶
type Inst interface { model.Operation GetObject() model.Object GetMainlineParentInst() (Inst, error) GetMainlineChildInst() ([]Inst, error) GetParentObjectWithInsts() ([]*ObjectWithInsts, error) GetParentInst() ([]Inst, error) GetChildObjectWithInsts() ([]*ObjectWithInsts, error) GetChildInst() ([]Inst, error) SetParentInst(targetInst Inst) error SetChildInst(targetInst Inst) error SetMainlineParentInst(instID int64) error SetMainlineChildInst(targetInst Inst) error GetInstID() (int64, error) GetParentID() (int64, error) GetInstName() (string, error) SetValue(key string, value interface{}) error SetValues(values frtypes.MapStr) GetValues() frtypes.MapStr ToMapStr() frtypes.MapStr IsDefault() bool }
Inst the inst interface
func CreateInst ¶
func CreateInst(params types.ContextParams, clientSet apimachinery.ClientSetInterface, obj model.Object, instItems []mapstr.MapStr) []Inst
CreateInst convert the inst into the Inst interface
type ObjectWithInsts ¶
ObjectWithInsts the object with insts
Click to show internal directories.
Click to hide internal directories.