utils

package
v0.16.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOrganizationName

func GetOrganizationName(ctx context.Context, apiClient ResourceManagerClient, orgId string) (string, error)

GetOrganizationName returns the name of an organization by its ID.

func GetProjectName

func GetProjectName(ctx context.Context, apiClient ResourceManagerClient, projectId string) (string, error)

Types

type ResourceManagerClient

type ResourceManagerClient interface {
	GetOrganizationExecute(ctx context.Context, organizationId string) (*resourcemanager.OrganizationResponse, error)
	GetProjectExecute(ctx context.Context, projectId string) (*resourcemanager.GetProjectResponse, error)
}

Jump to

Keyboard shortcuts

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