settings

package
v0.28.0-rc7 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compiler

type Compiler struct {
	CloneImage        *string `json:"clone_image,omitempty"         yaml:"clone_image,omitempty"`
	TemplateDepth     *int    `json:"template_depth,omitempty"      yaml:"template_depth,omitempty"`
	StarlarkExecLimit *int64  `json:"starlark_exec_limit,omitempty" yaml:"starlark_exec_limit,omitempty"`
}

func CompilerMockEmpty

func CompilerMockEmpty() Compiler

CompilerMockEmpty returns an empty Compiler type.

func (*Compiler) GetCloneImage

func (cs *Compiler) GetCloneImage() string

GetCloneImage returns the CloneImage field.

When the provided Compiler type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Compiler) GetStarlarkExecLimit

func (cs *Compiler) GetStarlarkExecLimit() int64

GetStarlarkExecLimit returns the StarlarkExecLimit field.

When the provided Compiler type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Compiler) GetTemplateDepth

func (cs *Compiler) GetTemplateDepth() int

GetTemplateDepth returns the TemplateDepth field.

When the provided Compiler type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Compiler) SetCloneImage

func (cs *Compiler) SetCloneImage(v string)

SetCloneImage sets the CloneImage field.

When the provided Compiler type is nil, it will set nothing and immediately return.

func (*Compiler) SetStarlarkExecLimit

func (cs *Compiler) SetStarlarkExecLimit(v int64)

SetStarlarkExecLimit sets the StarlarkExecLimit field.

When the provided Compiler type is nil, it will set nothing and immediately return.

func (*Compiler) SetTemplateDepth

func (cs *Compiler) SetTemplateDepth(v int)

SetTemplateDepth sets the TemplateDepth field.

When the provided Compiler type is nil, it will set nothing and immediately return.

func (*Compiler) String

func (cs *Compiler) String() string

String implements the Stringer interface for the Compiler type.

type Platform

type Platform struct {
	ID                  *int32 `json:"id"`
	*Compiler           `json:"compiler,omitempty"              yaml:"compiler,omitempty"`
	*Queue              `json:"queue,omitempty"                 yaml:"queue,omitempty"`
	*SCM                `json:"scm,omitempty"                   yaml:"scm,omitempty"`
	RepoAllowlist       *[]string `json:"repo_allowlist,omitempty"        yaml:"repo_allowlist,omitempty"`
	ScheduleAllowlist   *[]string `json:"schedule_allowlist,omitempty"    yaml:"schedule_allowlist,omitempty"`
	MaxDashboardRepos   *int32    `json:"max_dashboard_repos,omitempty"   yaml:"max_dashboard_repos,omitempty"`
	QueueRestartLimit   *int32    `json:"queue_restart_limit,omitempty"   yaml:"queue_restart_limit,omitempty"`
	EnableRepoSecrets   *bool     `json:"enable_repo_secrets,omitempty"   yaml:"enable_repo_secrets,omitempty"`
	EnableOrgSecrets    *bool     `json:"enable_org_secrets,omitempty"    yaml:"enable_org_secrets,omitempty"`
	EnableSharedSecrets *bool     `json:"enable_shared_secrets,omitempty" yaml:"enable_shared_secrets,omitempty"`
	CreatedAt           *int64    `json:"created_at,omitempty"            yaml:"created_at,omitempty"`
	UpdatedAt           *int64    `json:"updated_at,omitempty"            yaml:"updated_at,omitempty"`
	UpdatedBy           *string   `json:"updated_by,omitempty"            yaml:"updated_by,omitempty"`
}

Platform is the API representation of platform settingps.

swagger:model Platform

func FromCLICommand added in v0.27.0

func FromCLICommand(c *cli.Command) *Platform

FromCLICommand returns a new Platform record from a cli command.

func PlatformMockEmpty

func PlatformMockEmpty() Platform

PlatformMockEmpty returns an empty Platform type.

func (*Platform) FromSettings

func (ps *Platform) FromSettings(_ps *Platform)

FromSettings takes another settings record and updates the internal fields, used when the updating settings and refreshing the record shared across the server.

func (*Platform) GetCompiler

func (ps *Platform) GetCompiler() Compiler

GetCompiler returns the Compiler field.

When the provided Platform type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Platform) GetCreatedAt

func (ps *Platform) GetCreatedAt() int64

GetCreatedAt returns the CreatedAt field.

When the provided Platform type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Platform) GetEnableOrgSecrets added in v0.28.0

func (ps *Platform) GetEnableOrgSecrets() bool

GetEnableOrgSecrets returns the EnableOrgSecrets field.

When the provided Platform type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Platform) GetEnableRepoSecrets added in v0.28.0

func (ps *Platform) GetEnableRepoSecrets() bool

GetEnableRepoSecrets returns the EnableRepoSecrets field.

When the provided Platform type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Platform) GetEnableSharedSecrets added in v0.28.0

func (ps *Platform) GetEnableSharedSecrets() bool

GetEnableSharedSecrets returns the EnableSharedSecrets field.

When the provided Platform type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Platform) GetID

func (ps *Platform) GetID() int32

GetID returns the ID field.

When the provided Platform type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Platform) GetMaxDashboardRepos added in v0.27.0

func (ps *Platform) GetMaxDashboardRepos() int32

GetMaxDashboardRepos returns the MaxDashboardRepos field.

When the provided Platform type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Platform) GetQueue

func (ps *Platform) GetQueue() Queue

GetQueue returns the Queue field.

When the provided Platform type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Platform) GetQueueRestartLimit added in v0.26.5

func (ps *Platform) GetQueueRestartLimit() int32

GetQueueRestartLimit returns the QueueRestartLimit field.

When the provided Platform type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Platform) GetRepoAllowlist

func (ps *Platform) GetRepoAllowlist() []string

GetRepoAllowlist returns the RepoAllowlist field.

When the provided Platform type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Platform) GetSCM added in v0.27.0

func (ps *Platform) GetSCM() SCM

GetSCM returns the SCM field.

When the provided Platform type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Platform) GetScheduleAllowlist

func (ps *Platform) GetScheduleAllowlist() []string

GetScheduleAllowlist returns the ScheduleAllowlist field.

When the provided Platform type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Platform) GetUpdatedAt

func (ps *Platform) GetUpdatedAt() int64

GetUpdatedAt returns the UpdatedAt field.

When the provided Platform type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Platform) GetUpdatedBy

func (ps *Platform) GetUpdatedBy() string

GetUpdatedBy returns the UpdatedBy field.

When the provided Platform type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Platform) SetCompiler

func (ps *Platform) SetCompiler(cs Compiler)

SetCompiler sets the Compiler field.

When the provided Compiler type is nil, it will set nothing and immediately return.

func (*Platform) SetCreatedAt

func (ps *Platform) SetCreatedAt(v int64)

SetCreatedAt sets the CreatedAt field.

When the provided Platform type is nil, it will set nothing and immediately return.

func (*Platform) SetEnableOrgSecrets added in v0.28.0

func (ps *Platform) SetEnableOrgSecrets(v bool)

SetEnableOrgSecrets sets the EnableOrgSecrets field.

When the provided Platform type is nil, it will set nothing and immediately return.

func (*Platform) SetEnableRepoSecrets added in v0.28.0

func (ps *Platform) SetEnableRepoSecrets(v bool)

SetEnableRepoSecrets sets the EnableRepoSecrets field.

When the provided Platform type is nil, it will set nothing and immediately return.

func (*Platform) SetEnableSharedSecrets added in v0.28.0

func (ps *Platform) SetEnableSharedSecrets(v bool)

SetEnableSharedSecrets sets the EnableSharedSecrets field.

When the provided Platform type is nil, it will set nothing and immediately return.

func (*Platform) SetID

func (ps *Platform) SetID(v int32)

SetID sets the ID field.

When the provided Platform type is nil, it will set nothing and immediately return.

func (*Platform) SetMaxDashboardRepos added in v0.27.0

func (ps *Platform) SetMaxDashboardRepos(v int32)

SetMaxDashboardRepos sets the MaxDashboardRepos field.

When the provided Platform type is nil, it will set nothing and immediately return.

func (*Platform) SetQueue

func (ps *Platform) SetQueue(qs Queue)

SetQueue sets the Queue field.

When the provided Queue type is nil, it will set nothing and immediately return.

func (*Platform) SetQueueRestartLimit added in v0.26.5

func (ps *Platform) SetQueueRestartLimit(v int32)

SetQueueRestartLimit sets the QueueRestartLimit field.

When the provided Platform type is nil, it will set nothing and immediately return.

func (*Platform) SetRepoAllowlist

func (ps *Platform) SetRepoAllowlist(v []string)

SetRepoAllowlist sets the RepoAllowlist field.

When the provided Platform type is nil, it will set nothing and immediately return.

func (*Platform) SetSCM added in v0.27.0

func (ps *Platform) SetSCM(scm SCM)

SetSCM sets the SCM field.

When the provided SCM type is nil, it will set nothing and immediately return.

func (*Platform) SetScheduleAllowlist

func (ps *Platform) SetScheduleAllowlist(v []string)

SetScheduleAllowlist sets the RepoAllowlist field.

When the provided Platform type is nil, it will set nothing and immediately return.

func (*Platform) SetUpdatedAt

func (ps *Platform) SetUpdatedAt(v int64)

SetUpdatedAt sets the UpdatedAt field.

When the provided Platform type is nil, it will set nothing and immediately return.

func (*Platform) SetUpdatedBy

func (ps *Platform) SetUpdatedBy(v string)

SetUpdatedBy sets the UpdatedBy field.

When the provided Platform type is nil, it will set nothing and immediately return.

func (*Platform) String

func (ps *Platform) String() string

String implements the Stringer interface for the Platform type.

type Queue

type Queue struct {
	Routes *[]string `json:"routes,omitempty" yaml:"routes,omitempty"`
}

func QueueMockEmpty

func QueueMockEmpty() Queue

QueueMockEmpty returns an empty Queue type.

func (*Queue) GetRoutes

func (qs *Queue) GetRoutes() []string

GetRoutes returns the Routes field.

When the provided Queue type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Queue) SetRoutes

func (qs *Queue) SetRoutes(v []string)

SetRoutes sets the Routes field.

When the provided Queue type is nil, it will set nothing and immediately return.

func (*Queue) String

func (qs *Queue) String() string

String implements the Stringer interface for the Queue type.

type SCM added in v0.27.0

type SCM struct {
	RepoRoleMap map[string]string `json:"repo_role_map,omitempty" yaml:"repo_role_map,omitempty"`
	OrgRoleMap  map[string]string `json:"org_role_map,omitempty"  yaml:"org_role_map,omitempty"`
	TeamRoleMap map[string]string `json:"team_role_map,omitempty" yaml:"team_role_map,omitempty"`
}

func SCMMockEmpty added in v0.27.0

func SCMMockEmpty() SCM

SCMMockEmpty returns an empty SCM type.

func (*SCM) GetOrgRoleMap added in v0.27.0

func (s *SCM) GetOrgRoleMap() map[string]string

GetOrgRoleMap returns the OrgRoleMap field.

When the provided SCM type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*SCM) GetRepoRoleMap added in v0.27.0

func (s *SCM) GetRepoRoleMap() map[string]string

GetRepoRoleMap returns the RepoRoleMap field.

When the provided SCM type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*SCM) GetTeamRoleMap added in v0.27.0

func (s *SCM) GetTeamRoleMap() map[string]string

GetTeamRoleMap returns the TeamRoleMap field.

When the provided SCM type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*SCM) SetOrgRoleMap added in v0.27.0

func (s *SCM) SetOrgRoleMap(v map[string]string)

SetOrgRoleMap sets the OrgRoleMap field.

When the provided SCM type is nil, it will set nothing and immediately return.

func (*SCM) SetRepoRoleMap added in v0.27.0

func (s *SCM) SetRepoRoleMap(v map[string]string)

SetRepoRoleMap sets the RepoRoleMap field.

When the provided SCM type is nil, it will set nothing and immediately return.

func (*SCM) SetTeamRoleMap added in v0.27.0

func (s *SCM) SetTeamRoleMap(v map[string]string)

SetTeamRoleMap sets the TeamRoleMap field.

When the provided SCM type is nil, it will set nothing and immediately return.

func (*SCM) String added in v0.27.0

func (s *SCM) String() string

String implements the Stringer interface for the SCM type.

Jump to

Keyboard shortcuts

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