Documentation ¶
Index ¶
- Constants
- Variables
- func Byte(_ context.Context, in any) []byte
- func ContextGetLifecycleType(ctx context.Context) (string, bool)
- func ContextGetReleaseUniq(ctx context.Context) (uniqname.UniqName, bool)
- func ContextWithLifecycleType(ctx context.Context, typ string) context.Context
- func ContextWithReleaseUniq(ctx context.Context, name uniqname.UniqName) context.Context
- func CopyFile(src, dest string) error
- func CreateFile(p string) (*os.File, error)
- func Download(ctx context.Context, file, uri string) error
- func GetKubernetesVersion(cfg *action.Configuration) (*version.Info, error)
- func IsExists(s string) bool
- func IsURL(str string) bool
- func KubeInit(kubecontext string) (err error)
- func MoveFile(src, dst string) error
- func NewCfg(ns, kubecontext string) (*action.Configuration, error)
- func NewHelm(ns string) (*helm.EnvSettings, error)
- func SaveInterface(ctx context.Context, file string, in any) error
- func SlicesMap[T any, S interface{ ... }, R any](s S, f func(T) R) []R
Constants ¶
View Source
const ( // HTTPTimeout is a timeout for HTTP requests. HTTPTimeout = 30 * time.Second )
View Source
const (
// RootAnnoName is prefix for all kubedog annotations.
RootAnnoName = "helmwave.app/"
)
Variables ¶
View Source
var ( // Helm is an instance of helm CLI. Helm = helm.New() // HelmRegistryClient is an instance of helm registry client. HelmRegistryClient *registry.Client )
Functions ¶
func ContextGetLifecycleType ¶ added in v0.29.0
func ContextGetReleaseUniq ¶ added in v0.29.0
func ContextWithLifecycleType ¶ added in v0.29.0
func ContextWithReleaseUniq ¶ added in v0.29.0
func CreateFile ¶
CreateFile creates recursively basedir of file and returns created file object.
func GetKubernetesVersion ¶ added in v0.30.1
func GetKubernetesVersion(cfg *action.Configuration) (*version.Info, error)
GetKubernetesVersion returns kubernetes server version.
func MoveFile ¶ added in v0.24.0
MoveFile moves files or directories. It also handles move between different mounts (copy + rm).
func NewCfg ¶ added in v0.12.2
func NewCfg(ns, kubecontext string) (*action.Configuration, error)
NewCfg creates helm internal configuration for provided namespace and kubecontext.
func NewHelm ¶ added in v0.12.2
func NewHelm(ns string) (*helm.EnvSettings, error)
NewHelm is a hack to create an instance of helm CLI and specifying namespace without environment variables.
func SaveInterface ¶ added in v0.12.0
SaveInterface encodes input to YAML and saves to file.
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.