redshift

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePatch

CreatePatch creates a *v1alpha1.ClusterParameters that has only the changed values between the target *v1alpha1.ClusterParameters and the current *redshift.Cluster

func GenerateCreateClusterInput

func GenerateCreateClusterInput(p *v1alpha1.ClusterParameters, cid, pw *string) *redshift.CreateClusterInput

GenerateCreateClusterInput from RedshiftSpec

func GenerateDeleteClusterInput

func GenerateDeleteClusterInput(p *v1alpha1.ClusterParameters, cid *string) *redshift.DeleteClusterInput

GenerateDeleteClusterInput from RedshiftSpec

func GenerateModifyClusterInput

func GenerateModifyClusterInput(p *v1alpha1.ClusterParameters, cl redshifttypes.Cluster) *redshift.ModifyClusterInput

GenerateModifyClusterInput from RedshiftSpec

func GenerateObservation

func GenerateObservation(in redshifttypes.Cluster) v1alpha1.ClusterObservation

GenerateObservation is used to produce v1alpha1.ClusterObservation from redshift.Cluster.

func GetConnectionDetails

func GetConnectionDetails(in v1alpha1.Cluster) managed.ConnectionDetails

GetConnectionDetails extracts managed.ConnectionDetails out of v1alpha1.Cluster.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound helper function to test for ErrCodeClusterNotFoundFault error

func IsUpToDate

IsUpToDate checks whether there is a change in any of the modifiable fields.

func LateInitialize

func LateInitialize(in *v1alpha1.ClusterParameters, cl *redshifttypes.Cluster)

LateInitialize fills the empty fields in *v1alpha1.ClusterParameters with the values seen in redshift.Cluster.

Types

type Client

type Client interface {
	DescribeClusters(ctx context.Context, input *redshift.DescribeClustersInput, opts ...func(*redshift.Options)) (*redshift.DescribeClustersOutput, error)
	CreateCluster(ctx context.Context, input *redshift.CreateClusterInput, opts ...func(*redshift.Options)) (*redshift.CreateClusterOutput, error)
	ModifyCluster(ctx context.Context, input *redshift.ModifyClusterInput, opts ...func(*redshift.Options)) (*redshift.ModifyClusterOutput, error)
	DeleteCluster(ctx context.Context, input *redshift.DeleteClusterInput, opts ...func(*redshift.Options)) (*redshift.DeleteClusterOutput, error)
}

Client defines Redshift client operations

func NewClient

func NewClient(cfg aws.Config) Client

NewClient creates new Redshift Client with provided AWS Configurations/Credentials

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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