pcc

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCreatePrivateCrossConnectInput

func GenerateCreatePrivateCrossConnectInput(cr *v1alpha1.Pcc) (*sdkgo.PrivateCrossConnect, error)

GenerateCreatePrivateCrossConnectInput returns sdkgo.pcc based on the CR spec

func GenerateUpdatePrivateCrossConnectInput

func GenerateUpdatePrivateCrossConnectInput(cr *v1alpha1.Pcc) (*sdkgo.PrivateCrossConnectProperties, error)

GenerateUpdatePrivateCrossConnectInput returns sdkgo.PrivateCrossConnectProperties based on the CR spec modifications

func IsPrivateCrossConnectUpToDate

func IsPrivateCrossConnectUpToDate(cr *v1alpha1.Pcc, privateCrossConnect sdkgo.PrivateCrossConnect) bool

IsPrivateCrossConnectUpToDate returns true if the pcc is up-to-date or false if it does not

Types

type APIClient

type APIClient struct {
	*clients.IonosServices
}

APIClient is a wrapper around IONOS Service

func (*APIClient) CheckDuplicatePrivateCrossConnect

func (cp *APIClient) CheckDuplicatePrivateCrossConnect(ctx context.Context, privateCrossConnectName string) (*sdkgo.PrivateCrossConnect, error)

CheckDuplicatePrivateCrossConnect based on privateCrossConnectName, and the immutable property location

func (*APIClient) CreatePrivateCrossConnect

func (cp *APIClient) CreatePrivateCrossConnect(ctx context.Context, privateCrossConnect sdkgo.PrivateCrossConnect) (sdkgo.PrivateCrossConnect, *sdkgo.APIResponse, error)

CreatePrivateCrossConnect based on pcc properties

func (*APIClient) DeletePrivateCrossConnect

func (cp *APIClient) DeletePrivateCrossConnect(ctx context.Context, privateCrossConnectID string) (*sdkgo.APIResponse, error)

DeletePrivateCrossConnect based on privateCrossConnectID

func (*APIClient) GetAPIClient

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

GetAPIClient gets the APIClient

func (*APIClient) GetPrivateCrossConnect

func (cp *APIClient) GetPrivateCrossConnect(ctx context.Context, privateCrossConnectID string) (sdkgo.PrivateCrossConnect, *sdkgo.APIResponse, error)

GetPrivateCrossConnect based on privateCrossConnectID

func (*APIClient) GetPrivateCrossConnectID

func (cp *APIClient) GetPrivateCrossConnectID(privateCrossConnect *sdkgo.PrivateCrossConnect) (string, error)

GetPrivateCrossConnectID based on privateCrossConnect

func (*APIClient) UpdatePrivateCrossConnect

func (cp *APIClient) UpdatePrivateCrossConnect(ctx context.Context, privateCrossConnectID string, privateCrossConnect sdkgo.PrivateCrossConnectProperties) (sdkgo.PrivateCrossConnect, *sdkgo.APIResponse, error)

UpdatePrivateCrossConnect based on privateCrossConnectID and pcc properties

type Client

type Client interface {
	CheckDuplicatePrivateCrossConnect(ctx context.Context, privateCrossConnectName string) (*sdkgo.PrivateCrossConnect, error)
	GetPrivateCrossConnectID(privateCrossConnect *sdkgo.PrivateCrossConnect) (string, error)
	GetPrivateCrossConnect(ctx context.Context, privateCrossConnectID string) (sdkgo.PrivateCrossConnect, *sdkgo.APIResponse, error)
	CreatePrivateCrossConnect(ctx context.Context, privateCrossConnect sdkgo.PrivateCrossConnect) (sdkgo.PrivateCrossConnect, *sdkgo.APIResponse, error)
	UpdatePrivateCrossConnect(ctx context.Context, privateCrossConnectID string, privateCrossConnect sdkgo.PrivateCrossConnectProperties) (sdkgo.PrivateCrossConnect, *sdkgo.APIResponse, error)
	DeletePrivateCrossConnect(ctx context.Context, privateCrossConnectID string) (*sdkgo.APIResponse, error)
	GetAPIClient() *sdkgo.APIClient
}

Client is a wrapper around IONOS Service pcc methods

Jump to

Keyboard shortcuts

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