helpers

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

helpers/copy.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneRepo

func CloneRepo(repoURL, branch, workdir string) (string, error)

func CopyDir

func CopyDir(src, dst string) error

func InstallExtension

func InstallExtension(extensionName, manifest string, inputs map[string]interface{}, action string)

Types

type Input

type Input struct {
	Name        string `yaml:"name"`
	Type        string `yaml:"type"`
	Required    bool   `yaml:"required"`
	Description string `yaml:"description"`
	Default     string `yaml:"default"`
}

type Manifest

type Manifest struct {
	Name        string  `yaml:"name"`
	Description string  `yaml:"description"`
	Type        string  `yaml:"type"`
	Version     string  `yaml:"version"`
	Author      string  `yaml:"author"`
	Inputs      []Input `yaml:"inputs"`
}

type MultiError

type MultiError struct {
	Errors []error
}

func (*MultiError) Error

func (m *MultiError) Error() string

type ResourceStatus

type ResourceStatus struct {
	Success  bool
	Message  string
	Resource string
	Kind     string
	Path     string
}

Jump to

Keyboard shortcuts

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