utils

package
v0.37.2 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllEnvs added in v0.12.0

func GetAllEnvs(key []string, envType string) map[string]string

func GetEnv

func GetEnv(key string, envType string) string

func GetEnvWithDefault added in v0.5.0

func GetEnvWithDefault(key string, def func() string) string

func GetEnvs

func GetEnvs(key []string, envType string) string

func GetValue added in v0.5.0

func GetValue(value string, envType string) string

func Getenv

func Getenv(key string, envType string) string

func RunCommand

func RunCommand(cmd string) (*string, error)

Types

type IDStore added in v0.37.0

type IDStore struct {
	// contains filtered or unexported fields
}

func (*IDStore) Add added in v0.37.0

func (s *IDStore) Add(ids ...string)

func (*IDStore) Get added in v0.37.0

func (s *IDStore) Get() []string

type SrcFile added in v0.24.0

type SrcFile string

func (SrcFile) Container added in v0.24.0

func (s SrcFile) Container() string

func (SrcFile) Host added in v0.24.0

func (s SrcFile) Host() string

func (SrcFile) IsEmpty added in v0.24.0

func (s SrcFile) IsEmpty() bool

func (SrcFile) IsNotEmpty added in v0.24.0

func (s SrcFile) IsNotEmpty() bool

Jump to

Keyboard shortcuts

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