instance

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 ConditionStatus

type ConditionStatus string

ConditionStatus of resource status

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

func (i Instance) Create(obj interface{}, params map[string]string) error

Create Insert the ServiceInstance into database params is a map of the necessary values, such as ServiceBinding's name, and the ClusterId

func (Instance) Delete

func (i Instance) Delete(obj interface{}) error

Delete the instance

func (Instance) Get

func (i Instance) Get(cols map[string]string) (interface{}, error)

Get the instance from database and filter by cols

func (Instance) GetByPrimaryKey

func (i Instance) GetByPrimaryKey(id string) (interface{}, error)

GetByPrimaryKey get the instance by the primary key (id)

func (Instance) GetList

func (i Instance) GetList(cols map[string]string) (interface{}, error)

GetList get instance list, and filter by cols

func (Instance) GetListByStatusSets

func (i Instance) GetListByStatusSets(status sets.String) (interface{}, error)

GetListByStatusSets get instance list, and filters by status

func (Instance) Update

func (i Instance) Update(obj interface{}, cols ...string) error

Update the instance to the database with cols

func (Instance) UpdateStatusMsg

func (i Instance) UpdateStatusMsg(obj interface{}, status, msg string) error

UpdateStatusMsg update the status massage for instance

Jump to

Keyboard shortcuts

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