Versions in this module Expand all Collapse all v0 v0.9.1 Dec 2, 2020 Changes in this version + const SharedConfigurationDirName + var DefaultKubernetesCloudProvider = PipedCloudProvider + func ToApplicationKind(k Kind) (model.ApplicationKind, bool) + type AnalysisDynamic struct + Https []AnalysisDynamicHTTP + Logs []AnalysisDynamicLog + Metrics []AnalysisDynamicMetrics + type AnalysisDynamicHTTP struct + ExpectedCode int + ExpectedResponse string + Headers []AnalysisHeader + Interval Duration + Method string + Timeout Duration + URL string + type AnalysisDynamicLog struct + Provider string + Query string + Timeout Duration + type AnalysisDynamicMetrics struct + Provider string + Query string + Timeout Duration + type AnalysisExpected struct + Max *float64 + Min *float64 + type AnalysisHTTP struct + ExpectedCode int + ExpectedResponse string + FailureLimit int + Headers []AnalysisHeader + Interval Duration + Method string + Timeout Duration + URL string + type AnalysisHeader struct + Key string + Value string + type AnalysisLog struct + FailureLimit int + Interval Duration + Provider string + Query string + Timeout Duration + type AnalysisMetrics struct + Expected AnalysisExpected + FailureLimit int + Interval Duration + Provider string + Query string + Timeout Duration + type AnalysisProviderDatadogConfig struct + APIKeyFile string + Address string + ApplicationKeyFile string + type AnalysisProviderPrometheusConfig struct + Address string + PasswordFile string + UsernameFile string + type AnalysisProviderStackdriverConfig struct + ServiceAccountFile string + type AnalysisStageOptions struct + Duration Duration + Dynamic AnalysisDynamic + Https []TemplatableAnalysisHTTP + Logs []TemplatableAnalysisLog + Metrics []TemplatableAnalysisMetrics + RestartThreshold int + type AnalysisTemplateRef struct + Args map[string]string + Name string + type AnalysisTemplateSpec struct + HTTPs map[string]AnalysisHTTP + Logs map[string]AnalysisLog + Metrics map[string]AnalysisMetrics + func LoadAnalysisTemplate(repoRoot string) (*AnalysisTemplateSpec, bool, error) + func (s *AnalysisTemplateSpec) Validate() error + type CloudProviderCloudRunConfig struct + CredentialsFile string + Project string + Region string + type CloudProviderKubernetesConfig struct + AppStateInformer KubernetesAppStateInformer + KubeConfigPath string + MasterURL string + type CloudProviderLambdaConfig struct + Region string + type CloudProviderTerraformConfig struct + Vars []string + type CloudRunDeploymentInput struct + AutoRollback bool + ServiceManifestFile string + type CloudRunDeploymentSpec struct + Input CloudRunDeploymentInput + QuickSync CloudRunSyncStageOptions + func (s *CloudRunDeploymentSpec) Validate() error + type CloudRunPromoteStageOptions struct + Percent int + type CloudRunSyncStageOptions struct + type Config struct + APIVersion string + AnalysisTemplateSpec *AnalysisTemplateSpec + CloudRunDeploymentSpec *CloudRunDeploymentSpec + ControlPlaneSpec *ControlPlaneSpec + Kind Kind + KubernetesDeploymentSpec *KubernetesDeploymentSpec + LambdaDeploymentSpec *LambdaDeploymentSpec + PipedSpec *PipedSpec + SealedSecretSpec *SealedSecretSpec + TerraformDeploymentSpec *TerraformDeploymentSpec + func DecodeYAML(data []byte) (*Config, error) + func LoadFromYAML(file string) (*Config, error) + func (c *Config) GetGenericDeployment() (GenericDeploymentSpec, bool) + func (c *Config) UnmarshalJSON(data []byte) error + func (c *Config) Validate() error + type ControlPlaneCache struct + TTL Duration + func (c ControlPlaneCache) TTLDuration() time.Duration + type ControlPlaneDataStore struct + DynamoDBConfig *DataStoreDynamoDBConfig + FirestoreConfig *DataStoreFireStoreConfig + MongoDBConfig *DataStoreMongoDBConfig + Type model.DataStoreType + func (d *ControlPlaneDataStore) UnmarshalJSON(data []byte) error + type ControlPlaneFileStore struct + GCSConfig *FileStoreGCSConfig + MinioConfig *FileStoreMinioConfig + S3Config *FileStoreS3Config + Type model.FileStoreType + func (f *ControlPlaneFileStore) UnmarshalJSON(data []byte) error + type ControlPlaneProject struct + Desc string + Id string + StaticAdmin ProjectStaticUser + type ControlPlaneSpec struct + Address string + Cache ControlPlaneCache + Datastore ControlPlaneDataStore + Filestore ControlPlaneFileStore + Projects []ControlPlaneProject + SharedSSOConfigs []SharedSSOConfig + StateKey string + func (s *ControlPlaneSpec) FindProject(id string) (ControlPlaneProject, bool) + func (s *ControlPlaneSpec) ProjectMap() map[string]ControlPlaneProject + func (s *ControlPlaneSpec) SharedSSOConfigMap() map[string]*model.ProjectSSOConfig + func (s *ControlPlaneSpec) Validate() error + type DataStoreDynamoDBConfig struct + type DataStoreFireStoreConfig struct + CredentialsFile string + Environment string + Namespace string + Project string + type DataStoreMongoDBConfig struct + Database string + PasswordFile string + URL string + UsernameFile string + type DeploymentCommitMatcher struct + Pipeline string + QuickSync string + type DeploymentImageWatcher struct + Targets []ImageWatcherTarget + type DeploymentPipeline struct + Stages []PipelineStage + type Duration time.Duration + func (d *Duration) UnmarshalJSON(b []byte) error + func (d Duration) Duration() time.Duration + func (d Duration) MarshalJSON() ([]byte, error) + type FileStoreGCSConfig struct + Bucket string + CredentialsFile string + type FileStoreMinioConfig struct + AccessKeyFile string + AutoCreateBucket bool + Bucket string + Endpoint string + SecretKeyFile string + type FileStoreS3Config struct + type GenericDeploymentSpec struct + CommitMatcher DeploymentCommitMatcher + Dependencies []string + Pipeline *DeploymentPipeline + SealedSecrets []SealedSecretMapping + func (s GenericDeploymentSpec) GetStage(index int32) (PipelineStage, bool) + func (s GenericDeploymentSpec) HasStage(stage model.Stage) bool + type HelmChartRepository struct + Address string + Name string + Password string + Username string + type ImageProviderDockerhubConfig struct + PasswordFile string + Username string + type ImageProviderECRConfig struct + type ImageProviderGCRConfig struct + type ImageWatcherTarget struct + Image string + Path ImageWatcherTargetPath + Provider string + type ImageWatcherTargetPath struct + Field string + Filename string + type InputHelmChart struct + GitRemote string + Name string + Path string + Ref string + Repository string + Version string + type InputHelmOptions struct + ReleaseName string + SetFiles map[string]string + ValueFiles []string + type IstioTrafficRouting struct + EditableRoutes []string + Host string + VirtualService K8sResourceReference + type K8sBaselineCleanStageOptions struct + type K8sBaselineRolloutStageOptions struct + CreateService bool + Replicas Replicas + Suffix string + type K8sCanaryCleanStageOptions struct + type K8sCanaryRolloutStageOptions struct + CreateService bool + Replicas Replicas + Suffix string + type K8sPrimaryRolloutStageOptions struct + AddVariantLabelToSelector bool + CreateService bool + Prune bool + Suffix string + type K8sResourceReference struct + Kind string + Name string + type K8sSyncStageOptions struct + AddVariantLabelToSelector bool + Prune bool + type K8sTrafficRoutingStageOptions struct + All string + Baseline int + Canary int + Primary int + func (opts K8sTrafficRoutingStageOptions) Percentages() (primary, canary, baseline int) + type Kind string + const KindAnalysisTemplate + const KindCloudRunApp + const KindControlPlane + const KindCrossplaneApp + const KindKubernetesApp + const KindLambdaApp + const KindPiped + const KindSealedSecret + const KindTerraformApp + type KubernetesAppStateInformer struct + ExcludeResources []KubernetesResourceMatcher + IncludeResources []KubernetesResourceMatcher + Namespace string + type KubernetesDeploymentInput struct + AutoRollback bool + HelmChart *InputHelmChart + HelmOptions *InputHelmOptions + HelmVersion string + KubectlVersion string + KustomizeOptions map[string]string + KustomizeVersion string + Manifests []string + Namespace string + type KubernetesDeploymentSpec struct + ImageWatcher DeploymentImageWatcher + Input KubernetesDeploymentInput + QuickSync K8sSyncStageOptions + Service K8sResourceReference + TrafficRouting *KubernetesTrafficRouting + Workloads []K8sResourceReference + func (s *KubernetesDeploymentSpec) Validate() error + type KubernetesResourceMatcher struct + APIVersion string + Kind string + type KubernetesTrafficRouting struct + Istio *IstioTrafficRouting + Method KubernetesTrafficRoutingMethod + type KubernetesTrafficRoutingMethod string + const KubernetesTrafficRoutingMethodIstio + const KubernetesTrafficRoutingMethodPodSelector + const KubernetesTrafficRoutingMethodSMI + func DetermineKubernetesTrafficRoutingMethod(cfg *KubernetesTrafficRouting) KubernetesTrafficRoutingMethod + type LambdaCanaryRolloutStageOptions struct + type LambdaDeploymentInput struct + AutoRollback bool + Git string + Path string + Ref string + type LambdaDeploymentSpec struct + Input LambdaDeploymentInput + QuickSync LambdaSyncStageOptions + func (s *LambdaDeploymentSpec) Validate() error + type LambdaPromoteStageOptions struct + Percent int + type LambdaSyncStageOptions struct + type NotificationReceiver struct + Name string + Slack *NotificationReceiverSlack + Webhook *NotificationReceiverWebhook + type NotificationReceiverSlack struct + HookURL string + type NotificationReceiverWebhook struct + URL string + type NotificationRoute struct + Apps []string + Envs []string + Events []string + Groups []string + IgnoreApps []string + IgnoreEnvs []string + IgnoreEvents []string + IgnoreGroups []string + Name string + Receiver string + type Notifications struct + Receivers []NotificationReceiver + Routes []NotificationRoute + type PipedAnalysisProvider struct + DatadogConfig *AnalysisProviderDatadogConfig + Name string + PrometheusConfig *AnalysisProviderPrometheusConfig + StackdriverConfig *AnalysisProviderStackdriverConfig + Type model.AnalysisProviderType + func (p *PipedAnalysisProvider) UnmarshalJSON(data []byte) error + type PipedCloudProvider struct + CloudRunConfig *CloudProviderCloudRunConfig + KubernetesConfig *CloudProviderKubernetesConfig + LambdaConfig *CloudProviderLambdaConfig + Name string + TerraformConfig *CloudProviderTerraformConfig + Type model.CloudProviderType + func (p *PipedCloudProvider) UnmarshalJSON(data []byte) error + type PipedGit struct + Email string + Host string + HostName string + SSHConfigFilePath string + SSHKeyFile string + Username string + func (g PipedGit) ShouldConfigureSSHConfig() bool + type PipedImageProvider struct + DockerhubConfig *ImageProviderDockerhubConfig + ECRConfig *ImageProviderECRConfig + GCRConfig *ImageProviderGCRConfig + Name string + Type model.ImageProviderType + func (p *PipedImageProvider) UnmarshalJSON(data []byte) error + type PipedRepository struct + Branch string + Remote string + RepoID string + type PipedSpec struct + APIAddress string + AnalysisProviders []PipedAnalysisProvider + ChartRepositories []HelmChartRepository + CloudProviders []PipedCloudProvider + Git PipedGit + ImageProviders []PipedImageProvider + Notifications Notifications + PipedID string + PipedKeyFile string + ProjectID string + Repositories []PipedRepository + SealedSecretManagement *SealedSecretManagement + SyncInterval Duration + WebAddress string + func (s *PipedSpec) EnableDefaultKubernetesCloudProvider() + func (s *PipedSpec) FindCloudProvider(name string, t model.CloudProviderType) (PipedCloudProvider, bool) + func (s *PipedSpec) GetAnalysisProvider(name string) (PipedAnalysisProvider, bool) + func (s *PipedSpec) GetRepository(id string) (PipedRepository, bool) + func (s *PipedSpec) GetRepositoryMap() map[string]PipedRepository + func (s *PipedSpec) HasCloudProvider(name string, t model.CloudProviderType) bool + func (s *PipedSpec) Validate() error + type PipelineStage struct + AnalysisStageOptions *AnalysisStageOptions + CloudRunPromoteStageOptions *CloudRunPromoteStageOptions + CloudRunSyncStageOptions *CloudRunSyncStageOptions + Desc string + Id string + K8sBaselineCleanStageOptions *K8sBaselineCleanStageOptions + K8sBaselineRolloutStageOptions *K8sBaselineRolloutStageOptions + K8sCanaryCleanStageOptions *K8sCanaryCleanStageOptions + K8sCanaryRolloutStageOptions *K8sCanaryRolloutStageOptions + K8sPrimaryRolloutStageOptions *K8sPrimaryRolloutStageOptions + K8sTrafficRoutingStageOptions *K8sTrafficRoutingStageOptions + LambdaCanaryRolloutStageOptions *LambdaCanaryRolloutStageOptions + LambdaPromoteStageOptions *LambdaPromoteStageOptions + LambdaSyncStageOptions *LambdaSyncStageOptions + Name model.Stage + TerraformApplyStageOptions *TerraformApplyStageOptions + TerraformPlanStageOptions *TerraformPlanStageOptions + TerraformSyncStageOptions *TerraformSyncStageOptions + Timeout Duration + WaitApprovalStageOptions *WaitApprovalStageOptions + WaitStageOptions *WaitStageOptions + func (s *PipelineStage) UnmarshalJSON(data []byte) error + type ProjectStaticUser struct + PasswordHash string + Username string + type Replicas struct + IsPercentage bool + Number int + func (r *Replicas) UnmarshalJSON(b []byte) error + func (r Replicas) Calculate(total, defaultValue int) int + func (r Replicas) MarshalJSON() ([]byte, error) + func (r Replicas) String() string + type SealedSecretManagement struct + GCPKMSConfig *SealedSecretManagementGCPKMS + SealingKeyConfig *SealedSecretManagementSealingKey + Type model.SealedSecretManagementType + func (m *SealedSecretManagement) Validate() error + func (p *SealedSecretManagement) UnmarshalJSON(data []byte) error + type SealedSecretManagementGCPKMS struct + DecryptServiceAccountFile string + EncryptServiceAccountFile string + KeyName string + func (m *SealedSecretManagementGCPKMS) Validate() error + type SealedSecretManagementSealingKey struct + PrivateKeyFile string + PublicKeyFile string + func (m *SealedSecretManagementSealingKey) Validate() error + type SealedSecretMapping struct + OutDir string + OutFilename string + Path string + type SealedSecretSpec struct + EncryptedData string + EncryptedItems map[string]string + Template string + func (s *SealedSecretSpec) RenderOriginalContent(dcr sealedSecretDecrypter) ([]byte, error) + func (s *SealedSecretSpec) Validate() error + type SharedSSOConfig struct + Name string + func (s *SharedSSOConfig) UnmarshalJSON(data []byte) error + type TemplatableAnalysisHTTP struct + Template AnalysisTemplateRef + type TemplatableAnalysisLog struct + Template AnalysisTemplateRef + type TemplatableAnalysisMetrics struct + Template AnalysisTemplateRef + type TerraformApplyStageOptions struct + Retries int + type TerraformDeploymentInput struct + AutoRollback bool + TerraformVersion string + VarFiles []string + Vars []string + Workspace string + type TerraformDeploymentSpec struct + Input TerraformDeploymentInput + QuickSync TerraformApplyStageOptions + func (s *TerraformDeploymentSpec) Validate() error + type TerraformPlanStageOptions struct + type TerraformSyncStageOptions struct + Retries int + type WaitApprovalStageOptions struct + Approvers []string + type WaitStageOptions struct + Duration Duration