Help us shape the future of Go! Take the 2026 Go Developer Survey

utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

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