helpers

package
v0.6.324 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveNodeByName

func ResolveNodeByName(ctx context.Context, nodeClient devplaneapiv1connect.ExternalNodeServiceClient, orgID string, nodeName string) (*nodev1.ExternalNode, error)

ResolveNodeByName returns the full node for the organization that matches the given name (case-insensitive). Use in non-interactive flows when the node is specified by name (e.g. --node my-node).

func ResolveOrgByName

func ResolveOrgByName(getter OrganizationGetter, orgName string) (*entity.Organization, error)

ResolveOrgByName returns the single organization matching the given name.

func SelectOrganizationInteractive

func SelectOrganizationInteractive(t *terminal.Terminal, organizations []entity.Organization, selector terminal.Selector) (*entity.Organization, error)

SelectOrganizationInteractive prompts the user to select an organization from the list.

Types

type OrganizationGetter

type OrganizationGetter interface {
	GetOrganizationsByName(name string) ([]entity.Organization, error)
}

Jump to

Keyboard shortcuts

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