libraries

package
v1.42.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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.ClusterStatusResponse) ([]compute.Library, []compute.Library)

Diff returns install/uninstall lists given a cluster lib status

func NewLibraryFromInstanceState

func NewLibraryFromInstanceState(i any) (lib compute.Library)

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.ClusterStatusResponse, 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL