Documentation ¶
Index ¶
- type Reference
- type Repository
- type TaskManager
- func (m TaskManager) AbortTask(c context.Context, ctl task.Controller) error
- func (m TaskManager) HandleNotification(c context.Context, ctl task.Controller, msg *pubsub.PubsubMessage) error
- func (m TaskManager) HandleTimer(c context.Context, ctl task.Controller, name string, payload []byte) error
- func (m TaskManager) LaunchTask(c context.Context, ctl task.Controller) error
- func (m TaskManager) Name() string
- func (m TaskManager) ProtoMessageType() proto.Message
- func (m TaskManager) Traits() task.Traits
- func (m TaskManager) ValidateProtoMessage(msg proto.Message) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reference ¶
type Reference struct { // Name is the reference name. Name string `gae:",noindex"` // Revision is the ref commit. Revision string `gae:",noindex"` }
Reference is used to store the revision of a ref.
type Repository ¶
type Repository struct { // ID is "<job ID>:<repository URL>". ID string `gae:"$id"` // References is the slice of all the tracked refs within repository. References []Reference `gae:",noindex"` // contains filtered or unexported fields }
Repository is used to store the repository status.
type TaskManager ¶
type TaskManager struct { }
TaskManager implements task.Manager interface for tasks defined with SwarmingTask proto message.
func (TaskManager) AbortTask ¶
func (m TaskManager) AbortTask(c context.Context, ctl task.Controller) error
AbortTask is part of Manager interface.
func (TaskManager) HandleNotification ¶
func (m TaskManager) HandleNotification(c context.Context, ctl task.Controller, msg *pubsub.PubsubMessage) error
HandleNotification is part of Manager interface.
func (TaskManager) HandleTimer ¶
func (m TaskManager) HandleTimer(c context.Context, ctl task.Controller, name string, payload []byte) error
HandleTimer is part of Manager interface.
func (TaskManager) LaunchTask ¶
func (m TaskManager) LaunchTask(c context.Context, ctl task.Controller) error
LaunchTask is part of Manager interface.
func (TaskManager) ProtoMessageType ¶
func (m TaskManager) ProtoMessageType() proto.Message
ProtoMessageType is part of Manager interface.
func (TaskManager) Traits ¶
func (m TaskManager) Traits() task.Traits
Traits is part of Manager interface.
func (TaskManager) ValidateProtoMessage ¶
func (m TaskManager) ValidateProtoMessage(msg proto.Message) error
ValidateProtoMessage is part of Manager interface.
Click to show internal directories.
Click to hide internal directories.