helper

package
v0.26.4 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddStringBeforePointForKindAndName

func AddStringBeforePointForKindAndName(path, kind, name, point, addContent string) error

func CopyFolderToLocal

func CopyFolderToLocal(git *git.Client, tempDirectory, folderRelativePath string) error

func DeleteFirstResourceFromYaml

func DeleteFirstResourceFromYaml(path, apiVersion, kind, name string) error

func DeleteKindFromYaml

func DeleteKindFromYaml(path, kind string) error

func FileExists

func FileExists(filename string) bool

func FolderEmpty

func FolderEmpty(folder string) (bool, error)

func FolderExists

func FolderExists(folder string) bool

func GetAbsPath

func GetAbsPath(pathParts ...string) (string, error)

func GetSecretValue

func GetSecretValue(secret *secret.Secret, existing *secret.Existing) (string, error)

func IsCrdSecret

func IsCrdSecret(secret *secret.Secret, existent *secret.Existing) bool

func IsExistentClientSecret

func IsExistentClientSecret(existent *secret.ExistingIDSecret) bool

func IsExistentSecret

func IsExistentSecret(secret *secret.Secret, existent *secret.Existing) bool

func RecreatePath

func RecreatePath(pathParts ...string) error

func Run

func Run(monitor mntr.Monitor, cmd exec.Cmd) error

func RunWithOutput

func RunWithOutput(monitor mntr.Monitor, cmd exec.Cmd) ([]byte, error)

Types

type Metadata

type Metadata struct {
	Name      string `yaml:"name"`
	Namespace string `yaml:"namespace"`
}

type Resource

type Resource struct {
	Kind       string    `yaml:"kind"`
	ApiVersion string    `yaml:"apiVersion"`
	Metadata   *Metadata `yaml:"metadata"`
}

Jump to

Keyboard shortcuts

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