inst

package
v0.0.0-...-7378411 Latest Latest
Warning

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

Go to latest
Published: May 21, 2019 License: MIT Imports: 11 Imported by: 0

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

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

type ObjectWithInsts struct {
	Object model.Object
	Insts  []Inst
}

ObjectWithInsts the object with insts

Jump to

Keyboard shortcuts

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