utils

package
v0.1.0-beta-test-sign-key Latest Latest
Warning

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

Go to latest
Published: Feb 28, 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