runner

package
v0.0.0-...-3f1c2bf Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddManifest

func AddManifest(args []string) error

AddManifest creates single manifest file

func CheckUpdateInformation

func CheckUpdateInformation(old, new schemas.Capacity) error

CheckUpdateInformation checks if updated information is valid or not

func FilterS3Path

func FilterS3Path(path string) (string, string)

FilterS3Path detects s3 path

func Initialize

func Initialize(args []string) error

Initialize creates necessary files for goployer

func ServerSetup

func ServerSetup(config schemas.Config) (builder.Builder, error)

ServerSetup setup a goployer server

func SetupBuilder

func SetupBuilder(mode string) (builder.Builder, error)

SetupBuilder setup builder struct for configuration

func Start

func Start(builderSt builder.Builder, mode string) error

Start function is the starting point of all processes.

Types

type Runner

type Runner struct {
	Logger     *Logger.Logger
	Builder    builder.Builder
	Collector  collector.Collector
	Slacker    slack.Slack
	FuncMapper map[string]func() error
}

func NewRunner

func NewRunner(newBuilder builder.Builder, mode string) (Runner, error)

NewRunner creates a new runner

func (Runner) CheckEnabledMetrics

func (r Runner) CheckEnabledMetrics() error

CheckEnabledMetrics checks if metrics configuration is enabled or not

func (Runner) Delete

func (r Runner) Delete() error

Delete is the main function for `goployer delete`

func (Runner) Deploy

func (r Runner) Deploy() error

Deploy is the main function of `goployer deploy`

func (Runner) LogFormatting

func (r Runner) LogFormatting(logLevel string)

LogFormatting sets log format

func (Runner) Refresh

func (r Runner) Refresh() error

Refresh will refresh autoscaling group instances

func (Runner) Run

func (r Runner) Run(mode string) error

Run executes all required steps for deployments

func (Runner) Status

func (r Runner) Status() error

Status shows the detailed information about autoscaling deployment

func (Runner) Update

func (r Runner) Update() error

Update will changes configuration of current deployment on live

Jump to

Keyboard shortcuts

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