util

package
v0.0.0-...-7132af1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDir

func CreateDir(path string) error

func GetAvailableIP

func GetAvailableIP(ipAndMask string) []string

func GetAvailableIPRange

func GetAvailableIPRange(ipStart, ipEnd string) []string

func GetLocalIP

func GetLocalIP() (string, error)

func Home

func Home() (string, error)

returns the home directory for the executing user.

func IPAddressToCIDR

func IPAddressToCIDR(ipAdress string) string

func IPMaskStringToCIDR

func IPMaskStringToCIDR(netmask string) string

func InitLogger

func InitLogger(verbose bool) *log.Logger

func IsExist

func IsExist(path string) bool

func LocalIP

func LocalIP() string

func NewClient

func NewClient(config string) (*kubernetes.Clientset, error)

func NewDynamicClient

func NewDynamicClient(config string) (*rest.Config, error)

func ParseIp

func ParseIp(ip string) []string

func Render

func Render(tmpl *template.Template, variables map[string]interface{}) (string, error)

Render text template with given `variables` Render-context

Types

type Data

type Data map[string]interface{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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