s3key

package
v0.3.6-test Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateUpdateSeKeyInput

func GenerateUpdateSeKeyInput(cr *v1alpha1.S3Key) (*sdkgo.S3Key, error)

GenerateUpdateSeKeyInput returns sdkgo.TargetGroupProperties based on the CR spec modifications

func IsS3KeyUpToDate

func IsS3KeyUpToDate(cr *v1alpha1.S3Key, s3Key sdkgo.S3Key) bool

IsS3KeyUpToDate returns true if the S3Key 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) CreateS3Key

func (cp *APIClient) CreateS3Key(ctx context.Context, userID string) (sdkgo.S3Key, *sdkgo.APIResponse, error)

CreateS3Key using userID

func (*APIClient) DeleteS3Key

func (cp *APIClient) DeleteS3Key(ctx context.Context, userID, keyID string) (*sdkgo.APIResponse, error)

DeleteS3Key based on userID, keyID

func (*APIClient) GetAPIClient

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

GetAPIClient gets the APIClient

func (*APIClient) GetS3Key

func (cp *APIClient) GetS3Key(ctx context.Context, userID, keyID string) (sdkgo.S3Key, *sdkgo.APIResponse, error)

GetS3Key based on userID, keyID

func (*APIClient) UpdateS3Key

func (cp *APIClient) UpdateS3Key(ctx context.Context, userID, keyID string, s3Key sdkgo.S3Key) (sdkgo.S3Key, *sdkgo.APIResponse, error)

UpdateS3Key based on datacenterID, userID, keyID abd s3Key

Jump to

Keyboard shortcuts

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