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() int64
- func (ps *Platform) GetQueue() Queue
- func (ps *Platform) GetRepoAllowlist() []string
- 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 int64)
- func (ps *Platform) SetQueue(qs Queue)
- func (ps *Platform) SetRepoAllowlist(v []string)
- 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
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 *int64 `json:"id"` *Compiler `json:"compiler,omitempty" yaml:"compiler,omitempty"` *Queue `json:"queue,omitempty" yaml:"queue,omitempty"` RepoAllowlist *[]string `json:"repo_allowlist,omitempty" yaml:"repo_allowlist,omitempty"` ScheduleAllowlist *[]string `json:"schedule_allowlist,omitempty" yaml:"schedule_allowlist,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 FromCLIContext ¶
func FromCLIContext(c *cli.Context) *Platform
FromCLIContext returns a new Platform record from a cli context.
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) 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) 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) 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) SetQueue ¶
SetQueue sets the Queue field.
When the provided Queue 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) 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.