step

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 3 Imported by: ? modules, 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

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 ImageAndServiceModule added in v1.13.0

type ImageAndServiceModule struct {
	ServiceModule string `bson:"service_module"                     json:"service_module"                        yaml:"service_module"`
	Image         string `bson:"image"                              json:"image"                                 yaml:"image"`
}

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 Resource added in v1.13.0

type Resource struct {
	Name      string `bson:"name"                              json:"name"                                 yaml:"name"`
	Kind      string `bson:"kind"                              json:"kind"                                 yaml:"kind"`
	Container string `bson:"container"                         json:"container"                            yaml:"container"`
	Origin    string `bson:"origin"                            json:"origin"                               yaml:"origin"`
}

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 StepDeploySpec added in v1.13.0

type StepDeploySpec struct {
	Env              string     `bson:"env"                              json:"env"                                 yaml:"env"`
	ServiceName      string     `bson:"service_name"                     json:"service_name"                        yaml:"service_name"`
	ServiceType      string     `bson:"service_type"                     json:"service_type"                        yaml:"service_type"`
	ServiceModule    string     `bson:"service_module"                   json:"service_module"                      yaml:"service_module"`
	Image            string     `bson:"image"                            json:"image"                               yaml:"image"`
	ClusterID        string     `bson:"cluster_id"                       json:"cluster_id"                          yaml:"cluster_id"`
	Timeout          int        `bson:"timeout"                          json:"timeout"                             yaml:"timeout"`
	ReplaceResources []Resource `bson:"replace_resources"                json:"replace_resources"                   yaml:"replace_resources"`
}

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 StepHelmDeploySpec added in v1.13.0

type StepHelmDeploySpec struct {
	Env              string                   `bson:"env"                              json:"env"                                 yaml:"env"`
	ServiceName      string                   `bson:"service_name"                     json:"service_name"                        yaml:"service_name"`
	ServiceType      string                   `bson:"service_type"                     json:"service_type"                        yaml:"service_type"`
	ImageAndModules  []*ImageAndServiceModule `bson:"image_and_service_modules"        json:"image_and_service_modules"           yaml:"image_and_service_modules"`
	ClusterID        string                   `bson:"cluster_id"                       json:"cluster_id"                          yaml:"cluster_id"`
	ReleaseName      string                   `bson:"release_name"                     json:"release_name"                        yaml:"release_name"`
	Timeout          int                      `bson:"timeout"                          json:"timeout"                             yaml:"timeout"`
	ReplaceResources []Resource               `bson:"replace_resources"                json:"replace_resources"                   yaml:"replace_resources"`
}

type StepShellSpec

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

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