targetgroup

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCreateTargetGroupInput

func GenerateCreateTargetGroupInput(cr *v1alpha1.TargetGroup) (*sdkgo.TargetGroup, error)

GenerateCreateTargetGroupInput returns sdkgo.TargetGroup based on the CR spec

func GenerateUpdateTargetGroupInput

func GenerateUpdateTargetGroupInput(cr *v1alpha1.TargetGroup) (*sdkgo.TargetGroupPut, error)

GenerateUpdateTargetGroupInput returns sdkgo.TargetGroupProperties based on the CR spec modifications

func IsTargetGroupUpToDate

func IsTargetGroupUpToDate(cr *v1alpha1.TargetGroup, targetGroup sdkgo.TargetGroup) bool

IsTargetGroupUpToDate returns true if the TargetGroup is up-to-date or false if it does not

func LateInitializer

func LateInitializer(in *v1alpha1.TargetGroupParameters, targetGroup *sdkgo.TargetGroup)

LateInitializer fills the empty fields in *v1alpha1.TargetGroupParameters with the values seen in sdkgo.TargetGroup.

Types

type APIClient

type APIClient struct {
	*clients.IonosServices
}

APIClient is a wrapper around IONOS Service

func (*APIClient) CheckDuplicateTargetGroup

func (cp *APIClient) CheckDuplicateTargetGroup(ctx context.Context, targetGroupName string) (*sdkgo.TargetGroup, error)

CheckDuplicateTargetGroup based on targetGroupName

func (*APIClient) CreateTargetGroup

func (cp *APIClient) CreateTargetGroup(ctx context.Context, targetGroup sdkgo.TargetGroup) (sdkgo.TargetGroup, *sdkgo.APIResponse, error)

CreateTargetGroup based on TargetGroup

func (*APIClient) DeleteTargetGroup

func (cp *APIClient) DeleteTargetGroup(ctx context.Context, targetGroupID string) (*sdkgo.APIResponse, error)

DeleteTargetGroup based on targetGroupID

func (*APIClient) GetAPIClient

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

GetAPIClient gets the APIClient

func (*APIClient) GetTargetGroup

func (cp *APIClient) GetTargetGroup(ctx context.Context, targetGroupID string) (sdkgo.TargetGroup, *sdkgo.APIResponse, error)

GetTargetGroup based on targetGroupID

func (*APIClient) GetTargetGroupID

func (cp *APIClient) GetTargetGroupID(targetGroup *sdkgo.TargetGroup) (string, error)

GetTargetGroupID based on targetGroup

func (*APIClient) GetTargetGroupTargets

func (cp *APIClient) GetTargetGroupTargets(ctx context.Context, targetGroupID string) (sdkgo.TargetGroup, *sdkgo.APIResponse, error)

GetTargetGroupTargets set by the user based on targetGroupID

func (*APIClient) UpdateTargetGroup

func (cp *APIClient) UpdateTargetGroup(ctx context.Context, targetGroupID string, targetGroup sdkgo.TargetGroupPut) (sdkgo.TargetGroup, *sdkgo.APIResponse, error)

UpdateTargetGroup based on targetGroupID and TargetGroupProperties

type Client

type Client interface {
	CheckDuplicateTargetGroup(ctx context.Context, targetGroupName string) (*sdkgo.TargetGroup, error)
	GetTargetGroupID(targetGroup *sdkgo.TargetGroup) (string, error)
	GetTargetGroup(ctx context.Context, targetGroupID string) (sdkgo.TargetGroup, *sdkgo.APIResponse, error)
	CreateTargetGroup(ctx context.Context, targetGroup sdkgo.TargetGroup) (sdkgo.TargetGroup, *sdkgo.APIResponse, error)
	UpdateTargetGroup(ctx context.Context, targetGroupID string, targetGroup sdkgo.TargetGroupPut) (sdkgo.TargetGroup, *sdkgo.APIResponse, error)
	DeleteTargetGroup(ctx context.Context, targetGroupID string) (*sdkgo.APIResponse, error)
	GetAPIClient() *sdkgo.APIClient
}

Client is a wrapper around IONOS Service TargetGroup methods

Jump to

Keyboard shortcuts

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