Documentation ¶
Index ¶
- Constants
- func ControllerOption(name SType, opt controller.Options)
- func GetMgr() ctrl.Manager
- func InitMgr(conf *rest.Config, options ctrl.Options)
- func Owns(name SType, owns ...runtime.Object)
- func RegisterHandlers(name SType, handlers ...Handler)
- func RegisterObject(tp SType, obj runtime.Object)
- func Run(options ...Option) error
- type Action
- type ActionContext
- type CmdType
- type ControllerContext
- type EType
- type Handler
- type Identity
- type Option
- type PType
- type Reconciler
- type SType
Constants ¶
View Source
const ( STypeComponent = "component" STypeScope = "scope" STypeWorkloadType = "workloadType" STypeApplicationConfiguration = "applicationConfiguration" STypeTrait = "trait" )
Variables ¶
This section is empty.
Functions ¶
func ControllerOption ¶
func ControllerOption(name SType, opt controller.Options)
func RegisterHandlers ¶
func RegisterObject ¶
Types ¶
type ActionContext ¶
type ActionContext struct { PreActions []Action Actions []Action PostActions []Action Values map[string]interface{} }
func (*ActionContext) Add ¶
func (o *ActionContext) Add(a ...Action)
add actions executed before actions added through AddPost method
func (*ActionContext) AddPost ¶
func (o *ActionContext) AddPost(a ...Action)
func (*ActionContext) AddPre ¶
func (o *ActionContext) AddPre(a ...Action)
add actions executed before actions added through Add method
func (*ActionContext) AddValue ¶
func (o *ActionContext) AddValue(k string, v interface{})
func (*ActionContext) Gather ¶
func (o *ActionContext) Gather() []Action
clear and gather all actions according to action order.
func (*ActionContext) GetValue ¶
func (o *ActionContext) GetValue(k string) interface{}
type ControllerContext ¶
type ControllerContext struct {
// contains filtered or unexported fields
}
type Option ¶
type Option func() error
func WithApplicationConfiguration ¶
func WithApplicationConfiguration() Option
WithApplicationConfiguration registers ApplicationConfiguration reconciler
func WithWorkloadType ¶
func WithWorkloadType() Option
WithWorkloadType registers WorkloadType reconciler
type Reconciler ¶
type Reconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme ControllerContext ControllerContext // contains filtered or unexported fields }
Reconciler reconciles a runtime object in oam
func (*Reconciler) SetupWithManager ¶
func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error
Click to show internal directories.
Click to hide internal directories.