config

package
v1.18.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgentStatus

func AgentStatus(lastMetricsAddedAt *time.Time, start time.Duration) string

func CompleteOutputFormat

func CompleteOutputFormat(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

func Env

func Env(key, fallback string) string

func PairsName

func PairsName(pp cloud.Pairs) string

func Ptr

func Ptr[T any](p T) *T

func ReadFile

func ReadFile(name string) ([]byte, error)

func UniqueSlice

func UniqueSlice[S ~[]E, E comparable](s S) S

func ValidUUID

func ValidUUID(s string) bool

Types

type Config

type Config struct {
	Ctx          context.Context
	BaseURL      string
	Cloud        *client.Client
	ProjectToken string
	ProjectID    string
	LocalData    *localdata.Keyring
}

Jump to

Keyboard shortcuts

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