Documentation ¶
Index ¶
- Constants
- Variables
- func Byte(_ context.Context, in any) []byte
- func Contains(t string, a []string) bool
- 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 In[T any, C EqualChecker[T]](search C, target []T) bool
- 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
- type EqualChecker
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 In ¶ added in v0.20.0
func In[T any, C EqualChecker[T]](search C, target []T) bool
In returns whether `search` appears in `target` slice.
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.
Types ¶
type EqualChecker ¶ added in v0.20.0
EqualChecker is an interface that allows to check interface for equality.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.