helpers

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const ExternalConfigRoot = ""
View Source
const InAppRoot = ".wego"

Variables

View Source
var ErrFileMismatch = errors.New("file mismatch")
View Source
var ErrPathMismatch = errors.New("path mismatch")

Functions

func DiffFS

func DiffFS(actual WeGODirectoryFS, expected WeGODirectoryFS) (string, error)

func Filenames

func Filenames(fs WeGODirectoryFS) []string

func NewGithubClient

func NewGithubClient(ctx context.Context, token string) *ghAPI.Client

Types

type WeGODirectoryFS

type WeGODirectoryFS map[string]interface{}

func GetFileContents

func GetFileContents(ctx context.Context, gh *ghAPI.Client, org, repoName string, fs WeGODirectoryFS, files []*ghAPI.CommitFile) (WeGODirectoryFS, error)

func GetFilesForPullRequest

func GetFilesForPullRequest(ctx context.Context, gh *ghAPI.Client, org, repoName string, fs WeGODirectoryFS) (WeGODirectoryFS, error)

func MakeWeGOFS

func MakeWeGOFS(root, appName, clusterName string) WeGODirectoryFS

Jump to

Keyboard shortcuts

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