utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: Apache-2.0 Imports: 17 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePullRequest

func CreatePullRequest(sourceFiles string, PROptions *types.PullRequestOptions) (err error)

CreatePullRequest create pull request with generated manifests to github repository

func GenerateManifests

func GenerateManifests(app *types.Configuration, tier *types.Datacenter, stage, organization string) string

GenerateManifests returns generated kubernetes manifest objects

func GeneratePipelines

func GeneratePipelines(app *types.Configuration, organization, githubRepositoryName string) []*types.Pipeline

GeneratePipelines returns list generated spinnaker pipeline objects

func GetFileContent

func GetFileContent(fileArg string) (targetName string, b []byte, err error)

GetFileContent loads the local content of a file and return the target name of the file in the target repository and its contents.

func LoadConfiguration

func LoadConfiguration(local bool, organization, repositoryName, branch string) []*types.Configuration

LoadConfiguration returns application config from local or remote configuration.json file

func ReadJSONLocalToStruct

func ReadJSONLocalToStruct() []*types.Configuration

ReadJSONLocalToStruct returns struct with configuration values from selected repository

func WriteFileOnDisk

func WriteFileOnDisk(out []byte, outputFilePath string) error

WriteFileOnDisk write generated file on disk

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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