Versions in this module Expand all Collapse all v0 v0.21.2 Nov 20, 2021 v0.21.1 Nov 20, 2021 v0.21.0 Nov 18, 2021 Changes in this version + const ArtifactoryFeedTypeDocker + func MarshalNSDeploymentPlanToS3LocationBody(ctx context.Context, cu CloudUploader, plan *NSDeploymentPlan) ([]byte, error) + type Artifact struct + FeedType string + ID int + ImageTag string + MetricsPort int + Name string + ProviderGroup string + ServicePort int + type ArtifactDefinition struct + ArtifactName string + ArtifactoryFeed string + ArtifactoryPath string + AvailableVersion string + FeedType string + ID int + Matched bool + Name string + RequestedVersion string + func (ad ArtifactDefinition) ArtifactoryRequestedVersion() string + func (ad ArtifactDefinition) Clone(options ...ArtifactDefinitionCloneOption) *ArtifactDefinition + type ArtifactDefinitionCloneOption func(definition *ArtifactDefinition) + type ArtifactDefinitions []*ArtifactDefinition + func (ad ArtifactDefinitions) ContainsVersion(name string, version string) bool + func (ad ArtifactDefinitions) Match(artifactID int, optName string, requestedVersion string) *ArtifactDefinition + func (ad ArtifactDefinitions) UnMatched() ArtifactDefinitions + type ArtifactJobResultMap map[DeployArtifactResult]DeployJobs + type ArtifactServiceResultMap map[DeployArtifactResult]DeployServices + type CallbackMessage struct + Messages []string + type CloudDownloader interface + Download func(ctx context.Context, location *s3.Location) ([]byte, error) + type CloudUploader interface + Upload func(ctx context.Context, key string, body []byte) (*s3.Location, error) + type Cluster struct + CreatedAt time.Time + ID string + Name string + ProviderGroup string + SchQueueUrl string + UpdatedAt time.Time + type Definition struct + CreatedAt time.Time + Data MetadataField + DefinitionTypeID int + Description string + ID int + UpdatedAt time.Time + func (d Definition) ValidateWithContext(ctx context.Context) error + type DefinitionJobMap struct + ArtifactID int + ClusterID int + CreatedAt time.Time + DefinitionID int + Description string + EnvironmentID int + JobID int + NamespaceID int + StackingOrder int + UpdatedAt time.Time + func (m DefinitionJobMap) ValidateWithContext(ctx context.Context) error + type DefinitionResult struct + Class string + Data map[string]interface{} + Kind string + Order string + Version string + func DefaultDeploymentResourceDef() DefinitionResult + func DefaultJobResourceDef() DefinitionResult + func DefaultServiceResourceDef() DefinitionResult + func (dr *DefinitionResult) APIVersion() string + func (dr *DefinitionResult) AnnotationKeys() []string + func (dr *DefinitionResult) Key() string + func (dr *DefinitionResult) LabelKeys() []string + func (dr *DefinitionResult) Resource() string + func (dr *DefinitionResult) StandardAnnotations(eveDeployment DeploymentSpec) map[string]interface{} + func (dr *DefinitionResult) StandardLabels(eveDeployment DeploymentSpec) map[string]interface{} + func (dr DefinitionResult) ToResourceDefinition() ResourceDefinition + type DefinitionResults []DefinitionResult + func (drs DefinitionResults) CRDs(order string) []DefinitionResult + type DefinitionServiceMap struct + ArtifactID int + ClusterID int + CreatedAt time.Time + DefinitionID int + Description string + EnvironmentID int + NamespaceID int + ServiceID int + StackingOrder int + UpdatedAt time.Time + func (m DefinitionServiceMap) ValidateWithContext(ctx context.Context) error + type DefinitionType struct + Class string + CreatedAt time.Time + DefinitionOrder string + Description string + ID int + Kind string + Name string + UpdatedAt time.Time + Version string + type DeployArtifact struct + ArtifactID int + ArtifactName string + ArtifactoryFeed string + ArtifactoryFeedType string + ArtifactoryPath string + AvailableVersion string + Deploy bool + DeployedVersion string + ExitCode int + ImageTag string + Metadata MetadataField + RequestedVersion string + Result DeployArtifactResult + func (da DeployArtifact) EvalImageTag() string + type DeployArtifactResult string + const DeployArtifactResultFailed + const DeployArtifactResultNoop + const DeployArtifactResultSuccess + func ParseDeployArtifactResult(value string) DeployArtifactResult + func (dar DeployArtifactResult) String() string + type DeployJob struct + Definition []byte + JobID int + JobName string + Nuance string + SuccessExitCodes string + func (dj *DeployJob) GetArtifact() *DeployArtifact + func (dj *DeployJob) GetDefaultCount() int + func (dj *DeployJob) GetDefinitions() []byte + func (dj *DeployJob) GetDeployResult() DeployArtifactResult + func (dj *DeployJob) GetExitCode() int + func (dj *DeployJob) GetMetricsPort() int + func (dj *DeployJob) GetName() string + func (dj *DeployJob) GetNuance() string + func (dj *DeployJob) GetServicePort() int + func (dj *DeployJob) GetSuccessCodes() string + func (dj *DeployJob) Metrics() string + func (dj *DeployJob) SetDeployResult(result DeployArtifactResult) + func (dj *DeployJob) SetExitCode(code int) + type DeployJobs []*DeployJob + func (dj DeployJobs) ToDeploy() DeployJobs + func (dj DeployJobs) ToResultMap() ArtifactJobResultMap + type DeployService struct + Count int + Definition []byte + MetricsPort int + Nuance string + ServiceID int + ServiceName string + ServicePort int + SuccessExitCodes string + func (ds *DeployService) GetArtifact() *DeployArtifact + func (ds *DeployService) GetDefaultCount() int + func (ds *DeployService) GetDefinitions() []byte + func (ds *DeployService) GetDeployResult() DeployArtifactResult + func (ds *DeployService) GetExitCode() int + func (ds *DeployService) GetMetricsPort() int + func (ds *DeployService) GetName() string + func (ds *DeployService) GetNuance() string + func (ds *DeployService) GetServicePort() int + func (ds *DeployService) GetSuccessCodes() string + func (ds *DeployService) Metrics() string + func (ds *DeployService) SetDeployResult(result DeployArtifactResult) + func (ds *DeployService) SetExitCode(code int) + type DeployServices []*DeployService + func (ds DeployServices) ToDeploy() DeployServices + func (ds DeployServices) ToResultMap() ArtifactServiceResultMap + type Deployment struct + CreatedAt time.Time + EnvironmentID int + ID uuid.UUID + NamespaceID int + State DeploymentState + UpdatedAt time.Time + User string + func ToDeployment(d data.Deployment) Deployment + type DeploymentCallbackMessage struct + DeploymentID uuid.UUID + Messages []string + Status DeploymentPlanStatus + Type PlanType + type DeploymentCronJob struct + Description string + Disabled bool + ID string + LastRun time.Time + Order int + PlanOptions map[string]interface{} + Schedule string + State data.DeploymentCronState + type DeploymentPlanOptions struct + Artifacts ArtifactDefinitions + CallbackURL string + DeploymentIDs []uuid.UUID + DryRun bool + Environment string + ForceDeploy bool + Messages []string + Metadata MetadataField + NamespaceAliases StringList + Type PlanType + User string + func (po *DeploymentPlanOptions) Message(format string, a ...interface{}) + func (po *DeploymentPlanOptions) PlanType() string + func (po DeploymentPlanOptions) HasArtifacts() bool + func (po DeploymentPlanOptions) HasNamespaceAliases() bool + func (po DeploymentPlanOptions) ValidateWithContext(ctx context.Context) error + type DeploymentPlanStatus string + const DeploymentPlanStatusComplete + const DeploymentPlanStatusDryrun + const DeploymentPlanStatusErrors + const DeploymentPlanStatusMessage + const DeploymentPlanStatusPending + func (dps DeploymentPlanStatus) String() string + type DeploymentSpec interface + GetArtifact func() *DeployArtifact + GetDefaultCount func() int + GetDefinitions func() []byte + GetDeployResult func() DeployArtifactResult + GetExitCode func() int + GetMetricsPort func() int + GetName func() string + GetNuance func() string + GetServicePort func() int + GetSuccessCodes func() string + Metrics func() string + SetDeployResult func(DeployArtifactResult) + SetExitCode func(int) + type DeploymentState string + const DeploymentStateCompleted + const DeploymentStateQueued + const DeploymentStateScheduled + const DeploymentStateUnknown + func ParseDeploymentState(value data.DeploymentState) DeploymentState + type Environment struct + Alias string + Description string + ID int + Name string + UpdatedAt time.Time + type EnvironmentFeedMap struct + EnvironmentID int + FeedID int + type Feed struct + Alias string + FeedType string + ID int + Name string + PromotionOrder int + type Job struct + ArtifactID int + ArtifactName string + CreatedAt time.Time + DeployedVersion string + ID int + Name string + NamespaceID int + NamespaceName string + OverrideVersion string + UpdatedAt time.Time + type Metadata struct + CreatedAt time.Time + Description string + ID int + UpdatedAt time.Time + Value MetadataField + func (m Metadata) ValidateWithContext(ctx context.Context) error + type MetadataField map[string]interface + func (m MetadataField) ValidateWithContext(ctx context.Context) error + type MetadataHistory struct + Created time.Time + CreatedBy string + Deleted *time.Time + DeletedBy *string + Description string + MetadataId int + Value map[string]interface{} + type MetadataJobMap struct + ArtifactID int + ClusterID int + CreatedAt time.Time + Description string + EnvironmentID int + JobID int + MetadataID int + NamespaceID int + StackingOrder int + UpdatedAt time.Time + func (m MetadataJobMap) ValidateWithContext(ctx context.Context) error + type MetadataServiceMap struct + ArtifactID int + ClusterID int + CreatedAt time.Time + Description string + EnvironmentID int + MetadataID int + NamespaceID int + ServiceID int + StackingOrder int + UpdatedAt time.Time + func (m MetadataServiceMap) ValidateWithContext(ctx context.Context) error + type NSDeploymentPlan struct + CallbackURL string + DeploymentID uuid.UUID + EnvironmentAlias string + EnvironmentName string + Jobs DeployJobs + Messages []string + MetadataOverrides MetadataField + Namespace *NamespaceRequest + SchQueueUrl string + Services DeployServices + Status DeploymentPlanStatus + Type PlanType + func UnMarshalNSDeploymentFromS3LocationBody(ctx context.Context, cd CloudDownloader, b []byte) (*NSDeploymentPlan, error) + func (ns *NSDeploymentPlan) DeploymentPlanType() string + func (ns *NSDeploymentPlan) Failed() bool + func (ns *NSDeploymentPlan) Message(format string, a ...interface{}) + func (ns *NSDeploymentPlan) NoopExist() bool + func (ns *NSDeploymentPlan) NothingToDeploy() bool + type Namespace struct + Alias string + ClusterID int + CreatedAt time.Time + EnvironmentID int + EnvironmentName string + ExplicitDeploy bool + ID int + Metadata map[string]interface{} + Name string + RequestedVersion string + UpdatedAt time.Time + type NamespacePlanOptions struct + Artifacts ArtifactDefinitions + ArtifactsSupplied bool + CallbackURL string + DryRun bool + EnvironmentAlias string + EnvironmentID int + EnvironmentName string + ForceDeploy bool + Metadata MetadataField + NamespaceRequest *NamespaceRequest + Type PlanType + type NamespaceRequest struct + Alias string + ClusterID int + ClusterName string + ID int + Name string + Version string + func (ns *NamespaceRequest) GetQueueGroupID() string + func (ns *NamespaceRequest) SnakeAlias() string + type NamespaceRequests []*NamespaceRequest + func (n NamespaceRequests) ToIDs() []int + type PlanType string + const DeploymentPlanTypeApplication + const DeploymentPlanTypeJob + const DeploymentPlanTypeRestart + func (t PlanType) Command() string + type Release struct + Artifact string + Environment string + FromFeed string + Message string + Namespace string + ToFeed string + Type ReleaseType + Version string + func (r Release) ValidateWithContext(ctx context.Context) error + type ReleaseType string + const ReleaseTypeArtifact + const ReleaseTypeNamespace + type ResourceDefinition struct + APIVersion string + Kind string + Meta interface{} + Spec interface{} + type RestartService struct + Environment string + NamespaceAlias string + Service string + func (r RestartService) ValidateWithContext(ctx context.Context) error + type Service struct + ArtifactID int + ArtifactName string + Count int + CreatedAt time.Time + DeployedVersion string + ExplicitDeploy bool + ID int + Name string + NamespaceID int + NamespaceName string + OverrideVersion string + UpdatedAt time.Time + type StringList []string + func (s StringList) Contains(value string) bool