Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalJob ¶
func UnmarshalJob ¶
Types ¶
type Job ¶
type Job struct { // Name is a job name Name string `attr:"name"` Event []EventType `attr:"event"` // If true, build at each revision AllRevision bool `attr:"all_revision,allowempty"` Command string `attr:"command"` Container string `attr:"container,allowempty"` // Limit of CPU CPULimit string `attr:"cpu_limit,allowempty"` // Limit of memory MemoryLimit string `attr:"memory_limit,allowempty"` GitHubStatus bool `attr:"github_status,allowempty"` Platforms []string `attr:"platforms"` Targets []string `attr:"targets"` Args []string `attr:"args,allowempty"` // Do not allow parallelized build in this job Exclusive bool `attr:"exclusive,allowempty"` // The name of config ConfigName string `attr:"config_name,allowempty"` // Job schedule Schedule string `attr:"schedule,allowempty"` Secrets []starlark.Value `attr:"secrets,allowempty"` Env map[string]any `attr:"env,allowempty"` RepositoryOwner string RepositoryName string }
func (*Job) Identification ¶
type RegistrySecret ¶
type RegistrySecret struct { Host string `attr:"host"` VaultMount string `attr:"vault_mount"` VaultPath string `attr:"vault_path"` VaultKey string `attr:"vault_key"` }
func (*RegistrySecret) Freeze ¶
func (s *RegistrySecret) Freeze()
func (*RegistrySecret) Hash ¶
func (s *RegistrySecret) Hash() (uint32, error)
func (*RegistrySecret) String ¶
func (s *RegistrySecret) String() string
func (*RegistrySecret) Truth ¶
func (s *RegistrySecret) Truth() starlark.Bool
func (*RegistrySecret) Type ¶
func (s *RegistrySecret) Type() string
Click to show internal directories.
Click to hide internal directories.