Documentation ¶
Index ¶
- func GenerateCreatePrivateCrossConnectInput(cr *v1alpha1.Pcc) (*sdkgo.PrivateCrossConnect, error)
- func GenerateUpdatePrivateCrossConnectInput(cr *v1alpha1.Pcc) (*sdkgo.PrivateCrossConnectProperties, error)
- func IsPrivateCrossConnectUpToDate(cr *v1alpha1.Pcc, privateCrossConnect sdkgo.PrivateCrossConnect) bool
- type APIClient
- func (cp *APIClient) CheckDuplicatePrivateCrossConnect(ctx context.Context, privateCrossConnectName string) (*sdkgo.PrivateCrossConnect, error)
- func (cp *APIClient) CreatePrivateCrossConnect(ctx context.Context, privateCrossConnect sdkgo.PrivateCrossConnect) (sdkgo.PrivateCrossConnect, *sdkgo.APIResponse, error)
- func (cp *APIClient) DeletePrivateCrossConnect(ctx context.Context, privateCrossConnectID string) (*sdkgo.APIResponse, error)
- func (cp *APIClient) GetAPIClient() *sdkgo.APIClient
- func (cp *APIClient) GetPrivateCrossConnect(ctx context.Context, privateCrossConnectID string) (sdkgo.PrivateCrossConnect, *sdkgo.APIResponse, error)
- func (cp *APIClient) GetPrivateCrossConnectID(privateCrossConnect *sdkgo.PrivateCrossConnect) (string, error)
- func (cp *APIClient) UpdatePrivateCrossConnect(ctx context.Context, privateCrossConnectID string, ...) (sdkgo.PrivateCrossConnect, *sdkgo.APIResponse, error)
- type Client
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 ¶
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