admin_tasks

package
v0.0.0-...-65468f9 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: BSD-3-Clause Imports: 16 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHandlers

func AddHandlers(externalRouter chi.Router)

func ReloadTemplates

func ReloadTemplates(resourcesDir string)

Types

type AddRecreatePageSetsTaskVars

type AddRecreatePageSetsTaskVars struct {
	AdminAddTaskVars
}

Represents the parameters sent as JSON to the add_recreate_page_sets_task handler.

func (*AddRecreatePageSetsTaskVars) GetDatastoreKind

func (task *AddRecreatePageSetsTaskVars) GetDatastoreKind() ds.Kind

func (*AddRecreatePageSetsTaskVars) GetPopulatedDatastoreTask

func (task *AddRecreatePageSetsTaskVars) GetPopulatedDatastoreTask(ctx context.Context) (task_common.Task, error)

type AddRecreateWebpageArchivesTaskVars

type AddRecreateWebpageArchivesTaskVars struct {
	AdminAddTaskVars
}

Represents the parameters sent as JSON to the add_recreate_webpage_archives_task handler.

func (*AddRecreateWebpageArchivesTaskVars) GetDatastoreKind

func (task *AddRecreateWebpageArchivesTaskVars) GetDatastoreKind() ds.Kind

func (*AddRecreateWebpageArchivesTaskVars) GetPopulatedDatastoreTask

func (task *AddRecreateWebpageArchivesTaskVars) GetPopulatedDatastoreTask(ctx context.Context) (task_common.Task, error)

type AdminAddTaskVars

type AdminAddTaskVars struct {
	task_common.AddTaskCommonVars
	PageSets string `json:"page_sets"`
}

func (*AdminAddTaskVars) IsAdminTask

func (vars *AdminAddTaskVars) IsAdminTask() bool

type AdminDatastoreTask

type AdminDatastoreTask struct {
	task_common.CommonCols

	PageSets      string `json:"page_sets"`
	IsTestPageSet bool   `json:"is_test_page_set"`

	// For backwards compatilibity.
	ChromiumRev string `json:"chromium_rev"`
	SkiaRev     string `json:"skia_rev"`
}

type RecreatePageSetsDatastoreTask

type RecreatePageSetsDatastoreTask struct {
	AdminDatastoreTask
}

func (RecreatePageSetsDatastoreTask) Get

func (RecreatePageSetsDatastoreTask) GetDatastoreKind

func (task RecreatePageSetsDatastoreTask) GetDatastoreKind() ds.Kind

func (RecreatePageSetsDatastoreTask) GetDescription

func (task RecreatePageSetsDatastoreTask) GetDescription() string

func (RecreatePageSetsDatastoreTask) GetPopulatedAddTaskVars

func (task RecreatePageSetsDatastoreTask) GetPopulatedAddTaskVars() (task_common.AddTaskVars, error)
func (task RecreatePageSetsDatastoreTask) GetResultsLink() string

func (RecreatePageSetsDatastoreTask) GetTaskName

func (task RecreatePageSetsDatastoreTask) GetTaskName() string

func (RecreatePageSetsDatastoreTask) Query

func (task RecreatePageSetsDatastoreTask) Query(it *datastore.Iterator) (interface{}, error)

func (RecreatePageSetsDatastoreTask) RunsOnGCEWorkers

func (task RecreatePageSetsDatastoreTask) RunsOnGCEWorkers() bool

func (RecreatePageSetsDatastoreTask) SendCompletionEmail

func (task RecreatePageSetsDatastoreTask) SendCompletionEmail(ctx context.Context, completedSuccessfully bool) error

func (*RecreatePageSetsDatastoreTask) SetCompleted

func (task *RecreatePageSetsDatastoreTask) SetCompleted(success bool)

func (RecreatePageSetsDatastoreTask) TriggerSwarmingTaskAndMail

func (task RecreatePageSetsDatastoreTask) TriggerSwarmingTaskAndMail(ctx context.Context, swarmingClient swarmingv2.SwarmingV2Client, casClient cas.CAS) error

type RecreateWebpageArchivesDatastoreTask

type RecreateWebpageArchivesDatastoreTask struct {
	AdminDatastoreTask
}

func (RecreateWebpageArchivesDatastoreTask) Get

func (RecreateWebpageArchivesDatastoreTask) GetDatastoreKind

func (task RecreateWebpageArchivesDatastoreTask) GetDatastoreKind() ds.Kind

func (RecreateWebpageArchivesDatastoreTask) GetDescription

func (task RecreateWebpageArchivesDatastoreTask) GetDescription() string

func (RecreateWebpageArchivesDatastoreTask) GetPopulatedAddTaskVars

func (task RecreateWebpageArchivesDatastoreTask) GetPopulatedAddTaskVars() (task_common.AddTaskVars, error)
func (task RecreateWebpageArchivesDatastoreTask) GetResultsLink() string

func (RecreateWebpageArchivesDatastoreTask) GetTaskName

func (task RecreateWebpageArchivesDatastoreTask) GetTaskName() string

func (RecreateWebpageArchivesDatastoreTask) Query

func (task RecreateWebpageArchivesDatastoreTask) Query(it *datastore.Iterator) (interface{}, error)

func (RecreateWebpageArchivesDatastoreTask) RunsOnGCEWorkers

func (task RecreateWebpageArchivesDatastoreTask) RunsOnGCEWorkers() bool

func (RecreateWebpageArchivesDatastoreTask) SendCompletionEmail

func (task RecreateWebpageArchivesDatastoreTask) SendCompletionEmail(ctx context.Context, completedSuccessfully bool) error

func (*RecreateWebpageArchivesDatastoreTask) SetCompleted

func (task *RecreateWebpageArchivesDatastoreTask) SetCompleted(success bool)

func (RecreateWebpageArchivesDatastoreTask) TriggerSwarmingTaskAndMail

func (task RecreateWebpageArchivesDatastoreTask) TriggerSwarmingTaskAndMail(ctx context.Context, swarmingClient swarmingv2.SwarmingV2Client, casClient cas.CAS) error

Jump to

Keyboard shortcuts

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