deploy

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RebasePushLoop

func RebasePushLoop(shell rebaserPusher, retryAttempts int, timeCoefficient time.Duration, backoff BackoffFunc) error

func WithWorkingDirectory

func WithWorkingDirectory(dir string) shellOption

Types

type BackoffFunc

type BackoffFunc func(sleepDurations []int)

func ExponentialBackoff

func ExponentialBackoff(base int) BackoffFunc

func RandomBackoff

func RandomBackoff(max int) BackoffFunc

type GitHubAction

type GitHubAction struct {
	Name        string                       `yaml:"name"`
	Description string                       `yaml:"description"`
	Inputs      map[string]GitHubActionInput `yaml:"inputs"`
	Runs        GitHubActionRuns             `yaml:"runs"`
}

type GitHubActionInput

type GitHubActionInput struct {
	Description string `yaml:"description"`
	Default     string `yaml:"default,omitempty"`
	Required    bool   `yaml:"required,omitempty"`
}

type GitHubActionRuns

type GitHubActionRuns struct {
	Using string            `yaml:"using"`
	Image string            `yaml:"image"`
	Env   map[string]string `yaml:"env"`
}

type Shell

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

func NewShell

func NewShell(options ...shellOption) *Shell

func (*Shell) GitClone

func (s *Shell) GitClone(repo string, dst string) error

func (*Shell) GitCommitAll

func (s *Shell) GitCommitAll(msg string) error

func (*Shell) GitPullRebase

func (s *Shell) GitPullRebase() error

func (*Shell) GitPush

func (s *Shell) GitPush() error

func (*Shell) KustomizeEdit

func (s *Shell) KustomizeEdit(arg string) error

func (*Shell) Run

func (s *Shell) Run(name string, args ...string) error

func (*Shell) SetDir

func (s *Shell) SetDir(dir string)

Jump to

Keyboard shortcuts

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