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 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 ¶
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 {
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"`
S3StorageID string `bson:"s3_storage_id" json:"s3_storage_id" yaml:"s3_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"`
}
type StepToolInstallSpec ¶
type StepToolInstallSpec 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"`
S3Storage *S3 `bson:"s3_storage" json:"s3_storage" yaml:"s3_storage"`
}
Click to show internal directories.
Click to hide internal directories.