Documentation ¶
Index ¶
Constants ¶
View Source
const ( ServiceCreate ServiceOp = "create" ServiceUpdate = "update" ServiceDelete = "delete" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultEngine ¶
type DefaultEngine struct {
// contains filtered or unexported fields
}
func NewDefaultEngine ¶
func NewDefaultEngine(executors ...IstioExecutor) DefaultEngine
func (DefaultEngine) OnServiceOperator ¶
func (engine DefaultEngine) OnServiceOperator(op ServiceOp, svc *apistructs.Service) error
OnServiceOperator
type ExecResult ¶
type ExecResult int
const ( ExecSuccess ExecResult = iota ExecSkip ExecComplete ExecError )
type IstioEngine ¶
type IstioEngine interface {
OnServiceOperator(ServiceOp, *apistructs.Service) error
}
var EmptyEngine IstioEngine
type IstioExecutor ¶
type IstioExecutor interface { GetName() string SetIstioClient(versioned.Interface) OnServiceCreate(context.Context, *apistructs.Service) (ExecResult, error) OnServiceUpdate(context.Context, *apistructs.Service) (ExecResult, error) OnServiceDelete(context.Context, *apistructs.Service) (ExecResult, error) }
Click to show internal directories.
Click to hide internal directories.