Documentation ¶
Index ¶
- func NewReconcileAdapter(c client.Client) (controllerframe.ReconcileAdapter, error)
- func NewWebhookAdapter() webhook.WebhookAdapter
- type AlibabaCloudSlbClient
- type AlibabaSlbPodStatus
- type PodExtraStatus
- type SlbControllerAdapter
- func (r *SlbControllerAdapter) CreateEmployees(ctx context.Context, employer client.Object, ...) ([]controllerframe.IEmployee, []controllerframe.IEmployee, error)
- func (r *SlbControllerAdapter) CreateEmployer(ctx context.Context, employer client.Object, ...) ([]controllerframe.IEmployer, []controllerframe.IEmployer, error)
- func (r *SlbControllerAdapter) DeleteEmployees(ctx context.Context, employer client.Object, ...) ([]controllerframe.IEmployee, []controllerframe.IEmployee, error)
- func (r *SlbControllerAdapter) DeleteEmployer(ctx context.Context, employer client.Object, ...) ([]controllerframe.IEmployer, []controllerframe.IEmployer, error)
- func (r *SlbControllerAdapter) EmployeeSyncRequeueInterval() time.Duration
- func (r *SlbControllerAdapter) FollowPodOpsLifeCycle() bool
- func (r *SlbControllerAdapter) GetControllerName() string
- func (r *SlbControllerAdapter) GetCurrentEmployee(ctx context.Context, employer client.Object) ([]controllerframe.IEmployee, error)
- func (r *SlbControllerAdapter) GetCurrentEmployer(ctx context.Context, employer client.Object) ([]controllerframe.IEmployer, error)
- func (r *SlbControllerAdapter) GetExpectedEmployee(ctx context.Context, employer client.Object) ([]controllerframe.IEmployee, error)
- func (r *SlbControllerAdapter) GetExpectedEmployer(ctx context.Context, employer client.Object) ([]controllerframe.IEmployer, error)
- func (r *SlbControllerAdapter) GetSelectedEmployeeNames(ctx context.Context, employer client.Object) ([]string, error)
- func (r *SlbControllerAdapter) NeedRecordLifecycleFinalizerCondition() bool
- func (r *SlbControllerAdapter) UpdateEmployees(ctx context.Context, employer client.Object, ...) ([]controllerframe.IEmployee, []controllerframe.IEmployee, error)
- func (r *SlbControllerAdapter) UpdateEmployer(ctx context.Context, employer client.Object, ...) ([]controllerframe.IEmployer, []controllerframe.IEmployer, error)
- type SlbWebhookAdapter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReconcileAdapter ¶
func NewReconcileAdapter(c client.Client) (controllerframe.ReconcileAdapter, error)
func NewWebhookAdapter ¶
func NewWebhookAdapter() webhook.WebhookAdapter
Types ¶
type AlibabaCloudSlbClient ¶
type AlibabaCloudSlbClient struct {
*slb20140515.Client
}
func NewAlibabaCloudSlbClient ¶
func NewAlibabaCloudSlbClient() (*AlibabaCloudSlbClient, error)
func (*AlibabaCloudSlbClient) GetBackendServers ¶
func (c *AlibabaCloudSlbClient) GetBackendServers(lbID string) ([]string, error)
type AlibabaSlbPodStatus ¶
type AlibabaSlbPodStatus struct { EmployeeID string EmployeeName string EmployeeStatuses controller.PodEmployeeStatuses }
func (AlibabaSlbPodStatus) EmployeeEqual ¶
func (a AlibabaSlbPodStatus) EmployeeEqual(employeeStatus controller.IEmployee) (bool, error)
func (AlibabaSlbPodStatus) GetEmployeeId ¶
func (a AlibabaSlbPodStatus) GetEmployeeId() string
func (AlibabaSlbPodStatus) GetEmployeeName ¶
func (a AlibabaSlbPodStatus) GetEmployeeName() string
func (AlibabaSlbPodStatus) GetEmployeeStatuses ¶
func (a AlibabaSlbPodStatus) GetEmployeeStatuses() interface{}
type PodExtraStatus ¶
type PodExtraStatus struct {
TrafficOn bool
}
type SlbControllerAdapter ¶
func (*SlbControllerAdapter) CreateEmployees ¶
func (r *SlbControllerAdapter) CreateEmployees(ctx context.Context, employer client.Object, toCreates []controllerframe.IEmployee) ([]controllerframe.IEmployee, []controllerframe.IEmployee, error)
CreateEmployees returns (nil, toCreate, nil) since CCM of ACK will sync bs of slb
func (*SlbControllerAdapter) CreateEmployer ¶
func (r *SlbControllerAdapter) CreateEmployer(ctx context.Context, employer client.Object, toCreates []controllerframe.IEmployer) ([]controllerframe.IEmployer, []controllerframe.IEmployer, error)
func (*SlbControllerAdapter) DeleteEmployees ¶
func (r *SlbControllerAdapter) DeleteEmployees(ctx context.Context, employer client.Object, toDeletes []controllerframe.IEmployee) ([]controllerframe.IEmployee, []controllerframe.IEmployee, error)
DeleteEmployees returns (nil, toDelete, nil) since CCM of ACK will sync bs of slb
func (*SlbControllerAdapter) DeleteEmployer ¶
func (r *SlbControllerAdapter) DeleteEmployer(ctx context.Context, employer client.Object, toDeletes []controllerframe.IEmployer) ([]controllerframe.IEmployer, []controllerframe.IEmployer, error)
func (*SlbControllerAdapter) EmployeeSyncRequeueInterval ¶
func (r *SlbControllerAdapter) EmployeeSyncRequeueInterval() time.Duration
func (*SlbControllerAdapter) FollowPodOpsLifeCycle ¶
func (r *SlbControllerAdapter) FollowPodOpsLifeCycle() bool
func (*SlbControllerAdapter) GetControllerName ¶
func (r *SlbControllerAdapter) GetControllerName() string
func (*SlbControllerAdapter) GetCurrentEmployee ¶
func (r *SlbControllerAdapter) GetCurrentEmployee(ctx context.Context, employer client.Object) ([]controllerframe.IEmployee, error)
func (*SlbControllerAdapter) GetCurrentEmployer ¶
func (r *SlbControllerAdapter) GetCurrentEmployer(ctx context.Context, employer client.Object) ([]controllerframe.IEmployer, error)
func (*SlbControllerAdapter) GetExpectedEmployee ¶
func (r *SlbControllerAdapter) GetExpectedEmployee(ctx context.Context, employer client.Object) ([]controllerframe.IEmployee, error)
func (*SlbControllerAdapter) GetExpectedEmployer ¶
func (r *SlbControllerAdapter) GetExpectedEmployer(ctx context.Context, employer client.Object) ([]controllerframe.IEmployer, error)
func (*SlbControllerAdapter) GetSelectedEmployeeNames ¶
func (*SlbControllerAdapter) NeedRecordLifecycleFinalizerCondition ¶ added in v0.0.2
func (r *SlbControllerAdapter) NeedRecordLifecycleFinalizerCondition() bool
func (*SlbControllerAdapter) UpdateEmployees ¶
func (r *SlbControllerAdapter) UpdateEmployees(ctx context.Context, employer client.Object, toUpdates []controllerframe.IEmployee) ([]controllerframe.IEmployee, []controllerframe.IEmployee, error)
UpdateEmployees returns (nil, toUpdate, nil) since CCM of ACK will sync bs of slb
func (*SlbControllerAdapter) UpdateEmployer ¶
func (r *SlbControllerAdapter) UpdateEmployer(ctx context.Context, employer client.Object, toUpdates []controllerframe.IEmployer) ([]controllerframe.IEmployer, []controllerframe.IEmployer, error)
type SlbWebhookAdapter ¶
type SlbWebhookAdapter struct { }
func (*SlbWebhookAdapter) GetEmployersByEmployee ¶
func (*SlbWebhookAdapter) Name ¶
func (r *SlbWebhookAdapter) Name() string
Click to show internal directories.
Click to hide internal directories.