Documentation
¶
Index ¶
- func BuildDockerRunCommand(options Options) string
- func Create(options map[string]interface{}) (map[string]interface{}, error)
- func Delete(options map[string]interface{}) (bool, error)
- func ExecInSystem(execPath string, fullCommand string, logsBuffer *bytes.Buffer, print bool) error
- func ExecInSystemWithParams(execPath string, params []string, logsBuffer *bytes.Buffer, print bool) error
- func Read(options map[string]interface{}) (map[string]interface{}, error)
- func Update(options map[string]interface{}) (map[string]interface{}, error)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDockerRunCommand ¶
func ExecInSystem ¶
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
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.
Click to show internal directories.
Click to hide internal directories.