applicationloadbalancer

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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

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

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

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

Jump to

Keyboard shortcuts

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