step

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//	Oauth prefix
	OauthTokenPrefix = "oauth2"

	FileName = "reaper.tar.gz"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerRegistry

type DockerRegistry struct {
	DockerRegistryID string `bson:"docker_registry_id"                json:"docker_registry_id"                   yaml:"docker_registry_id"`
	Host             string `bson:"host"                              json:"host"                                 yaml:"host"`
	Namespace        string `bson:"namespace"                         json:"namespace"                            yaml:"namespace"`
	UserName         string `bson:"username"                          json:"username"                             yaml:"username"`
	Password         string `bson:"password"                          json:"password"                             yaml:"password"`
}

type Proxy

type Proxy struct {
	Type                   string `bson:"type"                              json:"type"                                 yaml:"type"`
	Address                string `bson:"address"                           json:"address"                              yaml:"address"`
	Port                   int    `bson:"port"                              json:"port"                                 yaml:"port"`
	NeedPassword           bool   `bson:"need_password"                     json:"need_password"                        yaml:"need_password"`
	Username               string `bson:"username"                          json:"username"                             yaml:"username"`
	Password               string `bson:"password"                          json:"password"                             yaml:"password"`
	EnableRepoProxy        bool   `bson:"enable_repo_proxy"                 json:"enable_repo_proxy"                    yaml:"enable_repo_proxy"`
	EnableApplicationProxy bool   `bson:"enable_application_proxy"          json:"enable_application_proxy"             yaml:"enable_application_proxy"`
}

func (*Proxy) GetProxyURL

func (p *Proxy) GetProxyURL() string

type S3

type S3 struct {
	Ak        string `bson:"ak"                              json:"ak"                                 yaml:"ak"`
	Sk        string `bson:"sk"                              json:"sk"                                 yaml:"sk"`
	Endpoint  string `bson:"endpoint"                        json:"endpoint"                           yaml:"endpoint"`
	Bucket    string `bson:"bucket"                          json:"bucket"                             yaml:"bucket"`
	Subfolder string `bson:"subfolder"                       json:"subfolder"                          yaml:"subfolder"`
	Insecure  bool   `bson:"insecure"                        json:"insecure"                           yaml:"insecure"`
	Provider  int8   `bson:"provider"                        json:"provider"                           yaml:"provider"`
	Protocol  string `bson:"protocol"                        json:"protocol"                           yaml:"protocol"`
}

type StepArchiveSpec

type StepArchiveSpec struct {
	UploadDetail    []*Upload `bson:"upload_detail"                      json:"upload_detail"                             yaml:"upload_detail"`
	ObjectStorageID string    `bson:"object_storage_id"                  json:"object_storage_id"                         yaml:"object_storage_id"`
	S3              *S3       `bson:"s3_storage"                         json:"s3_storage"                                yaml:"s3_storage"`
}

type StepDockerBuildSpec

type StepDockerBuildSpec struct {
	Source                string          `bson:"source"                              json:"source"                                 yaml:"source"`
	WorkDir               string          `bson:"work_dir"                            json:"work_dir"                               yaml:"work_dir"`
	RegistryHost          string          `bson:"registry_host"                       json:"registry_host"                          yaml:"registry_host"`
	DockerFile            string          `bson:"docker_file"                         json:"docker_file"                            yaml:"docker_file"`
	ImageName             string          `bson:"image_name"                          json:"image_name"                             yaml:"image_name"`
	BuildArgs             string          `bson:"build_args"                          json:"build_args"                             yaml:"build_args"`
	ImageReleaseTag       string          `bson:"image_release_tag"                   json:"image_release_tag"                      yaml:"image_release_tag"`
	DockerTemplateContent string          `bson:"docker_template_content"             json:"docker_template_content"                yaml:"docker_template_content"`
	Proxy                 *Proxy          `bson:"proxy"                               json:"proxy"                                  yaml:"proxy"`
	IgnoreCache           bool            `bson:"ignore_cache"                        json:"ignore_cache"                           yaml:"ignore_cache"`
	DockerRegistry        *DockerRegistry `bson:"docker_registry"                     json:"docker_registry"                        yaml:"docker_registry"`
}

func (*StepDockerBuildSpec) GetDockerFile

func (s *StepDockerBuildSpec) GetDockerFile() string

type StepGitSpec

type StepGitSpec struct {
	Repos []*types.Repository `bson:"repos"          json:"repos"    yaml:"repos"`
	Proxy *Proxy              `bson:"proxy"          json:"proxy"    yaml:"proxy"`
}

type StepJunitReportSpec

type StepJunitReportSpec struct {
	ReportDir string `bson:"report_dir"                 json:"report_dir"                        yaml:"report_dir"`
	DestDir   string `bson:"dest_dir"                   json:"dest_dir"                          yaml:"dest_dir"`
	S3DestDir string `bson:"s3_dest_dir"                json:"s3_dest_dir"                       yaml:"s3_dest_dir"`
	FileName  string `bson:"file_name"                  json:"file_name"                         yaml:"file_name"`
	TestName  string `bson:"test_name"                  json:"test_name"                         yaml:"test_name"`
	S3Storage *S3    `bson:"s3_storage"                 json:"s3_storage"                        yaml:"s3_storage"`
}

type StepShellSpec

type StepShellSpec struct {
	Scripts []string `bson:"scripts"                              json:"scripts"                                 yaml:"scripts,omitempty"`
	Script  string   `bson:"script"                               json:"script"                                  yaml:"script"`
}

type StepTarArchiveSpec

type StepTarArchiveSpec struct {
	ResultDirs []string `bson:"result_dirs"                 json:"result_dirs"                      yaml:"result_dirs"`
	DestDir    string   `bson:"dest_dir"                   json:"dest_dir"                          yaml:"dest_dir"`
	S3DestDir  string   `bson:"s3_dest_dir"                json:"s3_dest_dir"                       yaml:"s3_dest_dir"`
	FileName   string   `bson:"file_name"                  json:"file_name"                         yaml:"file_name"`
	S3Storage  *S3      `bson:"s3_storage"                 json:"s3_storage"                        yaml:"s3_storage"`
}

type StepToolInstallSpec

type StepToolInstallSpec struct {
	Installs  []*Tool `bson:"installs"                     json:"installs"                        yaml:"installs"`
	S3Storage *S3     `bson:"s3_storage"                   json:"s3_storage"                      yaml:"s3_storage"`
}

type Tool

type Tool struct {
	Name     string   `bson:"name"                              json:"name"                                 yaml:"name"`
	Version  string   `bson:"version"                           json:"version"                              yaml:"version"`
	Scripts  []string `bson:"scripts"                           json:"scripts"                              yaml:"scripts"`
	BinPath  string   `bson:"bin_path"                          json:"bin_path"                             yaml:"bin_path"`
	Envs     []string `bson:"envs"                              json:"envs"                                 yaml:"envs"`
	Download string   `bson:"download"                          json:"download"                             yaml:"download"`
}

type Upload

type Upload struct {
	FilePath        string `bson:"file_path"                              json:"file_path"                                 yaml:"file_path"`
	AbsFilePath     string `bson:"abs_file_path"                          json:"aabs_file_pathk"                           yaml:"abs_file_path"`
	DestinationPath string `bson:"dest_path"                              json:"dest_path"                                 yaml:"dest_path"`
}

Jump to

Keyboard shortcuts

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