Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OperationAuth ¶
type OperationAuth struct {
Mode unboundedv1alpha3.MachineOperationCredentialAuthMode
SecretData map[string]string
}
OperationAuth is the provider-facing credential material resolved for an operation. Provider packages own the interpretation of SecretData.
func (*OperationAuth) RequiredSecretValue ¶
func (a *OperationAuth) RequiredSecretValue(key string) (string, error)
RequiredSecretValue returns a non-empty provider-specific secret value.
type OperationRequest ¶
type OperationRequest struct {
Machine *unboundedv1alpha3.Machine
OperationName string
OperationUID types.UID
ProviderID string
Operation unboundedv1alpha3.OperationKind
Parameters map[string]string
ReplaceUserData string
Auth *OperationAuth
}
OperationRequest is the generic provider-facing view of a MachineOperation.
type OperationResult ¶
OperationResult describes provider-side changes that must be reflected after execution, such as replacement of an underlying cloud resource identity.
type Provider ¶
type Provider interface {
Name() string
Supports(operation unboundedv1alpha3.OperationKind) bool
Execute(ctx context.Context, request OperationRequest) (OperationResult, error)
Cleanup(ctx context.Context, request OperationRequest, result OperationResult) error
}
Provider executes MachineOperation requests for a specific external provider.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package controller exposes the reusable MachineOperation provider controller.
|
Package controller exposes the reusable MachineOperation provider controller. |
Click to show internal directories.
Click to hide internal directories.