Documentation
¶
Index ¶
- func BindOutputProposal(proposal *providerv0.OutputProposal) (*providerv0.OutputProposal, error)
- func DecodeFilteredResponse(response *providerv0.ExecuteRequestResponse) (map[string]*providerv0.PublicValue, error)
- func Diagnostic(severity basev0.FailureDiagnostic_Severity, namespace, code, message string) (*basev0.FailureDiagnostic, error)
- func HandleCaptureResult(result *providerv0.CaptureResult) (*providerv0.OpaqueReference, error)
- func NewBlockedAction(id string, position uint32, resourceType string) (*providerv0.PlanAction, error)
- func NewCreateAction(id string, position uint32, resourceType, prospectiveRemoteID string) (*providerv0.PlanAction, error)
- func NewDeleteAction(id string, position uint32, resourceType string) (*providerv0.PlanAction, error)
- func NewImportAction(id string, position uint32, resourceType string) (*providerv0.PlanAction, error)
- func NewManualAction(id string, position uint32, resourceType string) (*providerv0.PlanAction, error)
- func NewNoOpAction(id string, position uint32, resourceType string) (*providerv0.PlanAction, error)
- func NewProjectOutputAction(id string, position uint32, proposal *providerv0.OutputProposal) (*providerv0.PlanAction, error)
- func NewReplaceAction(id string, position uint32, resourceType, prospectiveRemoteID string) (*providerv0.PlanAction, error)
- func NewUpdateAction(id string, position uint32, resourceType string) (*providerv0.PlanAction, error)
- func Observation(material *providerv0.MaterialObservation, ...) (*providerv0.ObserveResponse, error)
- func Plan(plan *providerv0.OrderedPlan) (*providerv0.OrderedPlan, error)
- func PlannedRequest(request *providerv0.PlannedRequest) (*providerv0.PlannedRequest, error)
- func ValidateUpgrade(response *providerv0.UpgradeStateResponse, fromVersion, toVersion uint32) error
- type Base
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindOutputProposal ¶
func BindOutputProposal(proposal *providerv0.OutputProposal) (*providerv0.OutputProposal, error)
func DecodeFilteredResponse ¶
func DecodeFilteredResponse(response *providerv0.ExecuteRequestResponse) (map[string]*providerv0.PublicValue, error)
func Diagnostic ¶
func Diagnostic(severity basev0.FailureDiagnostic_Severity, namespace, code, message string) (*basev0.FailureDiagnostic, error)
func HandleCaptureResult ¶
func HandleCaptureResult(result *providerv0.CaptureResult) (*providerv0.OpaqueReference, error)
func NewBlockedAction ¶
func NewBlockedAction(id string, position uint32, resourceType string) (*providerv0.PlanAction, error)
func NewCreateAction ¶
func NewCreateAction(id string, position uint32, resourceType, prospectiveRemoteID string) (*providerv0.PlanAction, error)
func NewDeleteAction ¶
func NewDeleteAction(id string, position uint32, resourceType string) (*providerv0.PlanAction, error)
func NewImportAction ¶
func NewImportAction(id string, position uint32, resourceType string) (*providerv0.PlanAction, error)
func NewManualAction ¶
func NewManualAction(id string, position uint32, resourceType string) (*providerv0.PlanAction, error)
func NewNoOpAction ¶
func NewNoOpAction(id string, position uint32, resourceType string) (*providerv0.PlanAction, error)
func NewProjectOutputAction ¶
func NewProjectOutputAction(id string, position uint32, proposal *providerv0.OutputProposal) (*providerv0.PlanAction, error)
NewProjectOutputAction returns a validation-ready PROJECT_OUTPUT action. A project-output action must carry a bound output proposal (canonical validation rejects one without it), so the proposal is a required argument and is digest-bound here rather than left for the caller to attach.
func NewReplaceAction ¶
func NewReplaceAction(id string, position uint32, resourceType, prospectiveRemoteID string) (*providerv0.PlanAction, error)
func NewUpdateAction ¶
func NewUpdateAction(id string, position uint32, resourceType string) (*providerv0.PlanAction, error)
func Observation ¶
func Observation(material *providerv0.MaterialObservation, volatile *providerv0.VolatileObservation) (*providerv0.ObserveResponse, error)
func Plan ¶
func Plan(plan *providerv0.OrderedPlan) (*providerv0.OrderedPlan, error)
func PlannedRequest ¶
func PlannedRequest(request *providerv0.PlannedRequest) (*providerv0.PlannedRequest, error)
func ValidateUpgrade ¶
func ValidateUpgrade(response *providerv0.UpgradeStateResponse, fromVersion, toVersion uint32) error
Types ¶
type Base ¶
type Base struct {
providerv0.UnimplementedProviderServer
// contains filtered or unexported fields
}
func NewBase ¶
func NewBase(information *providerv0.GetProviderInformationResponse) (*Base, error)
func (*Base) GetProviderInformation ¶
func (b *Base) GetProviderInformation(_ context.Context, request *providerv0.GetProviderInformationRequest) (*providerv0.GetProviderInformationResponse, error)
Click to show internal directories.
Click to hide internal directories.