forwardingrule

package
v0.3.12-test Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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

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

func (cp *APIClient) GetAPIClient() *sdkgo.APIClient

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

Jump to

Keyboard shortcuts

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