app

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultGitRepository = "https://github.com/mikouaj/gke-review"
	DefaultGitBranch     = "main"
	DefaultGitPolicyDir  = "rego"
)

Variables

This section is empty.

Functions

func CreateReviewApp

func CreateReviewApp(review Review) *cli.App

func GkeReview

func GkeReview(c *Config)

func NewColorize

func NewColorize() *colorstring.Colorize

Types

type Config

type Config struct {
	ClusterName     string
	ClusterLocation string
	ProjectName     string
	SilentMode      bool
	CredentialsFile string

	GitRepository  string
	GitBranch      string
	GitDirectory   string
	LocalDirectory string
	// contains filtered or unexported fields
}

func (*Config) Close

func (c *Config) Close() error

func (*Config) Load

func (c *Config) Load(ctx context.Context) error

type Output

type Output struct {
	// contains filtered or unexported fields
}

func NewSilentOutput

func NewSilentOutput() *Output

func NewStdOutOutput

func NewStdOutOutput() *Output

func (*Output) Color

func (o *Output) Color(v string) string

func (*Output) ErrorPrint

func (o *Output) ErrorPrint(message string, cause error) (n int, err error)

func (*Output) Printf

func (o *Output) Printf(format string, a ...interface{}) (n int, err error)

type Review

type Review func(c *Config)

Jump to

Keyboard shortcuts

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