cis

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ITfClient

type ITfClient interface {
	ObserveResources(ctx context.Context, cr *apisv1alpha1.CloudManagement) (ResourcesStatus, error)
	CreateResources(ctx context.Context, cr *apisv1alpha1.CloudManagement) (string, string, error)
	UpdateResources(ctx context.Context, cr *apisv1alpha1.CloudManagement) error
	DeleteResources(ctx context.Context, cr *apisv1alpha1.CloudManagement) error
}

ITfClient contains domain logic for managing ServiceManager lifecycle

type ITfClientInitializer

type ITfClientInitializer interface {
	ConnectResources(ctx context.Context, cr *apisv1alpha1.CloudManagement) (ITfClient, error)
}

ITfClientInitializer will produce the ITfClient used by external

type ResourcesStatus

type ResourcesStatus struct {
	managed.ExternalObservation
	InstanceID string
	BindingID  string
}

ResourcesStatus contains a summary of the status of the tf resources managed by the ITfClient it uses the crossplane terminology for the external observation and enhances it with IDs of the managed instances

type TfClient

type TfClient struct {
	// contains filtered or unexported fields
}

func (*TfClient) CreateResources

func (tf *TfClient) CreateResources(ctx context.Context, cr *apisv1alpha1.CloudManagement) (string, string, error)

CreateResources creates the service manager instance and binding What of the resources need to be created is determined by set IDs in SM's status

func (*TfClient) DeleteResources

func (tf *TfClient) DeleteResources(ctx context.Context, cr *apisv1alpha1.CloudManagement) error

func (*TfClient) ObserveResources

func (tf *TfClient) ObserveResources(ctx context.Context, cr *apisv1alpha1.CloudManagement) (ResourcesStatus, error)

func (*TfClient) UpdateResources

func (tf *TfClient) UpdateResources(ctx context.Context, cr *apisv1alpha1.CloudManagement) error

type TfClientInitializer

type TfClientInitializer struct {
	// contains filtered or unexported fields
}

func NewTfClient

func NewTfClient(sConnector managed.ExternalConnecter, sbConnector managed.ExternalConnecter) *TfClientInitializer

func (*TfClientInitializer) ConnectResources

func (tfI *TfClientInitializer) ConnectResources(ctx context.Context, cr *apisv1alpha1.CloudManagement) (ITfClient, error)

Jump to

Keyboard shortcuts

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