alibabacloudslb

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

type SlbControllerAdapter struct {
	client.Client
	// contains filtered or unexported fields
}

func (*SlbControllerAdapter) CreateEmployees

CreateEmployees returns (nil, toCreate, nil) since CCM of ACK will sync bs of slb

func (*SlbControllerAdapter) CreateEmployer

func (*SlbControllerAdapter) DeleteEmployees

DeleteEmployees returns (nil, toDelete, nil) since CCM of ACK will sync bs of slb

func (*SlbControllerAdapter) DeleteEmployer

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 (r *SlbControllerAdapter) GetSelectedEmployeeNames(ctx context.Context, employer client.Object) ([]string, error)

func (*SlbControllerAdapter) NeedRecordLifecycleFinalizerCondition added in v0.0.2

func (r *SlbControllerAdapter) NeedRecordLifecycleFinalizerCondition() bool

func (*SlbControllerAdapter) UpdateEmployees

UpdateEmployees returns (nil, toUpdate, nil) since CCM of ACK will sync bs of slb

func (*SlbControllerAdapter) UpdateEmployer

type SlbWebhookAdapter

type SlbWebhookAdapter struct {
}

func (*SlbWebhookAdapter) GetEmployersByEmployee

func (r *SlbWebhookAdapter) GetEmployersByEmployee(ctx context.Context, employee client.Object, c client.Client) ([]client.Object, error)

func (*SlbWebhookAdapter) Name

func (r *SlbWebhookAdapter) Name() string

Jump to

Keyboard shortcuts

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