Documentation ¶
Index ¶
- Constants
- type ConditionStatus
- type InstallConditionType
- type Instance
- func (i Instance) Create(obj interface{}, params map[string]string) error
- func (i Instance) Delete(obj interface{}) error
- func (i Instance) Get(cols map[string]string) (interface{}, error)
- func (i Instance) GetByPrimaryKey(id string) (interface{}, error)
- func (i Instance) GetList(cols map[string]string) (interface{}, error)
- func (i Instance) GetListByStatusSets(status sets.String) (interface{}, error)
- func (i Instance) Update(obj interface{}, cols ...string) error
- func (i Instance) UpdateStatusMsg(obj interface{}, status, msg string) error
Constants ¶
View Source
const ( // InstallOperator the condition type of operator InstallOperator InstallConditionType = "InstallOperator" // CreateResource the condition type of custom resource CreateResource InstallConditionType = "CreateResource" // Waiting condition status for resources which waiting for install Waiting ConditionStatus = "Waiting" // Running condition status for resources Running ConditionStatus = "Running" // Success condition status for resources which has deployed succeeded Success ConditionStatus = "Success" // Failed condition status for resources which deploy failed or upgrade failed Failed ConditionStatus = "Failed" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstallConditionType ¶
type InstallConditionType string
InstallConditionType of operator or custom resource
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
Instance the dao layer of instance for database CRUD
func (Instance) Create ¶
Create Insert the ServiceInstance into database params is a map of the necessary values, such as ServiceBinding's name, and the ClusterId
func (Instance) GetByPrimaryKey ¶
GetByPrimaryKey get the instance by the primary key (id)
func (Instance) GetListByStatusSets ¶
GetListByStatusSets get instance list, and filters by status
func (Instance) UpdateStatusMsg ¶
UpdateStatusMsg update the status massage for instance
Click to show internal directories.
Click to hide internal directories.