Documentation ¶
Index ¶
- func GenerateCreateApplicationLoadBalancerInput(cr *v1alpha1.ApplicationLoadBalancer, ips []string) (*sdkgo.ApplicationLoadBalancer, error)
- func GenerateUpdateApplicationLoadBalancerInput(cr *v1alpha1.ApplicationLoadBalancer, ips []string) (*sdkgo.ApplicationLoadBalancerProperties, error)
- func IsApplicationLoadBalancerUpToDate(cr *v1alpha1.ApplicationLoadBalancer, ...) bool
- func LateInitializer(in *v1alpha1.ApplicationLoadBalancerParameters, ...)
- type APIClient
- func (cp *APIClient) CheckDuplicateApplicationLoadBalancer(ctx context.Context, datacenterID, applicationloadbalancerName string) (*sdkgo.ApplicationLoadBalancer, error)
- func (cp *APIClient) CreateApplicationLoadBalancer(ctx context.Context, datacenterID string, ...) (sdkgo.ApplicationLoadBalancer, *sdkgo.APIResponse, error)
- func (cp *APIClient) DeleteApplicationLoadBalancer(ctx context.Context, datacenterID, applicationloadbalancerID string) (*sdkgo.APIResponse, error)
- func (cp *APIClient) GetAPIClient() *sdkgo.APIClient
- func (cp *APIClient) GetApplicationLoadBalancer(ctx context.Context, datacenterID, applicationloadbalancerID string) (sdkgo.ApplicationLoadBalancer, *sdkgo.APIResponse, error)
- func (cp *APIClient) GetApplicationLoadBalancerID(applicationloadbalancer *sdkgo.ApplicationLoadBalancer) (string, error)
- func (cp *APIClient) UpdateApplicationLoadBalancer(ctx context.Context, datacenterID, applicationloadbalancerID string, ...) (sdkgo.ApplicationLoadBalancer, *sdkgo.APIResponse, error)
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCreateApplicationLoadBalancerInput ¶
func GenerateCreateApplicationLoadBalancerInput(cr *v1alpha1.ApplicationLoadBalancer, ips []string) (*sdkgo.ApplicationLoadBalancer, error)
GenerateCreateApplicationLoadBalancerInput returns sdkgo.ApplicationLoadBalancer based on the CR spec
func GenerateUpdateApplicationLoadBalancerInput ¶
func GenerateUpdateApplicationLoadBalancerInput(cr *v1alpha1.ApplicationLoadBalancer, ips []string) (*sdkgo.ApplicationLoadBalancerProperties, error)
GenerateUpdateApplicationLoadBalancerInput returns sdkgo.ApplicationLoadBalancerProperties based on the CR spec modifications
func IsApplicationLoadBalancerUpToDate ¶
func IsApplicationLoadBalancerUpToDate(cr *v1alpha1.ApplicationLoadBalancer, applicationloadbalancer sdkgo.ApplicationLoadBalancer, listenerLan, targetLan int32, ips []string) bool
IsApplicationLoadBalancerUpToDate returns true if the ApplicationLoadBalancer is up-to-date or false if it does not
func LateInitializer ¶
func LateInitializer(in *v1alpha1.ApplicationLoadBalancerParameters, alb *sdkgo.ApplicationLoadBalancer)
LateInitializer fills the empty fields in *v1alpha1.ApplicationLoadBalancerParameters with the values seen in sdkgo.ApplicationLoadBalancer.
Types ¶
type APIClient ¶
type APIClient struct {
*clients.IonosServices
}
APIClient is a wrapper around IONOS Service
func (*APIClient) CheckDuplicateApplicationLoadBalancer ¶
func (cp *APIClient) CheckDuplicateApplicationLoadBalancer(ctx context.Context, datacenterID, applicationloadbalancerName string) (*sdkgo.ApplicationLoadBalancer, error)
CheckDuplicateApplicationLoadBalancer based on datacenterID, applicationloadbalancerName
func (*APIClient) CreateApplicationLoadBalancer ¶
func (cp *APIClient) CreateApplicationLoadBalancer(ctx context.Context, datacenterID string, applicationloadbalancer sdkgo.ApplicationLoadBalancer) (sdkgo.ApplicationLoadBalancer, *sdkgo.APIResponse, error)
CreateApplicationLoadBalancer based on ApplicationLoadBalancer
func (*APIClient) DeleteApplicationLoadBalancer ¶
func (cp *APIClient) DeleteApplicationLoadBalancer(ctx context.Context, datacenterID, applicationloadbalancerID string) (*sdkgo.APIResponse, error)
DeleteApplicationLoadBalancer based on applicationloadbalancerID
func (*APIClient) GetAPIClient ¶
GetAPIClient gets the APIClient
func (*APIClient) GetApplicationLoadBalancer ¶
func (cp *APIClient) GetApplicationLoadBalancer(ctx context.Context, datacenterID, applicationloadbalancerID string) (sdkgo.ApplicationLoadBalancer, *sdkgo.APIResponse, error)
GetApplicationLoadBalancer based on applicationloadbalancerID
func (*APIClient) GetApplicationLoadBalancerID ¶
func (cp *APIClient) GetApplicationLoadBalancerID(applicationloadbalancer *sdkgo.ApplicationLoadBalancer) (string, error)
GetApplicationLoadBalancerID based on applicationloadbalancer
func (*APIClient) UpdateApplicationLoadBalancer ¶
func (cp *APIClient) UpdateApplicationLoadBalancer(ctx context.Context, datacenterID, applicationloadbalancerID string, applicationloadbalancer sdkgo.ApplicationLoadBalancerProperties) (sdkgo.ApplicationLoadBalancer, *sdkgo.APIResponse, error)
UpdateApplicationLoadBalancer based on applicationloadbalancerID and ApplicationLoadBalancerProperties
type Client ¶
type Client interface { CheckDuplicateApplicationLoadBalancer(ctx context.Context, datacenterID, applicationloadbalancerName string) (*sdkgo.ApplicationLoadBalancer, error) GetApplicationLoadBalancerID(applicationloadbalancer *sdkgo.ApplicationLoadBalancer) (string, error) GetApplicationLoadBalancer(ctx context.Context, datacenterID, applicationloadbalancerID string) (sdkgo.ApplicationLoadBalancer, *sdkgo.APIResponse, error) CreateApplicationLoadBalancer(ctx context.Context, datacenterID string, applicationloadbalancer sdkgo.ApplicationLoadBalancer) (sdkgo.ApplicationLoadBalancer, *sdkgo.APIResponse, error) UpdateApplicationLoadBalancer(ctx context.Context, datacenterID, applicationloadbalancerID string, applicationloadbalancer sdkgo.ApplicationLoadBalancerProperties) (sdkgo.ApplicationLoadBalancer, *sdkgo.APIResponse, error) DeleteApplicationLoadBalancer(ctx context.Context, datacenterID, applicationloadbalancerID string) (*sdkgo.APIResponse, error) GetAPIClient() *sdkgo.APIClient }
Client is a wrapper around IONOS Service ApplicationLoadBalancer methods