cmds

package
v0.0.0-...-1181f04 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 38 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommand

func AddCommand(output *streams.Out, branch string, stacks []string, params []string) error

func ConfigCommand

func ConfigCommand(output *streams.Out) error

func ConfigLsCommand

func ConfigLsCommand(output *streams.Out, formatFlag string) error

func ConfigSetCommand

func ConfigSetCommand(output *streams.Out, name, value string) error

func CreateCommand

func CreateCommand(output *streams.Out, branch string, stacks []string, params []string) error

func EnsureProjectRunnersWork

func EnsureProjectRunnersWork(output *streams.Out, git *gitlab.Client, domain, gitName string, projectID int, runnerToken string) error

func GetDockerClient

func GetDockerClient(ctx context.Context, host string) (*client.Client, error)

func LsCommand

func LsCommand(output *streams.Out, checkRunners bool, numberOfPipelinesToShow int, formatFlag string, params []string) error

func NewClient

func NewClient(ctx context.Context, originalUrl string) (*govmomi.Client, error)

NewClient creates a govmomi.Client for use in the examples

func PsCommand

func PsCommand(output *streams.Out, formatFlag string, params []string) error

func RemoteCanContactGitLabServer

func RemoteCanContactGitLabServer(cli *client.Client, ctx context.Context) bool

TODO: run only once per swarm (it gets called for each runner in the swarm atm)

func RunOn

func RunOn(hostname string, args ...string) (output string, err error)

RunOn run a command on a remote host using shelled out ssh

func TriggerCommand

func TriggerCommand(output *streams.Out, params []string, mirror, pipeline bool) error

func UpdateCommand

func UpdateCommand(output *streams.Out, params []string) error

UpdateCommand reads the swarm compose yaml, expands any env vars in it, and then `docker stack deploy's it`

func VmCommand

func VmCommand(output *streams.Out, formatFlag string, params []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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