Documentation ¶
Index ¶
- func GenerateCreateNicInput(cr *v1alpha1.Nic, ips []string) (*sdkgo.Nic, error)
- func GenerateUpdateNicInput(cr *v1alpha1.Nic, ips []string) (*sdkgo.NicProperties, error)
- func IsNicUpToDate(cr *v1alpha1.Nic, nic sdkgo.Nic, ips []string, oldIps []string) bool
- func LateInitializer(in *v1alpha1.NicParameters, sg *sdkgo.Nic)
- type APIClient
- func (cp *APIClient) CreateNic(ctx context.Context, datacenterID, serverID string, nic sdkgo.Nic) (sdkgo.Nic, *sdkgo.APIResponse, error)
- func (cp *APIClient) DeleteNic(ctx context.Context, datacenterID, serverID, nicID string) (*sdkgo.APIResponse, error)
- func (cp *APIClient) GetAPIClient() *sdkgo.APIClient
- func (cp *APIClient) GetNic(ctx context.Context, datacenterID, serverID, nicID string) (sdkgo.Nic, *sdkgo.APIResponse, error)
- func (cp *APIClient) UpdateNic(ctx context.Context, datacenterID, serverID, nicID string, ...) (sdkgo.Nic, *sdkgo.APIResponse, error)
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCreateNicInput ¶
GenerateCreateNicInput returns sdkgo.Nic based on the CR spec
func GenerateUpdateNicInput ¶
GenerateUpdateNicInput returns sdkgo.NicProperties based on the CR spec modifications
func IsNicUpToDate ¶
IsNicUpToDate returns true if the Nic is up-to-date or false if it does not
func LateInitializer ¶
func LateInitializer(in *v1alpha1.NicParameters, sg *sdkgo.Nic)
LateInitializer fills the empty fields in *v1alpha1.NicParameters with the values seen in sdkgo.Nic.
Types ¶
type APIClient ¶
type APIClient struct {
*clients.IonosServices
}
APIClient is a wrapper around IONOS Service
func (*APIClient) CreateNic ¶
func (cp *APIClient) CreateNic(ctx context.Context, datacenterID, serverID string, nic sdkgo.Nic) (sdkgo.Nic, *sdkgo.APIResponse, error)
CreateNic based on Nic properties, using datacenterID and serverID
func (*APIClient) DeleteNic ¶
func (cp *APIClient) DeleteNic(ctx context.Context, datacenterID, serverID, nicID string) (*sdkgo.APIResponse, error)
DeleteNic based on datacenterID, serverID, nicID
func (*APIClient) GetAPIClient ¶
GetAPIClient gets the APIClient
type Client ¶
type Client interface { GetNic(ctx context.Context, datacenterID, serverID, nicID string) (sdkgo.Nic, *sdkgo.APIResponse, error) CreateNic(ctx context.Context, datacenterID, serverID string, nic sdkgo.Nic) (sdkgo.Nic, *sdkgo.APIResponse, error) UpdateNic(ctx context.Context, datacenterID, serverID, nicID string, nicProperties sdkgo.NicProperties) (sdkgo.Nic, *sdkgo.APIResponse, error) DeleteNic(ctx context.Context, datacenterID, serverID, nicID string) (*sdkgo.APIResponse, error) GetAPIClient() *sdkgo.APIClient }
Client is a wrapper around IONOS Service Nic methods
Click to show internal directories.
Click to hide internal directories.