builders

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetsDataBuilder

type AssetsDataBuilder struct {
	// contains filtered or unexported fields
}

func NewAssetsDataBuilder

func NewAssetsDataBuilder() *AssetsDataBuilder

func (*AssetsDataBuilder) Build

func (*AssetsDataBuilder) WithAuthorizedUser

func (b *AssetsDataBuilder) WithAuthorizedUser() *AssetsDataBuilder

func (*AssetsDataBuilder) WithBranch

func (b *AssetsDataBuilder) WithBranch(branch *models.Branch) *AssetsDataBuilder

func (*AssetsDataBuilder) WithBranchProtections

func (b *AssetsDataBuilder) WithBranchProtections(bp *models.Protection) *AssetsDataBuilder

func (*AssetsDataBuilder) WithNoOrganization added in v0.1.0

func (b *AssetsDataBuilder) WithNoOrganization() *AssetsDataBuilder

func (*AssetsDataBuilder) WithNoPipelinesData added in v0.1.0

func (b *AssetsDataBuilder) WithNoPipelinesData() *AssetsDataBuilder

func (*AssetsDataBuilder) WithNoRegistryData added in v0.1.0

func (b *AssetsDataBuilder) WithNoRegistryData() *AssetsDataBuilder

func (*AssetsDataBuilder) WithNoRepositoryData added in v0.1.0

func (b *AssetsDataBuilder) WithNoRepositoryData() *AssetsDataBuilder

func (*AssetsDataBuilder) WithOrganization

func (b *AssetsDataBuilder) WithOrganization(org *models.Organization) *AssetsDataBuilder

func (*AssetsDataBuilder) WithPackageRegistry

func (b *AssetsDataBuilder) WithPackageRegistry(bp *models.PackageRegistry) *AssetsDataBuilder

func (*AssetsDataBuilder) WithPipeline

func (*AssetsDataBuilder) WithRepository

func (b *AssetsDataBuilder) WithRepository(repo *models.Repository) *AssetsDataBuilder

func (*AssetsDataBuilder) WithUsers

func (b *AssetsDataBuilder) WithUsers(users []*models.User) *AssetsDataBuilder

func (*AssetsDataBuilder) WithZeroPipelines

func (b *AssetsDataBuilder) WithZeroPipelines() *AssetsDataBuilder

type BranchBuilder

type BranchBuilder struct {
	// contains filtered or unexported fields
}

func NewBranchBuilder

func NewBranchBuilder() *BranchBuilder

func (*BranchBuilder) Build

func (b *BranchBuilder) Build() *models.Branch

func (*BranchBuilder) WithOldCommit added in v0.1.0

func (b *BranchBuilder) WithOldCommit() *BranchBuilder

type BranchProtectionBuilder

type BranchProtectionBuilder struct {
	// contains filtered or unexported fields
}

func NewBranchProtectionBuilder

func NewBranchProtectionBuilder() *BranchProtectionBuilder

func (*BranchProtectionBuilder) Build

func (*BranchProtectionBuilder) WithCodeOwnersReview

func (b *BranchProtectionBuilder) WithCodeOwnersReview(requireCodeOwnerReviews bool) *BranchProtectionBuilder

func (*BranchProtectionBuilder) WithDeleteBranch

func (b *BranchProtectionBuilder) WithDeleteBranch(deleteBranch bool) *BranchProtectionBuilder

func (*BranchProtectionBuilder) WithDismissStaleReviews

func (b *BranchProtectionBuilder) WithDismissStaleReviews(dismissStaleReviews bool) *BranchProtectionBuilder

func (*BranchProtectionBuilder) WithDismissalRestrictions

func (b *BranchProtectionBuilder) WithDismissalRestrictions(dismissalRestrictions bool) *BranchProtectionBuilder

func (*BranchProtectionBuilder) WithEnforceAdmin

func (b *BranchProtectionBuilder) WithEnforceAdmin(enforceAdmin bool) *BranchProtectionBuilder

func (*BranchProtectionBuilder) WithForcePush

func (b *BranchProtectionBuilder) WithForcePush(forcePush bool) *BranchProtectionBuilder

func (*BranchProtectionBuilder) WithMinimumReviwersBeforeMerge

func (b *BranchProtectionBuilder) WithMinimumReviwersBeforeMerge(num int) *BranchProtectionBuilder

func (*BranchProtectionBuilder) WithPushRestrictions

func (b *BranchProtectionBuilder) WithPushRestrictions(pushRestriction bool) *BranchProtectionBuilder

func (*BranchProtectionBuilder) WithRequiredSignedCommits

func (b *BranchProtectionBuilder) WithRequiredSignedCommits(enable bool) *BranchProtectionBuilder

func (*BranchProtectionBuilder) WithResolveConversations

func (b *BranchProtectionBuilder) WithResolveConversations(resolveConversion bool) *BranchProtectionBuilder

func (*BranchProtectionBuilder) WithStatusCheckEnabled

func (b *BranchProtectionBuilder) WithStatusCheckEnabled(enabled bool) *BranchProtectionBuilder

func (*BranchProtectionBuilder) WithStrictMode added in v0.1.0

func (b *BranchProtectionBuilder) WithStrictMode(enabled bool) *BranchProtectionBuilder

type JobBuilder

type JobBuilder struct {
	// contains filtered or unexported fields
}

func NewJobBuilder

func NewJobBuilder() *JobBuilder

func (*JobBuilder) Build

func (p *JobBuilder) Build() models.Job

func (*JobBuilder) SetAsBuildJob

func (j *JobBuilder) SetAsBuildJob(buildJob bool) *JobBuilder

func (*JobBuilder) WithNoTasks added in v0.1.0

func (j *JobBuilder) WithNoTasks() *JobBuilder

func (*JobBuilder) WithNoVulnerabilityScannerTask added in v0.1.0

func (j *JobBuilder) WithNoVulnerabilityScannerTask() *JobBuilder

func (*JobBuilder) WithShellCommand

func (j *JobBuilder) WithShellCommand(name string, command string) *JobBuilder

func (*JobBuilder) WithTask

func (j *JobBuilder) WithTask(name, versionType string) *JobBuilder

type OrganizationBuilder

type OrganizationBuilder struct {
	// contains filtered or unexported fields
}

func NewOrganizationBuilder

func NewOrganizationBuilder() *OrganizationBuilder

func (*OrganizationBuilder) Build

func (*OrganizationBuilder) WithIssuesDeletionLimitation

func (b *OrganizationBuilder) WithIssuesDeletionLimitation(issueDeletionLimitation bool) *OrganizationBuilder

func (*OrganizationBuilder) WithMFAEnabled

func (b *OrganizationBuilder) WithMFAEnabled(enable bool) *OrganizationBuilder

func (*OrganizationBuilder) WithMembers

func (b *OrganizationBuilder) WithMembers(role string, num int) *OrganizationBuilder

func (*OrganizationBuilder) WithMembersCanCreateRepos

func (b *OrganizationBuilder) WithMembersCanCreateRepos(membersCanCreateRepos bool) *OrganizationBuilder

func (*OrganizationBuilder) WithNoMembers added in v0.1.0

func (b *OrganizationBuilder) WithNoMembers() *OrganizationBuilder

func (*OrganizationBuilder) WithNoPackageWebHooks added in v0.1.0

func (b *OrganizationBuilder) WithNoPackageWebHooks() *OrganizationBuilder

func (*OrganizationBuilder) WithPackageWebHooks

func (b *OrganizationBuilder) WithPackageWebHooks(url string, is_ssl string, secret *string) *OrganizationBuilder

func (*OrganizationBuilder) WithReposDefaultPermissions

func (b *OrganizationBuilder) WithReposDefaultPermissions(defaultPermissions string) *OrganizationBuilder

func (*OrganizationBuilder) WithReposDeletionLimitation

func (b *OrganizationBuilder) WithReposDeletionLimitation(repoDeletionLimitation bool) *OrganizationBuilder

func (*OrganizationBuilder) WithVerifiedBadge

func (b *OrganizationBuilder) WithVerifiedBadge(enable bool) *OrganizationBuilder

type PackageRegistryBuilder

type PackageRegistryBuilder struct {
	// contains filtered or unexported fields
}

func NewRegistryBuilder

func NewRegistryBuilder() *PackageRegistryBuilder

func (*PackageRegistryBuilder) Build

func (*PackageRegistryBuilder) WithNoPackages added in v0.1.0

func (p *PackageRegistryBuilder) WithNoPackages() *PackageRegistryBuilder

func (*PackageRegistryBuilder) WithPackages

func (p *PackageRegistryBuilder) WithPackages(packagetype string, visability string, isRepoPrivate bool, repoID int64) *PackageRegistryBuilder

func (*PackageRegistryBuilder) WithTwoFactorAuthenticationEnabled

func (p *PackageRegistryBuilder) WithTwoFactorAuthenticationEnabled(enabled bool) *PackageRegistryBuilder

type PipelineBuilder

type PipelineBuilder struct {
	// contains filtered or unexported fields
}

func NewPipelineBuilder

func NewPipelineBuilder() *PipelineBuilder

func (*PipelineBuilder) Build

func (p *PipelineBuilder) Build() *models.Pipeline

func (*PipelineBuilder) WithJob

func (p *PipelineBuilder) WithJob(job models.Job) *PipelineBuilder

func (*PipelineBuilder) WithNoJobs added in v0.1.0

func (p *PipelineBuilder) WithNoJobs() *PipelineBuilder

type RepositoryBuilder

type RepositoryBuilder struct {
	// contains filtered or unexported fields
}

func NewRepositoryBuilder

func NewRepositoryBuilder() *RepositoryBuilder

func (*RepositoryBuilder) Build

func (b *RepositoryBuilder) Build() *models.Repository

func (*RepositoryBuilder) WithAdminCollborator

func (b *RepositoryBuilder) WithAdminCollborator(admin bool, count int) *RepositoryBuilder

func (*RepositoryBuilder) WithAllowMergeCommit

func (b *RepositoryBuilder) WithAllowMergeCommit(enable bool) *RepositoryBuilder

func (*RepositoryBuilder) WithAllowRebaseMerge

func (b *RepositoryBuilder) WithAllowRebaseMerge(enable bool) *RepositoryBuilder

func (*RepositoryBuilder) WithAllowSquashMerge

func (b *RepositoryBuilder) WithAllowSquashMerge(enable bool) *RepositoryBuilder

func (*RepositoryBuilder) WithBranch added in v0.1.0

func (b *RepositoryBuilder) WithBranch(branch *models.Branch) *RepositoryBuilder

func (*RepositoryBuilder) WithCommit

func (b *RepositoryBuilder) WithCommit(login string) *RepositoryBuilder

func (*RepositoryBuilder) WithID added in v0.1.0

func (b *RepositoryBuilder) WithID(id int64) *RepositoryBuilder

func (*RepositoryBuilder) WithNoCollborator added in v0.1.0

func (b *RepositoryBuilder) WithNoCollborator() *RepositoryBuilder

func (*RepositoryBuilder) WithNoCommits added in v0.1.0

func (b *RepositoryBuilder) WithNoCommits() *RepositoryBuilder

func (*RepositoryBuilder) WithNoRepoPemissions added in v0.1.0

func (b *RepositoryBuilder) WithNoRepoPemissions() *RepositoryBuilder

func (*RepositoryBuilder) WithPackageWebHooks

func (b *RepositoryBuilder) WithPackageWebHooks(url string, is_ssl string, secret *string) *RepositoryBuilder

func (*RepositoryBuilder) WithPrivate

func (b *RepositoryBuilder) WithPrivate(isPrivate bool) *RepositoryBuilder

func (*RepositoryBuilder) WithSecurityMdFile

func (b *RepositoryBuilder) WithSecurityMdFile(containsSecurityMd bool) *RepositoryBuilder

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL