utils

package
v0.13.2-prerelease.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCredentialsUsername

func GetCredentialsUsername(ctx context.Context, apiClient LogMeClient, projectId, instanceId, credentialsId string) (string, error)

func GetInstanceName

func GetInstanceName(ctx context.Context, apiClient LogMeClient, projectId, instanceId string) (string, error)

func LoadPlanId

func LoadPlanId(planName, version string, offerings *logme.ListOfferingsResponse) (*string, error)

func ValidatePlanId

func ValidatePlanId(planId string, offerings *logme.ListOfferingsResponse) error

Types

type LogMeClient

type LogMeClient interface {
	GetInstanceExecute(ctx context.Context, projectId, instanceId string) (*logme.Instance, error)
	GetCredentialsExecute(ctx context.Context, projectId, instanceId, credentialsId string) (*logme.CredentialsResponse, error)
}

Jump to

Keyboard shortcuts

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