Documentation ¶
Index ¶
- func GenerateCreateForwardingRuleInput(cr *v1alpha1.ForwardingRule, listenerIP string) (*sdkgo.ApplicationLoadBalancerForwardingRule, error)
- func GenerateUpdateForwardingRuleInput(cr *v1alpha1.ForwardingRule, listenerIP string) (*sdkgo.ApplicationLoadBalancerForwardingRulePut, error)
- func IsForwardingRuleUpToDate(cr *v1alpha1.ForwardingRule, ...) bool
- func LateInitializer(in *v1alpha1.ForwardingRuleParameters, ...)
- type APIClient
- func (cp *APIClient) CheckDuplicateForwardingRule(ctx context.Context, ...) (*sdkgo.ApplicationLoadBalancerForwardingRule, error)
- func (cp *APIClient) CreateForwardingRule(ctx context.Context, datacenterID, applicationloadbalancerID string, ...) (sdkgo.ApplicationLoadBalancerForwardingRule, *sdkgo.APIResponse, error)
- func (cp *APIClient) DeleteForwardingRule(ctx context.Context, ...) (*sdkgo.APIResponse, error)
- func (cp *APIClient) GetAPIClient() *sdkgo.APIClient
- func (cp *APIClient) GetForwardingRule(ctx context.Context, ...) (sdkgo.ApplicationLoadBalancerForwardingRule, *sdkgo.APIResponse, error)
- func (cp *APIClient) GetForwardingRuleID(forwardingrule *sdkgo.ApplicationLoadBalancerForwardingRule) (string, error)
- func (cp *APIClient) UpdateForwardingRule(ctx context.Context, ...) (sdkgo.ApplicationLoadBalancerForwardingRule, *sdkgo.APIResponse, error)
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCreateForwardingRuleInput ¶
func GenerateCreateForwardingRuleInput(cr *v1alpha1.ForwardingRule, listenerIP string) (*sdkgo.ApplicationLoadBalancerForwardingRule, error)
GenerateCreateForwardingRuleInput returns sdkgo.ApplicationLoadBalancer based on the CR spec
func GenerateUpdateForwardingRuleInput ¶
func GenerateUpdateForwardingRuleInput(cr *v1alpha1.ForwardingRule, listenerIP string) (*sdkgo.ApplicationLoadBalancerForwardingRulePut, error)
GenerateUpdateForwardingRuleInput returns sdkgo.ApplicationLoadBalancerProperties based on the CR spec modifications
func IsForwardingRuleUpToDate ¶
func IsForwardingRuleUpToDate(cr *v1alpha1.ForwardingRule, forwardingRule sdkgo.ApplicationLoadBalancerForwardingRule, listenerIP string) bool
IsForwardingRuleUpToDate returns true if the ApplicationLoadBalancer is up-to-date or false if it does not
func LateInitializer ¶
func LateInitializer(in *v1alpha1.ForwardingRuleParameters, forwardingRule *sdkgo.ApplicationLoadBalancerForwardingRule)
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) CheckDuplicateForwardingRule ¶
func (cp *APIClient) CheckDuplicateForwardingRule(ctx context.Context, datacenterID, applicationloadbalancerID, forwardingruleName string) (*sdkgo.ApplicationLoadBalancerForwardingRule, error)
CheckDuplicateForwardingRule based on datacenterID, applicationloadbalancerName
func (*APIClient) CreateForwardingRule ¶
func (cp *APIClient) CreateForwardingRule(ctx context.Context, datacenterID, applicationloadbalancerID string, forwardingrule sdkgo.ApplicationLoadBalancerForwardingRule) (sdkgo.ApplicationLoadBalancerForwardingRule, *sdkgo.APIResponse, error)
CreateForwardingRule based on datacenterID, applicationloadbalancerID, ApplicationLoadBalancerForwardingRule
func (*APIClient) DeleteForwardingRule ¶
func (cp *APIClient) DeleteForwardingRule(ctx context.Context, datacenterID, applicationloadbalancerID, forwardingruleID string) (*sdkgo.APIResponse, error)
DeleteForwardingRule based on datacenterID, applicationloadbalancerID, forwardingruleID
func (*APIClient) GetAPIClient ¶
GetAPIClient gets the APIClient
func (*APIClient) GetForwardingRule ¶
func (cp *APIClient) GetForwardingRule(ctx context.Context, datacenterID, applicationloadbalancerID, forwardingruleID string) (sdkgo.ApplicationLoadBalancerForwardingRule, *sdkgo.APIResponse, error)
GetForwardingRule based on datacenterID, applicationloadbalancerID, forwardingruleID
func (*APIClient) GetForwardingRuleID ¶
func (cp *APIClient) GetForwardingRuleID(forwardingrule *sdkgo.ApplicationLoadBalancerForwardingRule) (string, error)
GetForwardingRuleID based on forwardingrule
func (*APIClient) UpdateForwardingRule ¶
func (cp *APIClient) UpdateForwardingRule(ctx context.Context, datacenterID, applicationloadbalancerID, forwardingruleID string, applicationloadbalancer sdkgo.ApplicationLoadBalancerForwardingRulePut) (sdkgo.ApplicationLoadBalancerForwardingRule, *sdkgo.APIResponse, error)
UpdateForwardingRule based on datacenterID, applicationloadbalancerID, forwardingruleID and ApplicationLoadBalancerForwardingRulePut
type Client ¶
type Client interface { CheckDuplicateForwardingRule(ctx context.Context, datacenterID, applicationloadbalancerID, forwardingruleName string) (*sdkgo.ApplicationLoadBalancerForwardingRule, error) GetForwardingRuleID(forwardingrule *sdkgo.ApplicationLoadBalancerForwardingRule) (string, error) GetForwardingRule(ctx context.Context, datacenterID, applicationloadbalancerID, forwardingruleID string) (sdkgo.ApplicationLoadBalancerForwardingRule, *sdkgo.APIResponse, error) CreateForwardingRule(ctx context.Context, datacenterID, applicationloadbalancerID string, forwardingrule sdkgo.ApplicationLoadBalancerForwardingRule) (sdkgo.ApplicationLoadBalancerForwardingRule, *sdkgo.APIResponse, error) UpdateForwardingRule(ctx context.Context, datacenterID, applicationloadbalancerID, forwardingruleID string, forwardingrule sdkgo.ApplicationLoadBalancerForwardingRulePut) (sdkgo.ApplicationLoadBalancerForwardingRule, *sdkgo.APIResponse, error) DeleteForwardingRule(ctx context.Context, datacenterID, applicationloadbalancerID, forwardingruleID string) (*sdkgo.APIResponse, error) GetAPIClient() *sdkgo.APIClient }
Client is a wrapper around IONOS Service ApplicationLoadBalancer methods