Documentation
¶
Index ¶
- type Compiler
- func (cs *Compiler) GetCloneImage() string
- func (cs *Compiler) GetStarlarkExecLimit() int64
- func (cs *Compiler) GetTemplateDepth() int
- func (cs *Compiler) SetCloneImage(v string)
- func (cs *Compiler) SetStarlarkExecLimit(v int64)
- func (cs *Compiler) SetTemplateDepth(v int)
- func (cs *Compiler) String() string
- type Platform
- func (ps *Platform) FromSettings(_ps *Platform)
- func (ps *Platform) GetCompiler() Compiler
- func (ps *Platform) GetCreatedAt() int64
- func (ps *Platform) GetID() int32
- func (ps *Platform) GetMaxDashboardRepos() int32
- func (ps *Platform) GetQueue() Queue
- func (ps *Platform) GetQueueRestartLimit() int32
- func (ps *Platform) GetRepoAllowlist() []string
- func (ps *Platform) GetSCM() SCM
- func (ps *Platform) GetScheduleAllowlist() []string
- func (ps *Platform) GetUpdatedAt() int64
- func (ps *Platform) GetUpdatedBy() string
- func (ps *Platform) SetCompiler(cs Compiler)
- func (ps *Platform) SetCreatedAt(v int64)
- func (ps *Platform) SetID(v int32)
- func (ps *Platform) SetMaxDashboardRepos(v int32)
- func (ps *Platform) SetQueue(qs Queue)
- func (ps *Platform) SetQueueRestartLimit(v int32)
- func (ps *Platform) SetRepoAllowlist(v []string)
- func (ps *Platform) SetSCM(scm SCM)
- func (ps *Platform) SetScheduleAllowlist(v []string)
- func (ps *Platform) SetUpdatedAt(v int64)
- func (ps *Platform) SetUpdatedBy(v string)
- func (ps *Platform) String() string
- type Queue
- type SCM
- func (s *SCM) GetOrgRoleMap() map[string]string
- func (s *SCM) GetRepoRoleMap() map[string]string
- func (s *SCM) GetTeamRoleMap() map[string]string
- func (s *SCM) SetOrgRoleMap(v map[string]string)
- func (s *SCM) SetRepoRoleMap(v map[string]string)
- func (s *SCM) SetTeamRoleMap(v map[string]string)
- func (s *SCM) String() string
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 ¶
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 ¶
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 ¶
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 ¶
SetCloneImage sets the CloneImage field.
When the provided Compiler type is nil, it will set nothing and immediately return.
func (*Compiler) SetStarlarkExecLimit ¶
SetStarlarkExecLimit sets the StarlarkExecLimit field.
When the provided Compiler type is nil, it will set nothing and immediately return.
func (*Compiler) SetTemplateDepth ¶
SetTemplateDepth sets the TemplateDepth field.
When the provided Compiler type is nil, it will set nothing and immediately return.
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"` 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 ¶
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 ¶
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 ¶
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) GetID ¶
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
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 ¶
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
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 ¶
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
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 ¶
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 ¶
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 ¶
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 ¶
SetCompiler sets the Compiler field.
When the provided Compiler type is nil, it will set nothing and immediately return.
func (*Platform) SetCreatedAt ¶
SetCreatedAt sets the CreatedAt field.
When the provided Platform type is nil, it will set nothing and immediately return.
func (*Platform) SetID ¶
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
SetMaxDashboardRepos sets the MaxDashboardRepos field.
When the provided Platform type is nil, it will set nothing and immediately return.
func (*Platform) SetQueue ¶
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
SetQueueRestartLimit sets the QueueRestartLimit field.
When the provided Platform type is nil, it will set nothing and immediately return.
func (*Platform) SetRepoAllowlist ¶
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
SetSCM sets the SCM field.
When the provided SCM type is nil, it will set nothing and immediately return.
func (*Platform) SetScheduleAllowlist ¶
SetScheduleAllowlist sets the RepoAllowlist field.
When the provided Platform type is nil, it will set nothing and immediately return.
func (*Platform) SetUpdatedAt ¶
SetUpdatedAt sets the UpdatedAt field.
When the provided Platform type is nil, it will set nothing and immediately return.
func (*Platform) SetUpdatedBy ¶
SetUpdatedBy sets the UpdatedBy field.
When the provided Platform type is nil, it will set nothing and immediately return.
type Queue ¶
type Queue struct {
Routes *[]string `json:"routes,omitempty" yaml:"routes,omitempty"`
}
func (*Queue) GetRoutes ¶
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.
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
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
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
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
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
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
SetTeamRoleMap sets the TeamRoleMap field.
When the provided SCM type is nil, it will set nothing and immediately return.