settings

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 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 *uint64 `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() uint64

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 uint64)

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                *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

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) GetID

func (ps *Platform) GetID() int64

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

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) 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) 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) SetID

func (ps *Platform) SetID(v int64)

SetID sets the ID 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) 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) 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.

Jump to

Keyboard shortcuts

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