Documentation ¶
Index ¶
- func GetLibrariesToInstallAndUninstall(cll []compute.Library, cls *compute.ClusterLibraryStatuses) ([]compute.Library, []compute.Library)
- func NewLibraryFromInstanceState(i any) (lib compute.Library)
- func WaitForLibrariesInstalledSdk(ctx context.Context, w *databricks.WorkspaceClient, wait compute.Wait, ...) (result *compute.ClusterLibraryStatuses, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLibrariesToInstallAndUninstall ¶ added in v1.40.0
func GetLibrariesToInstallAndUninstall(cll []compute.Library, cls *compute.ClusterLibraryStatuses) ([]compute.Library, []compute.Library)
Diff returns install/uninstall lists given a cluster lib status
func NewLibraryFromInstanceState ¶
NewLibraryFromInstanceState returns library from instance state for custom schema hash function. The thing is that for sets of types with optional subtypes resource.SerializeResourceForHash doesn't seem to predictably give consistent hashcode - that's why AWS launched TestAccClusterLibraryList is flaky. As an alternative, i tried reflect resource, but init of everything takes way more lines of code, than this thing. And this function is readable enough.
func WaitForLibrariesInstalledSdk ¶ added in v1.31.1
func WaitForLibrariesInstalledSdk(ctx context.Context, w *databricks.WorkspaceClient, wait compute.Wait, timeout time.Duration) (result *compute.ClusterLibraryStatuses, err error)
Given a compute.Wait struct, returns library statuses based on the input parameter. If wait.IsRunning is set to true, this function will wait until all of the libraries are installed to return. Otherwise, it will directly return the list of libraries.
Types ¶
This section is empty.