gitlabcedocker

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDockerRunCommand

func BuildDockerRunCommand(options Options) string

func Create

func Create(options map[string]interface{}) (map[string]interface{}, error)

func Delete

func Delete(options map[string]interface{}) (bool, error)

func ExecInSystem

func ExecInSystem(execPath string, fullCommand string, logsBuffer *bytes.Buffer, print bool) error

ExecInSystem can exec a command with a full command in system. All logs produced by command would be print to stdout and write into logsBuffer if it is not nil

func ExecInSystemWithParams

func ExecInSystemWithParams(execPath string, params []string, logsBuffer *bytes.Buffer, print bool) error

ExecInSystemWithParams can exec a command with some params in system. All logs produced by command would be print to stdout and write into logsBuffer if it is not nil

func Read

func Read(options map[string]interface{}) (map[string]interface{}, error)

func Update

func Update(options map[string]interface{}) (map[string]interface{}, error)

Types

type Options

type Options struct {
	// GitLab home directory, we assume the path set by user is always correct.
	GitLabHome        string `validate:"required" mapstructure:"gitlab_home"`
	Hostname          string `validate:"required,hostname" mapstructure:"hostname"`
	SSHPort           uint   `validate:"required" mapstructure:"ssh_port"`
	HTTPPort          uint   `validate:"required" mapstructure:"http_port"`
	HTTPSPort         uint   `validate:"required" mapstructure:"https_port"`
	RmDataAfterDelete bool   `mapstructure:"rm_data_after_delete"`
}

Options is the struct for configurations of the gitlab-ce-docker plugin.

Jump to

Keyboard shortcuts

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