Documentation ¶
Index ¶
- func GenerateCreateTargetGroupInput(cr *v1alpha1.TargetGroup) (*sdkgo.TargetGroup, error)
- func GenerateUpdateTargetGroupInput(cr *v1alpha1.TargetGroup) (*sdkgo.TargetGroupPut, error)
- func IsTargetGroupUpToDate(cr *v1alpha1.TargetGroup, targetGroup sdkgo.TargetGroup) bool
- func LateInitializer(in *v1alpha1.TargetGroupParameters, targetGroup *sdkgo.TargetGroup)
- type APIClient
- func (cp *APIClient) CreateTargetGroup(ctx context.Context, targetGroup sdkgo.TargetGroup) (sdkgo.TargetGroup, *sdkgo.APIResponse, error)
- func (cp *APIClient) DeleteTargetGroup(ctx context.Context, targetGroupID string) (*sdkgo.APIResponse, error)
- func (cp *APIClient) GetAPIClient() *sdkgo.APIClient
- func (cp *APIClient) GetTargetGroup(ctx context.Context, targetGroupID string) (sdkgo.TargetGroup, *sdkgo.APIResponse, error)
- func (cp *APIClient) GetTargetGroupTargets(ctx context.Context, targetGroupID string) (sdkgo.TargetGroup, *sdkgo.APIResponse, error)
- func (cp *APIClient) UpdateTargetGroup(ctx context.Context, targetGroupID string, targetGroup sdkgo.TargetGroupPut) (sdkgo.TargetGroup, *sdkgo.APIResponse, error)
- type Client
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) 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 ¶
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) 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 { 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