Documentation ¶
Index ¶
- Variables
- func AddDatahubDiagnosticsError(err error, diagnostics *diag.Diagnostics, errMsg string)
- func AddDatalakeDiagnosticsError(err error, diagnostics *diag.Diagnostics, errMsg string)
- func AddEnvironmentDiagnosticsError(err error, diagnostics *diag.Diagnostics, errMsg string)
- func Append(to map[string]schema.Attribute, from map[string]schema.Attribute)
- func CalculateTimeoutOrDefault(ctx context.Context, options *PollingOptions, fallback time.Duration) (*time.Duration, error)
- func CheckStringEquals(name string, expected string, actual string) error
- func Concat(strs ...string) string
- func ContainsAsSubstring(slice []string, element string) bool
- func ContainsEitherSubstring(slice []string, elements []string) bool
- func FromListValueToStringList(tl types.List) []string
- func FromSetValueToStringList(tl types.Set) []string
- func GetCdpClientForDataSource(req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) *cdp.Client
- func GetCdpClientForResource(req resource.ConfigureRequest, resp *resource.ConfigureResponse) *cdp.Client
- func GetMapFromSingleItemList(d *schema.ResourceData, name string) (map[string]interface{}, error)
- func GetMapFromSingleItemListInMap(d map[string]interface{}, name string) (map[string]interface{}, error)
- func LogEnvironmentSilently(ctx context.Context, content *environmentsmodels.Environment, ...) *environmentsmodels.Environment
- func LogSilently(ctx context.Context, messagePrefix string, in any)
- func ReadFileContent(ctx context.Context, path string) (*string, error)
- func ToBaseTypesStringMap(in map[string]string) map[string]types.String
- func ToStringList(configured []interface{}) []string
- type DatahubErrorPayload
- type DatalakeErrorPayload
- type EnvironmentErrorPayload
- type PollingOptions
- type Queue
- type SliceQueue
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrQueueEmpty = fmt.Errorf("QUEUE EMPTY")
)
Functions ¶
func AddDatahubDiagnosticsError ¶
func AddDatahubDiagnosticsError(err error, diagnostics *diag.Diagnostics, errMsg string)
func AddDatalakeDiagnosticsError ¶
func AddDatalakeDiagnosticsError(err error, diagnostics *diag.Diagnostics, errMsg string)
func AddEnvironmentDiagnosticsError ¶
func AddEnvironmentDiagnosticsError(err error, diagnostics *diag.Diagnostics, errMsg string)
func CheckStringEquals ¶ added in v0.4.0
CheckStringEquals checks whether two strings are equal and returns nil if so, and an error otherwise.
func ContainsAsSubstring ¶
func ContainsEitherSubstring ¶
func GetCdpClientForDataSource ¶
func GetCdpClientForDataSource(req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) *cdp.Client
func GetCdpClientForResource ¶
func GetCdpClientForResource(req resource.ConfigureRequest, resp *resource.ConfigureResponse) *cdp.Client
func GetMapFromSingleItemList ¶
func GetMapFromSingleItemList(d *schema.ResourceData, name string) (map[string]interface{}, error)
func LogEnvironmentSilently ¶
func LogEnvironmentSilently(ctx context.Context, content *environmentsmodels.Environment, messagePrefix string) *environmentsmodels.Environment
func ToStringList ¶
func ToStringList(configured []interface{}) []string
Types ¶
type DatahubErrorPayload ¶
type DatahubErrorPayload interface {
GetPayload() *datahubmodels.Error
}
type DatalakeErrorPayload ¶
type DatalakeErrorPayload interface {
GetPayload() *datalakemodels.Error
}
type EnvironmentErrorPayload ¶
type EnvironmentErrorPayload interface {
GetPayload() *environmentsmodels.Error
}
type PollingOptions ¶
type Queue ¶
func NewSliceQueue ¶
type SliceQueue ¶
type SliceQueue[T any] []T
func (*SliceQueue[T]) Dequeue ¶
func (q *SliceQueue[T]) Dequeue() (T, error)
func (*SliceQueue[T]) Enqueue ¶
func (q *SliceQueue[T]) Enqueue(value T) error
func (*SliceQueue[T]) Len ¶
func (q *SliceQueue[T]) Len() int
Source Files ¶
Click to show internal directories.
Click to hide internal directories.