Versions in this module Expand all Collapse all v0 v0.1.0 Aug 29, 2021 Changes in this version + const HTTPApiApprovalRuleType + const ManualApprovalRuleType + const NumApprovalRuleTypes + const NumReleaseEventTypes + const ReleaseBackgroundJobPostgresLockNamespace + const ReleaseCancelledEventType + const ReleaseCreatedEventType + const ReleaseRuleProcessedEventType + const ScheduleApprovalRuleType + var ReleaseBackgroundJobMaxLockSubID uint32 = uint32(math.Pow(2, 31)) - 1 + func CollectApplicationIDs(applications []Application) []string + func CollectReleaseRuleProcessedEventIDs(events []*ReleaseRuleProcessedEvent) []uint64 + func CollectReviewablePrimaryKeys(reviewables []IReviewable) [][]interface + func CollectReviewableVersionIDs(versions []IReviewableVersion) []interface + func CreateMockApplicationApprovalRulesetsAndBindingsWith2Modes1Version(db *gorm.DB, organization Organization, application Application) (ApplicationApprovalRulesetBinding, ApplicationApprovalRulesetBinding, error) + func DeleteApplicationAdjustmentsForProposal(db *gorm.DB, organizationID string, proposalID uint64) error + func DeleteApplicationApprovalRulesetBindingAdjustmentsForProposal(db *gorm.DB, organizationID string, proposalID uint64) error + func DeleteApprovalRulesForApprovalRulesetProposal(db *gorm.DB, organizationID string, proposalID uint64) error + func DeleteApprovalRulesetAdjustmentsForProposal(db *gorm.DB, organizationID string, proposalID uint64) error + func DeleteAuditCreationRecordsForApplicationApprovalRulesetBindingProposal(db *gorm.DB, organizationID string, proposalID uint64) error + func DeleteAuditCreationRecordsForApplicationProposal(db *gorm.DB, organizationID string, proposalID uint64) error + func DeleteAuditCreationRecordsForApprovalRulesetProposal(db *gorm.DB, organizationID string, proposalID uint64) error + func FinalizeReviewableProposal(version *ReviewableVersionBase, adjustment *ReviewableAdjustmentBase, ...) + func LoadApplicationApprovalRulesetBindingVersionsLatestAdjustments(db *gorm.DB, organizationID string, ...) error + func LoadApplicationApprovalRulesetBindingsLatestVersions(db *gorm.DB, organizationID string, ...) error + func LoadApplicationApprovalRulesetBindingsLatestVersionsAndAdjustments(db *gorm.DB, organizationID string, ...) error + func LoadApplicationVersionsLatestAdjustments(db *gorm.DB, organizationID string, versions []*ApplicationVersion) error + func LoadApplicationsLatestVersions(db *gorm.DB, organizationID string, applications []*Application) error + func LoadApplicationsLatestVersionsAndAdjustments(db *gorm.DB, organizationID string, applications []*Application) error + func LoadApprovalRulesetAdjustmentsApprovalRules(db *gorm.DB, organizationID string, adjustments []*ApprovalRulesetAdjustment) error + func LoadApprovalRulesetAdjustmentsStats(db *gorm.DB, organizationID string, adjustments []*ApprovalRulesetAdjustment) error + func LoadApprovalRulesetVersionsLatestAdjustments(db *gorm.DB, organizationID string, versions []*ApprovalRulesetVersion) error + func LoadApprovalRulesetsLatestVersions(db *gorm.DB, organizationID string, rulesets []*ApprovalRuleset) error + func LoadApprovalRulesetsLatestVersionsAndAdjustments(db *gorm.DB, organizationID string, rulesets []*ApprovalRuleset) error + func LoadReleaseRuleProcessedEventsApprovalRuleOutcomes(db *gorm.DB, organizationID string, events []*ReleaseRuleProcessedEvent) error + func LoadReviewableVersionsLatestAdjustments(db *gorm.DB, organizationID string, versions []IReviewableVersion, ...) error + func LoadReviewablesLatestVersions(db *gorm.DB, organizationID string, reviewables []IReviewable, ...) error + func SetReviewableAdjustmentProposalStateFromProposalStateInput(adjustment *ReviewableAdjustmentBase, input proposalstateinput.Input) + type Application struct + ID string + Version *ApplicationVersion + func CollectApplicationsWithApplicationApprovalRulesetBindings(bindings []ApplicationApprovalRulesetBinding) []*Application + func CollectApplicationsWithReleases(releases []*Release) []*Application + func CreateMockApplication(db *gorm.DB, organization Organization, customizeFunc func(app *Application)) (Application, error) + func CreateMockApplicationWith1Version(db *gorm.DB, organization Organization, customizeFunc func(app *Application), ...) (Application, error) + func FindApplication(db *gorm.DB, organizationID string, id string) (Application, error) + func FindApplications(db *gorm.DB, organizationID string) ([]Application, error) + func FindApplicationsWithApprovalRuleset(db *gorm.DB, organizationID string, approvalRulesetID string) ([]Application, error) + func MakeApplicationsPointerArray(apps []Application) []*Application + func (app *Application) AssociateWithVersion(version IReviewableVersion) + func (app Application) CheckNewProposalsRequireReview(action ReviewableAction) bool + func (app Application) GetPrimaryKey() interface{} + func (app Application) GetPrimaryKeyGormValue() []interface{} + func (app Application) NewDraftVersion() (*ApplicationVersion, *ApplicationAdjustment) + type ApplicationAdjustment struct + ApplicationVersion ApplicationVersion + ApplicationVersionID uint64 + DisplayName string + Enabled *bool + func CreateMockApplicationAdjustment(db *gorm.DB, version ApplicationVersion, number uint32, ...) (ApplicationAdjustment, error) + func (adjustment *ApplicationAdjustment) AssociateWithVersion(version IReviewableVersion) + func (adjustment ApplicationAdjustment) GetVersionID() interface{} + func (adjustment ApplicationAdjustment) IsEnabled() bool + func (adjustment ApplicationAdjustment) NewAdjustment() ApplicationAdjustment + type ApplicationApprovalRulesetBinding struct + Application Application + ApprovalRuleset ApprovalRuleset + Version *ApplicationApprovalRulesetBindingVersion + func CreateMockApplicationRulesetBindingWithEnforcingMode(db *gorm.DB, organization Organization, application Application, ...) (ApplicationApprovalRulesetBinding, error) + func CreateMockApplicationRulesetBindingWithEnforcingMode1Version(db *gorm.DB, organization Organization, application Application, ...) (ApplicationApprovalRulesetBinding, error) + func FindApplicationApprovalRulesetBinding(db *gorm.DB, organizationID string, applicationID string, rulesetID string) (ApplicationApprovalRulesetBinding, error) + func FindApplicationApprovalRulesetBindings(db *gorm.DB, organizationID string, applicationID string) ([]ApplicationApprovalRulesetBinding, error) + func FindApplicationApprovalRulesetBindingsWithApplication(db *gorm.DB, organizationID string, applicationID string) ([]ApplicationApprovalRulesetBinding, error) + func FindApplicationApprovalRulesetBindingsWithApprovalRuleset(db *gorm.DB, organizationID string, rulesetID string) ([]ApplicationApprovalRulesetBinding, error) + func MakeApplicationApprovalRulesetBindingsPointerArray(bindings []ApplicationApprovalRulesetBinding) []*ApplicationApprovalRulesetBinding + func (binding *ApplicationApprovalRulesetBinding) AssociateWithVersion(version IReviewableVersion) + func (binding ApplicationApprovalRulesetBinding) CheckNewProposalsRequireReview(action ReviewableAction, newMode approvalrulesetbindingmode.Mode) bool + func (binding ApplicationApprovalRulesetBinding) GetPrimaryKey() interface{} + func (binding ApplicationApprovalRulesetBinding) GetPrimaryKeyGormValue() []interface{} + func (binding ApplicationApprovalRulesetBinding) NewDraftVersion() (*ApplicationApprovalRulesetBindingVersion, ...) + type ApplicationApprovalRulesetBindingAdjustment struct + ApplicationApprovalRulesetBindingVersion ApplicationApprovalRulesetBindingVersion + ApplicationApprovalRulesetBindingVersionID uint64 + Enabled *bool + Mode approvalrulesetbindingmode.Mode + func CreateMockApplicationApprovalRulesetBindingAdjustment(db *gorm.DB, version ApplicationApprovalRulesetBindingVersion, number uint32, ...) (ApplicationApprovalRulesetBindingAdjustment, error) + func (adjustment *ApplicationApprovalRulesetBindingAdjustment) AssociateWithVersion(version IReviewableVersion) + func (adjustment ApplicationApprovalRulesetBindingAdjustment) GetVersionID() interface{} + func (adjustment ApplicationApprovalRulesetBindingAdjustment) IsEnabled() bool + func (adjustment ApplicationApprovalRulesetBindingAdjustment) NewAdjustment() ApplicationApprovalRulesetBindingAdjustment + type ApplicationApprovalRulesetBindingPrimaryKey struct + ApplicationID string + ApprovalRulesetID string + type ApplicationApprovalRulesetBindingVersion struct + Adjustment *ApplicationApprovalRulesetBindingAdjustment + ApplicationApprovalRulesetBinding ApplicationApprovalRulesetBinding + ApplicationID string + ApprovalRulesetID string + func CollectApplicationApprovalRulesetBindingVersionIDEquals(versions []ApplicationApprovalRulesetBindingVersion, versionID uint64) *ApplicationApprovalRulesetBindingVersion + func CollectApplicationApprovalRulesetBindingVersionIDNotEquals(versions []ApplicationApprovalRulesetBindingVersion, versionID uint64) []*ApplicationApprovalRulesetBindingVersion + func CollectApplicationApprovalRulesetBindingVersions(bindings []*ApplicationApprovalRulesetBinding) []*ApplicationApprovalRulesetBindingVersion + func CreateMockApplicationApprovalRulesetBindingVersion(db *gorm.DB, organization Organization, application Application, ...) (ApplicationApprovalRulesetBindingVersion, error) + func FindApplicationApprovalRulesetBindingProposalByID(db *gorm.DB, organizationID string, applicationID string, rulesetID string, ...) (ApplicationApprovalRulesetBindingVersion, error) + func FindApplicationApprovalRulesetBindingProposals(db *gorm.DB, organizationID string, applicationID string, rulesetID string) ([]ApplicationApprovalRulesetBindingVersion, error) + func FindApplicationApprovalRulesetBindingVersionByID(db *gorm.DB, organizationID string, applicationID string, rulesetID string, ...) (ApplicationApprovalRulesetBindingVersion, error) + func FindApplicationApprovalRulesetBindingVersionByNumber(db *gorm.DB, organizationID string, applicationID string, rulesetID string, ...) (ApplicationApprovalRulesetBindingVersion, error) + func FindApplicationApprovalRulesetBindingVersions(db *gorm.DB, organizationID string, applicationID string, rulesetID string, ...) ([]ApplicationApprovalRulesetBindingVersion, error) + func MakeApplicationApprovalRulesetBindingVersionsPointerArray(versions []ApplicationApprovalRulesetBindingVersion) []*ApplicationApprovalRulesetBindingVersion + func (version *ApplicationApprovalRulesetBindingVersion) AssociateWithAdjustment(adjustment IReviewableAdjustment) + func (version *ApplicationApprovalRulesetBindingVersion) AssociateWithReviewable(reviewable IReviewable) + func (version ApplicationApprovalRulesetBindingVersion) GetID() interface{} + func (version ApplicationApprovalRulesetBindingVersion) GetReviewablePrimaryKey() interface{} + type ApplicationVersion struct + Adjustment *ApplicationAdjustment + Application Application + ApplicationID string + func CollectApplicationVersionIDEquals(versions []ApplicationVersion, versionID uint64) *ApplicationVersion + func CollectApplicationVersionIDNotEquals(versions []ApplicationVersion, versionID uint64) []*ApplicationVersion + func CollectApplicationVersions(applications []*Application) []*ApplicationVersion + func CreateMockApplicationVersion(db *gorm.DB, app Application, number *uint32, ...) (ApplicationVersion, error) + func FindApplicationProposalByID(db *gorm.DB, organizationID string, applicationID string, versionID uint64) (ApplicationVersion, error) + func FindApplicationProposals(db *gorm.DB, organizationID string, applicationID string) ([]ApplicationVersion, error) + func FindApplicationVersionByID(db *gorm.DB, organizationID string, applicationID string, versionID uint64) (ApplicationVersion, error) + func FindApplicationVersionByNumber(db *gorm.DB, organizationID string, applicationID string, versionNumber uint32) (ApplicationVersion, error) + func FindApplicationVersions(db *gorm.DB, organizationID string, applicationID string, approved bool, ...) ([]ApplicationVersion, error) + func MakeApplicationVersionsPointerArray(versions []ApplicationVersion) []*ApplicationVersion + func (version *ApplicationVersion) AssociateWithAdjustment(adjustment IReviewableAdjustment) + func (version *ApplicationVersion) AssociateWithReviewable(reviewable IReviewable) + func (version ApplicationVersion) GetID() interface{} + func (version ApplicationVersion) GetReviewablePrimaryKey() interface{} + func (version ApplicationVersion) GetReviewablePrimaryKeyGormValue() []interface{} + type ApprovalRule struct + ApprovalRulesetAdjustment ApprovalRulesetAdjustment + ApprovalRulesetAdjustmentNumber uint32 + ApprovalRulesetVersionID uint64 + BindingMode approvalrulesetbindingmode.Mode + CreatedAt time.Time + Enabled *bool + ID uint64 + func (r *ApprovalRule) AssociateWithApprovalRulesetAdjustment(adjustment ApprovalRulesetAdjustment) + func (r *ApprovalRule) ClearPrimaryKey() + func (r ApprovalRule) ApprovalRulesetVersionAndAdjustmentKey() ApprovalRulesetVersionAndAdjustmentKey + type ApprovalRuleOutcome struct + CreatedAt time.Time + ID uint64 + ReleaseRuleProcessedEvent ReleaseRuleProcessedEvent + ReleaseRuleProcessedEventID uint64 + Success bool + type ApprovalRuleOutcomeType string + const HTTPApiApprovalRuleOutcomeType + const ManualApprovalRuleOutcomeType + const ScheduleApprovalRuleOutcomeType + type ApprovalRuleType string + type ApprovalRuleset struct + ID string + Version *ApprovalRulesetVersion + func CollectApprovalRulesetsWithApplicationApprovalRulesetBindings(bindings []ApplicationApprovalRulesetBinding) []*ApprovalRuleset + func CollectApprovalRulesetsWithoutStats(rulesets []ApprovalRulesetWithStats) []*ApprovalRuleset + func CreateMockApprovalRuleset(db *gorm.DB, organization Organization, id string, ...) (ApprovalRuleset, error) + func CreateMockApprovalRulesetWith1Version(db *gorm.DB, organization Organization, id string, ...) (ApprovalRuleset, error) + func FindApprovalRuleset(db *gorm.DB, organizationID string, id string) (ApprovalRuleset, error) + func (ruleset *ApprovalRuleset) AssociateWithVersion(version IReviewableVersion) + func (ruleset ApprovalRuleset) CheckNewProposalsRequireReview(action ReviewableAction, hasBoundApplications bool, rulesChanged bool) bool + func (ruleset ApprovalRuleset) GetPrimaryKey() interface{} + func (ruleset ApprovalRuleset) GetPrimaryKeyGormValue() []interface{} + func (ruleset ApprovalRuleset) NewDraftVersion() (*ApprovalRulesetVersion, *ApprovalRulesetAdjustment) + type ApprovalRulesetAdjustment struct + ApprovalRulesetVersion ApprovalRulesetVersion + ApprovalRulesetVersionID uint64 + Description string + DisplayName string + Enabled *bool + GloballyApplicable bool + NumBoundReleases uint + Rules ApprovalRulesetContents + func CollectApprovalRulesetAdjustmentsFromVersions(versions []*ApprovalRulesetVersion) []*ApprovalRulesetAdjustment + func CreateMockApprovalRulesetAdjustment(db *gorm.DB, version ApprovalRulesetVersion, number uint32, ...) (ApprovalRulesetAdjustment, error) + func FindApprovalRulesetAdjustments(db *gorm.DB, organizationID string, versionID uint64) ([]ApprovalRulesetAdjustment, error) + func MakeApprovalRulesetAdjustmentsPointerArray(adjustment []ApprovalRulesetAdjustment) []*ApprovalRulesetAdjustment + func (adjustment *ApprovalRulesetAdjustment) AssociateWithVersion(version IReviewableVersion) + func (adjustment *ApprovalRulesetAdjustment) Create(db *gorm.DB) error + func (adjustment ApprovalRulesetAdjustment) ApprovalRulesetVersionAndAdjustmentKey() ApprovalRulesetVersionAndAdjustmentKey + func (adjustment ApprovalRulesetAdjustment) GetVersionID() interface{} + func (adjustment ApprovalRulesetAdjustment) IsEnabled() bool + func (adjustment ApprovalRulesetAdjustment) NewAdjustment() ApprovalRulesetAdjustment + type ApprovalRulesetContents struct + HTTPApiApprovalRules []HTTPApiApprovalRule + ManualApprovalRules []ManualApprovalRule + ScheduleApprovalRules []ScheduleApprovalRule + func FindApprovalRulesBoundToRelease(db *gorm.DB, organizationID string, applicationID string, releaseID uint64) (ApprovalRulesetContents, error) + func (c *ApprovalRulesetContents) ForEach(callback func(rule IApprovalRule) error) error + func (c ApprovalRulesetContents) CopyAsUnsaved() ApprovalRulesetContents + func (c ApprovalRulesetContents) NumRules() uint + type ApprovalRulesetVersion struct + Adjustment *ApprovalRulesetAdjustment + ApprovalRuleset ApprovalRuleset + ApprovalRulesetID string + func CollectApprovalRulesetVersionIDEquals(versions []ApprovalRulesetVersion, versionID uint64) *ApprovalRulesetVersion + func CollectApprovalRulesetVersionIDNotEquals(versions []ApprovalRulesetVersion, versionID uint64) []*ApprovalRulesetVersion + func CollectApprovalRulesetVersions(rulesets []*ApprovalRuleset) []*ApprovalRulesetVersion + func CreateMockApprovalRulesetVersion(db *gorm.DB, ruleset ApprovalRuleset, number *uint32, ...) (ApprovalRulesetVersion, error) + func FindApprovalRulesetProposalByID(db *gorm.DB, organizationID string, rulesetID string, versionID uint64) (ApprovalRulesetVersion, error) + func FindApprovalRulesetProposals(db *gorm.DB, organizationID string, rulesetID string) ([]ApprovalRulesetVersion, error) + func FindApprovalRulesetVersionByID(db *gorm.DB, organizationID string, rulesetID string, versionID uint64) (ApprovalRulesetVersion, error) + func FindApprovalRulesetVersionByNumber(db *gorm.DB, organizationID string, rulesetID string, versionNumber uint32) (ApprovalRulesetVersion, error) + func FindApprovalRulesetVersions(db *gorm.DB, organizationID string, rulesetID string, approved bool, ...) ([]ApprovalRulesetVersion, error) + func MakeApprovalRulesetVersionsPointerArray(versions []ApprovalRulesetVersion) []*ApprovalRulesetVersion + func (version *ApprovalRulesetVersion) AssociateWithAdjustment(adjustment IReviewableAdjustment) + func (version *ApprovalRulesetVersion) AssociateWithReviewable(reviewable IReviewable) + func (version ApprovalRulesetVersion) GetID() interface{} + func (version ApprovalRulesetVersion) GetReviewablePrimaryKey() interface{} + func (version ApprovalRulesetVersion) GetReviewablePrimaryKeyGormValue() []interface{} + type ApprovalRulesetVersionAndAdjustmentKey struct + AdjustmentNumber uint32 + VersionID uint64 + type ApprovalRulesetWithStats struct + NumBoundApplications uint + NumBoundReleases uint + func FindApprovalRulesetsWithStats(db *gorm.DB, organizationID string, pagination dbutils.PaginationOptions) ([]ApprovalRulesetWithStats, error) + type BaseModel struct + Organization Organization + OrganizationID string + func (m BaseModel) GetOrganizationID() string + type CreationAuditRecord struct + ApplicationAdjustment ApplicationAdjustment + ApplicationAdjustmentNumber *uint32 + ApplicationApprovalRulesetBindingAdjustment ApplicationApprovalRulesetBindingAdjustment + ApplicationApprovalRulesetBindingAdjustmentNumber *uint32 + ApplicationApprovalRulesetBindingVersionID *uint64 + ApplicationVersionID *uint64 + ApprovalRulesetAdjustment ApprovalRulesetAdjustment + ApprovalRulesetAdjustmentNumber *uint32 + ApprovalRulesetVersionID *uint64 + CreatedAt time.Time + ID uint64 + ManualApprovalRuleOutcome ManualApprovalRuleOutcome + ManualApprovalRuleOutcomeID *uint64 + OrganizationMemberIP sql.NullString + ReleaseCancelledEvent ReleaseCancelledEvent + ReleaseCancelledEventID *uint64 + ReleaseCreatedEvent ReleaseCreatedEvent + ReleaseCreatedEventID *uint64 + ServiceAccount ServiceAccount + ServiceAccountName sql.NullString + User User + UserEmail sql.NullString + func CreateMockCreationAuditRecord(db *gorm.DB, organization Organization, ...) (CreationAuditRecord, error) + func NewCreationAuditRecord(organizationID string, creator IOrganizationMember, creatorIP string) CreationAuditRecord + type HTTPApiApprovalRule struct + Password sql.NullString + RetryLimit int + RetryPolicy retrypolicy.Policy + TLSCaCertificate sql.NullString + URL string + Username sql.NullString + func (r HTTPApiApprovalRule) Type() ApprovalRuleType + type HTTPApiApprovalRuleOutcome struct + HTTPApiApprovalRule HTTPApiApprovalRule + HTTPApiApprovalRuleID uint64 + ResponseBody []byte + ResponseCode uint8 + ResponseContentType string + type IApprovalRule interface + AssociateWithApprovalRulesetAdjustment func(adjustment ApprovalRulesetAdjustment) + ClearPrimaryKey func() + Type func() ApprovalRuleType + type IBaseModel interface + GetOrganizationID func() string + type IOrganizationMember interface + Authenticate func(password string) (bool, error) + GetRole func() organizationmemberrole.Role + ID func() string + IDTypeDisplayName func() string + Type func() OrganizationMemberType + func FindOrganizationMember(db *gorm.DB, organizationID string, orgMemberType OrganizationMemberType, ...) (IOrganizationMember, error) + type IReviewable interface + AssociateWithVersion func(version IReviewableVersion) + GetPrimaryKey func() interface{} + GetPrimaryKeyGormValue func() []interface{} + type IReviewableAdjustment interface + AssociateWithVersion func(version IReviewableVersion) + GetProposalState func() proposalstate.State + GetVersionID func() interface{} + type IReviewableVersion interface + AssociateWithAdjustment func(adjustment IReviewableAdjustment) + AssociateWithReviewable func(reviewable IReviewable) + GetID func() interface{} + GetReviewablePrimaryKey func() interface{} + GetVersionNumber func() *uint32 + type ManualApprovalRule struct + ApprovalPolicy approvalpolicy.Policy + Minimum sql.NullInt32 + func (r ManualApprovalRule) Type() ApprovalRuleType + type ManualApprovalRuleOutcome struct + Comments sql.NullString + ManualApprovalRule ManualApprovalRule + ManualApprovalRuleID uint64 + type Organization struct + DisplayName string + ID string + func CreateMockOrganization(db *gorm.DB, customizeFunc func(org *Organization)) (Organization, error) + func FindOrganizationByID(db *gorm.DB, id string) (Organization, error) + type OrganizationMember struct + CreatedAt time.Time + PasswordHash string + Role organizationmemberrole.Role + UpdatedAt time.Time + func (orgMember OrganizationMember) Authenticate(password string) (bool, error) + func (orgMember OrganizationMember) GetRole() organizationmemberrole.Role + type OrganizationMemberType string + const ServiceAccountType + const UserType + type Release struct + Application Application + ApplicationID string + Comments sql.NullString + CreatedAt time.Time + FinalizedAt sql.NullTime + ID uint64 + Metadata datatypes.JSONMap + SourceIdentity sql.NullString + State releasestate.State + UpdatedAt time.Time + func CollectReleasesWithReleaseApprovalRulesetBindings(bindings []ReleaseApprovalRulesetBinding) []*Release + func CreateMockReleaseWithInProgressState(db *gorm.DB, organization Organization, application Application, ...) (Release, error) + func FindRelease(db *gorm.DB, organizationID string, applicationID string, releaseID uint64) (Release, error) + func FindReleases(db *gorm.DB, organizationID string, applicationID string) ([]Release, error) + func MakeReleasesPointerArray(releases []Release) []*Release + func (r Release) Description() string + type ReleaseApprovalRulesetBinding struct + ApplicationID string + ApprovalRuleset ApprovalRuleset + ApprovalRulesetAdjustment ApprovalRulesetAdjustment + ApprovalRulesetAdjustmentNumber uint32 + ApprovalRulesetID string + ApprovalRulesetVersion ApprovalRulesetVersion + ApprovalRulesetVersionID uint64 + Mode approvalrulesetbindingmode.Mode + Release Release + ReleaseID uint64 + func CreateMockReleaseRulesetBindingWithEnforcingMode(db *gorm.DB, organization Organization, release Release, ...) (ReleaseApprovalRulesetBinding, error) + func CreateReleaseApprovalRulesetBindings(db *gorm.DB, releaseID uint64, ...) ([]ReleaseApprovalRulesetBinding, error) + func FindAllReleaseApprovalRulesetBindings(db *gorm.DB, organizationID string, applicationID string, releaseID uint64) ([]ReleaseApprovalRulesetBinding, error) + func FindAllReleaseApprovalRulesetBindingsWithApprovalRulesetAdjustment(db *gorm.DB, organizationID string, rulesetID string, versionID uint64, ...) ([]ReleaseApprovalRulesetBinding, error) + func NewReleaseApprovalRulesetBindingFromApplicationApprovalRulesetBinding(appRuleBinding ApplicationApprovalRulesetBinding) ReleaseApprovalRulesetBinding + type ReleaseBackgroundJob struct + ApplicationID string + CreatedAt time.Time + LockSubID uint32 + Release Release + ReleaseID uint64 + func CreateMockReleaseBackgroundJob(db *gorm.DB, organization Organization, app Application, release Release, ...) (ReleaseBackgroundJob, error) + func CreateReleaseBackgroundJob(db *gorm.DB, organizationID string, applicationID string, release Release) (ReleaseBackgroundJob, error) + func FindReleaseBackgroundJob(db *gorm.DB, organizationID string, applicationID string, releaseID uint64) (ReleaseBackgroundJob, error) + func FindUnlockedReleaseBackgroundJobs(db *gorm.DB) ([]ReleaseBackgroundJob, error) + type ReleaseCancelledEvent struct + func CreateMockReleaseCancelledEvent(db *gorm.DB, release Release, customizeFunc func(event *ReleaseCancelledEvent)) (ReleaseCancelledEvent, error) + type ReleaseCreatedEvent struct + func CreateMockReleaseCreatedEvent(db *gorm.DB, release Release, customizeFunc func(event *ReleaseCreatedEvent)) (ReleaseCreatedEvent, error) + type ReleaseEvent struct + ApplicationID string + CreatedAt time.Time + ID uint64 + Release Release + ReleaseID uint64 + type ReleaseEventCollection struct + ReleaseCancelledEvents []ReleaseCancelledEvent + ReleaseCreatedEvents []ReleaseCreatedEvent + ReleaseRuleProcessedEvents []ReleaseRuleProcessedEvent + func FindReleaseEvents(db *gorm.DB, organizationID string, applicationID string, releaseID uint64) (ReleaseEventCollection, error) + func (c ReleaseEventCollection) NumEvents() uint + type ReleaseEventType string + type ReleaseRuleProcessedEvent struct + HTTPApiApprovalRuleOutcome *HTTPApiApprovalRuleOutcome + IgnoredError bool + ManualApprovalRuleOutcome *ManualApprovalRuleOutcome + ResultState releasestate.State + ScheduleApprovalRuleOutcome *ScheduleApprovalRuleOutcome + func CreateMockReleaseRuleProcessedEvent(db *gorm.DB, release Release, state releasestate.State, ...) (ReleaseRuleProcessedEvent, error) + func MakeReleaseRuleProcessedEventsPointerArray(events []ReleaseRuleProcessedEvent) []*ReleaseRuleProcessedEvent + type ReviewableAction string + const ReviewableActionCreate + const ReviewableActionDelete + const ReviewableActionUpdate + type ReviewableAdjustmentBase struct + AdjustmentNumber uint32 + CreatedAt time.Time + ProposalState proposalstate.State + ReviewComments sql.NullString + func (adjustment ReviewableAdjustmentBase) GetProposalState() proposalstate.State + type ReviewableBase struct + CreatedAt time.Time + UpdatedAt time.Time + type ReviewableVersionBase struct + ApprovedAt sql.NullTime + CreatedAt time.Time + ID uint64 + VersionNumber *uint32 + func (version ReviewableVersionBase) GetVersionNumber() *uint32 + type ScheduleApprovalRule struct + BeginTime sql.NullString + DaysOfMonth sql.NullString + DaysOfWeek sql.NullString + EndTime sql.NullString + MonthsOfYear sql.NullString + func CreateMockScheduleApprovalRuleWholeDay(db *gorm.DB, organization Organization, rulesetVersionID uint64, ...) (ScheduleApprovalRule, error) + func (r ScheduleApprovalRule) Type() ApprovalRuleType + type ScheduleApprovalRuleOutcome struct + ScheduleApprovalRule ScheduleApprovalRule + ScheduleApprovalRuleID uint64 + func CreateMockScheduleApprovalRuleOutcome(db *gorm.DB, event ReleaseRuleProcessedEvent, rule ScheduleApprovalRule, ...) (ScheduleApprovalRuleOutcome, error) + func FindScheduleApprovalRuleOutcomes(db *gorm.DB, organizationID string, releaseID uint64) ([]ScheduleApprovalRuleOutcome, error) + type ServiceAccount struct + Name string + func CreateMockServiceAccountWithAdminRole(db *gorm.DB, organization Organization, customizeFunc func(sa *ServiceAccount)) (ServiceAccount, error) + func FindServiceAccountByName(db *gorm.DB, organizationID string, name string) (ServiceAccount, error) + func (sa ServiceAccount) ID() string + func (sa ServiceAccount) IDTypeDisplayName() string + func (sa ServiceAccount) Type() OrganizationMemberType + type User struct + Email string + FirstName string + LastName string + func FindUserByEmail(db *gorm.DB, organizationID string, email string) (User, error) + func (user User) ID() string + func (user User) IDTypeDisplayName() string + func (user User) Type() OrganizationMemberType