Documentation ¶
Index ¶
- func NullString(value string) types.String
- func ReplaceIfInt64Diff() planmodifier.Int64
- func ReplaceIfStringDiff() planmodifier.String
- func TestDiagnostic(diagnostic *diag.Diagnostics, additional diag.Diagnostics) bool
- func TestDiagnostics(diagnostic *diag.Diagnostics, additional ...diag.Diagnostics) bool
- func TestError(diagnostic *diag.Diagnostics, err error, message string) bool
- type RecordingHttpPayloadTransport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NullString ¶
NullString converts a string to a null or non-null types.String depending on if it's empty.
func ReplaceIfInt64Diff ¶
func ReplaceIfInt64Diff() planmodifier.Int64
func ReplaceIfStringDiff ¶
func ReplaceIfStringDiff() planmodifier.String
func TestDiagnostic ¶
func TestDiagnostic(diagnostic *diag.Diagnostics, additional diag.Diagnostics) bool
TestDiagnostic appends additional diagnostic to given diagnostic and checks if there's any error.
func TestDiagnostics ¶
func TestDiagnostics(diagnostic *diag.Diagnostics, additional ...diag.Diagnostics) bool
TestDiagnostics appends multiple additional diagnostics to given diagnostic and checks if there's any error.
Types ¶
type RecordingHttpPayloadTransport ¶
type RecordingHttpPayloadTransport struct {
Transport transport.PayloadTransport
}
RecordingHttpPayloadTransport struct implementing the PayloadTransport interface.
func (*RecordingHttpPayloadTransport) Send ¶
func (r *RecordingHttpPayloadTransport) Send(request *transport.PayloadRequest) (*transport.PayloadResponse, error)
Send method for the RecordingHttpPayloadTransport struct. This sends the request and writes the response to a file.
func (*RecordingHttpPayloadTransport) SendWithExpectedStatus ¶
func (r *RecordingHttpPayloadTransport) SendWithExpectedStatus(request *transport.PayloadRequest, expectedStatus ...int) (*transport.PayloadResponse, error)
SendWithExpectedStatus method sends the request and expects a certain status. The response is written to a file.
Click to show internal directories.
Click to hide internal directories.