Documentation ¶
Index ¶
- type ITfClient
- type ITfClientInitializer
- type ResourcesStatus
- type TfClient
- func (tf *TfClient) CreateResources(ctx context.Context, cr *apisv1alpha1.CloudManagement) (string, string, error)
- func (tf *TfClient) DeleteResources(ctx context.Context, cr *apisv1alpha1.CloudManagement) error
- func (tf *TfClient) ObserveResources(ctx context.Context, cr *apisv1alpha1.CloudManagement) (ResourcesStatus, error)
- func (tf *TfClient) UpdateResources(ctx context.Context, cr *apisv1alpha1.CloudManagement) error
- type TfClientInitializer
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)
Click to show internal directories.
Click to hide internal directories.